/* Mobile app shell and first-visit welcome flow. */
:root{--app-width:480px;--app-green:#103b2d;--app-gold:#edce91}html{background:#0a211a;scroll-behavior:auto}html.app-starting body{visibility:hidden}body{max-width:var(--app-width);margin:0 auto;min-height:100dvh;padding-bottom:82px;background:#f5f8f1;box-shadow:0 0 90px #0005;font-size:14px}body>header{height:57px;padding:0 17px;background:#102f25;position:sticky;top:0;z-index:20;gap:14px}body>header .brand{font-size:21px;letter-spacing:.7px;gap:7px;white-space:nowrap}body>header .brand-icon{font-size:27px}body>header nav{display:none}body>header .profile{padding:8px 11px;border-radius:20px;font-size:14px;max-width:172px;min-width:0;gap:7px}body>header .profile span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}main{overflow:clip}.season{display:none}.hero{min-height:169px;padding:21px 18px 23px;align-items:center;justify-content:flex-start;display:flex;overflow:hidden}.hero-copy{max-width:78%;text-align:left}.hero .event-tag{font-size:14px;letter-spacing:.9px;justify-content:flex-start;color:#deceaa;gap:6px;margin:0}.hero h1{font-size:33px;letter-spacing:-1px;line-height:1.1;margin:11px 0 9px}.hero-copy>p{font-size:14px;line-height:1.5;color:#d8dfcd;margin:0;max-width:240px}.hero-copy>p br{display:none}.hero-actions,.hero-foot{display:none}.hero-art{inset:0 0 0 21%;width:auto;height:auto;max-width:none}.hero-art>img{object-position:76% 50%}.hero:after{background:linear-gradient(90deg,#082a20 0%,#082a20ea 17%,#082a2080 58%,#082a2000 90%)}.pool{margin:12px 12px 0;border-radius:11px;display:block;border-color:#d6dfc9;box-shadow:0 4px 15px #183d3006}.pool-title{padding:14px 14px 10px;text-align:center}.pool-title .eyebrow{font-size:14px;letter-spacing:1.7px}.pool-money{font-size:36px;line-height:1.1;margin:6px 0 0;letter-spacing:-1.2px}.pool-money span{font-size:14px;margin-left:6px}.pool-title>p{display:none}.pool-stats{padding:0 6px 11px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.pool-stats>div{padding:5px 8px;gap:4px;border-left:1px solid #e2e8d8;min-width:0}.pool-stats>div:first-child{border:0}.stat-label,.live{font-size:14px;line-height:1.4;min-height:12px;letter-spacing:.5px}.pool-stats strong{font-size:20px;letter-spacing:-.7px;line-height:1.4;white-space:nowrap}.pool-stats>div>span:last-child{font-size:14px;line-height:1.4;min-height:0}.pool-bottom{display:none}.section{margin:20px 12px}.section-top{gap:8px;margin-bottom:13px;align-items:center;flex-wrap:wrap}.section-top .eyebrow{display:none}.section-top h2{font-family:'DM Sans',sans-serif;font-size:19px;font-weight:600;letter-spacing:-.45px;line-height:1.3;margin:0}.section-top p{font-size:14px;line-height:1.5;margin:5px 0 0}.collection .section-top{flex-wrap:nowrap}.collection .section-top p{display:none}.progress-box{min-width:82px;width:82px;max-width:82px;font-size:14px;text-align:right}.progress-track{height:3px;margin-top:5px;width:100%}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-width:none;margin:0}.card-wrap,.card-wrap:nth-child(4),.card-wrap:nth-child(5){grid-column:auto;width:auto;min-width:0;justify-self:stretch}.collect-card{aspect-ratio:.64;border-radius:6px;box-shadow:0 4px 8px #183d3012;cursor:pointer;border-width:1px;min-height:0}.collect-card:before{inset:3px;border-radius:4px;border-color:#e9d6a580}.collect-card:hover{transform:translateY(-3px)}.card-top{display:none}.card-caption{bottom:10px;left:2px;right:2px}.card-name{font-size:14px;font-weight:500;letter-spacing:0;line-height:1.2}.card-starlight .card-name{margin:0}.card-subtitle{display:none}.rare-tag{top:8px;padding:2px 4px;font-size:14px;letter-spacing:.1px;border-width:0}.card-starlight{box-shadow:0 0 0 2px #d7b45130,0 4px 10px #9e83282a}.card-quantity{font-size:14px;margin-top:7px;gap:0;flex-direction:column;line-height:1.3;white-space:nowrap}.card-quantity b{font-size:14px;margin-top:3px;padding:2px 7px}.card-actions{display:none}.collection-bottom{flex-direction:column-reverse;gap:8px;align-items:stretch;margin-top:14px;text-align:center}.collection-bottom .button{font-size:14px;min-height:44px;padding:10px 18px;box-shadow:none;border-radius:8px}.collection-bottom .button span{font-size:14px}.collection-bottom>span{font-size:14px;line-height:1.4}.reward-banner{gap:10px;padding:12px;margin-top:13px;border-radius:10px;flex-wrap:wrap}.reward-icon{width:31px;height:43px;border-radius:4px}.reward-banner>div:nth-child(2){min-width:0;flex:1}.reward-banner h3{font-size:14px;line-height:1.3;margin-bottom:4px}.reward-banner p{font-size:14px;line-height:1.4}.reward-banner .button{font-size:14px;min-height:33px;padding:7px 10px;flex:0 1 auto}.reward-banner .text-button{font-size:14px;padding:5px 2px;margin-left:auto}.reward-banner b{font-size:14px}.earn-section{padding-top:0;border:0;margin-top:20px}.earn-section .section-top{margin-top:0;align-items:center}.small-tag{font-size:14px;padding:5px 8px}.task-grid{grid-template-columns:1fr;gap:11px}.task{gap:15px;border-radius:10px;min-height:142px;align-items:stretch}.task-image{width:91px}.task>div:last-child{padding:15px 13px 15px 0;flex:1}.task .eyebrow{font-size:14px;letter-spacing:.8px}.task h3{font-family:'DM Sans',sans-serif;font-size:17px;font-weight:600;margin:6px 0 7px}.task p{font-size:14px;line-height:1.6;margin-bottom:12px}.task .button{font-size:14px;min-height:38px;padding:9px 12px;gap:11px;border-radius:6px}.task .button span{font-size:14px}.friend-actions{display:flex;width:100%;gap:9px;margin-top:7px}.friend-actions .button{flex:1;font-size:14px;min-height:40px;padding:9px 12px;border-radius:7px}.exchange-empty{padding:20px 15px;font-size:14px;line-height:1.7;border-radius:10px}.exchange-empty h3{font-family:'DM Sans',sans-serif;font-size:16px;line-height:1.5;margin-bottom:7px;font-weight:500}.trade-row{gap:10px;padding:12px 3px}.trade-row strong{font-size:14px}.trade-row small{font-size:14px}.trade-row .button{font-size:14px;padding:8px 11px;min-height:36px}.gift-history{margin-top:13px;padding:16px 14px;border-radius:10px}.gift-history-heading{gap:7px}.gift-history-heading h3{font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600}.gift-history-heading>span{font-size:14px}.gift-empty{font-size:14px;line-height:1.7}.gift-history-row{padding:11px 0;gap:10px}.gift-history-row>img{width:34px;height:48px}.gift-history-row strong{font-size:14px}.gift-history-row p{font-size:14px;margin-top:5px}.gift-status{font-size:14px;padding:5px 7px}.closing,body>footer{display:none}.rules{margin:20px 13px;padding:0;max-width:none}.rules>.eyebrow{display:none}.rules>h2{font-family:'DM Sans',sans-serif;font-size:21px;font-weight:600;margin:0 0 15px;letter-spacing:-.5px}.rules details{padding:16px 0}.rules summary{font-size:14px;line-height:1.5}.rules details p{font-size:14px;line-height:1.8}.preview-badge{position:static;display:block;text-align:center;background:transparent;border:0;box-shadow:none;font-size:14px;margin:18px 12px 4px;padding:0;color:#8b9681;pointer-events:none}#snowfall{top:57px;height:170px;max-width:var(--app-width);margin:0 auto}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:30;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;width:min(100%,var(--app-width));height:calc(64px + env(safe-area-inset-bottom,0px));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#fffffff5;backdrop-filter:blur(18px);border-top:1px solid #dbe4d2;box-shadow:0 -4px 18px #28441f06}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:#86917b;border-radius:9px;font-size:14px;font-weight:500;min-height:48px}.bottom-nav button>span{font-size:24px;line-height:1}.bottom-nav button.selected{background:#edf4e5;color:#2f5933}.bottom-nav button:hover{color:#244c2b}.bottom-nav button:focus-visible{outline-offset:-3px}body[data-view="collection"] #earn,body[data-view="collection"] #exchange,body[data-view="collection"] #rules{display:none}body[data-view="earn"] .hero,body[data-view="earn"] .pool,body[data-view="earn"] #collection,body[data-view="earn"] #exchange,body[data-view="earn"] #rules{display:none}body[data-view="exchange"] .hero,body[data-view="exchange"] .pool,body[data-view="exchange"] #collection,body[data-view="exchange"] #earn,body[data-view="exchange"] #rules{display:none}body[data-view="rules"] .hero,body[data-view="rules"] .pool,body[data-view="rules"] #collection,body[data-view="rules"] #earn,body[data-view="rules"] #exchange{display:none}dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:29px 22px;border-radius:14px}dialog .modal-heading{font-size:27px;line-height:1.3;margin:8px 0 14px}dialog p{font-size:14px;line-height:1.7}dialog input,dialog select{font-size:16px;padding:12px;min-height:45px}dialog label{font-size:14px}.result-title .draw-result{width:166px;margin:17px auto}.draw-result .collect-card{cursor:default;aspect-ratio:.66;border-radius:9px}.draw-result .card-top{display:block;font-size:14px;letter-spacing:.7px;top:16px}.draw-result .card-name{font-size:24px}.draw-result .card-caption{bottom:24px}.draw-result .card-subtitle{display:block;font-size:14px}.draw-result .rare-tag{font-size:14px;padding:3px 7px;top:32px}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.detail-actions .button{font-size:14px;padding:10px 9px;min-height:42px;margin-top:9px}.gift-preview{padding:12px;margin:15px 0;gap:17px}.gift-preview>img{width:58px;height:85px}.gift-preview h3{font-size:24px;margin-bottom:8px}.gift-preview p{font-size:14px}.reward-ticket{padding:20px 15px}.reward-ticket h3{font-size:24px}.reward-ticket p{font-size:14px}.profile-summary{padding:18px;background:#edf2e7;border:1px solid #dce5cf;border-radius:9px;margin:20px 0}.profile-summary>span{font-size:14px;color:#829374;letter-spacing:1.5px;display:block}.profile-summary strong{display:block;font-size:23px;line-height:1.5;margin:9px 0;overflow-wrap:anywhere}.profile-summary p{font-size:14px;margin:0}#toast{font-size:14px;bottom:85px;width:max-content;max-width:calc(min(100vw,480px) - 30px);padding:12px 17px}#giftForm label{font-size:14px}.inline-note{font-size:14px!important}
/* Five-step welcome journey, inspired by the reference project's compact flow. */
.onboarding[hidden]{display:none!important}.onboarding{position:fixed;inset:0;z-index:80;background:#0b251c;overflow-y:auto;color:#f7eed7;max-width:var(--app-width);margin:auto;overscroll-behavior:contain}.onboarding-active{overflow:hidden}.onboarding-active>header,.onboarding-active>main,.onboarding-active>.bottom-nav,.onboarding-active>.preview-badge{visibility:hidden}.guide-shell{min-height:100dvh;position:relative;display:flex;flex-direction:column;padding-bottom:calc(115px + env(safe-area-inset-bottom,0px));background:radial-gradient(ellipse at 70% 30%,#25472f50,transparent 60%),#0b251c}.guide-header{height:57px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 20px;border:0;background:transparent;color:#cdd7bc}.guide-brand{font-size:19px;letter-spacing:.6px;color:#f1ddac}.guide-header>span:last-child{font-size:14px;color:#bcc7ae}.guide-progress{display:flex;gap:6px;margin:0 20px}.guide-progress i{height:3px;background:#ffffff14;flex:1;border-radius:3px}.guide-progress i.filled{background:#d9bd7d}.guide-body{padding:22px 22px 17px;flex:1;display:flex;flex-direction:column;align-items:stretch}.guide-eyebrow{font-size:14px;letter-spacing:1.8px;color:#c4b887;line-height:1.5}.guide-body h1{font-family:'Playfair Display',serif;font-size:37px;line-height:1.13;letter-spacing:-1px;font-weight:400;margin:13px 0 17px;text-shadow:none}.guide-body h1 em{color:#eed09a}.guide-visual{height:220px;max-height:29dvh;width:100%;object-fit:cover;object-position:50% 39%;border:1px solid #d6b87638;border-radius:11px;box-shadow:0 10px 30px #020c0820;display:block}.guide-visual.guide-landscape{height:142px;max-height:20dvh;object-position:75% 57%}.guide-copy{font-size:14px;line-height:1.8;color:#bccbb4;margin:15px 0 14px}#welcomeForm label{display:block;font-size:14px;color:#d3d9bd;margin-bottom:8px}#welcomeName{width:100%;font:inherit;font-size:16px;line-height:1.5;padding:11px 13px;color:#f6f0da;background:#ffffff08;border:1px solid #a3b38e48;border-radius:8px;outline:none;min-height:46px}#welcomeName:focus{border-color:#d3bb7f;box-shadow:0 0 0 3px #c5ac6820}#welcomeName::placeholder{color:#81977c}#welcomeName[readonly]{color:#d7debe}.guide-hint{font-size:14px;line-height:1.6;color:#899e80;margin:9px 0 0}#guideError{font-size:14px;line-height:1.6;color:#f1b3a5;margin:8px 0 0}#guideError:empty{display:none}.guide-footer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,var(--app-width));background:linear-gradient(0deg,#0b251c 85%,#0b251cf2);padding:10px 20px calc(19px + env(safe-area-inset-bottom,0px));border-top:1px solid #ffffff10;display:block}.guide-footer-top{height:25px;margin:0 0 9px;display:flex;align-items:center;justify-content:space-between;position:relative}.guide-footer-top button{background:none;border:0;font-size:14px;color:#9eaf91;padding:4px 1px;min-height:28px}.guide-footer-top button[hidden]{visibility:hidden;display:block}.guide-dots{display:flex;align-items:center;justify-content:center;gap:5px;position:absolute;left:50%;transform:translateX(-50%)}.guide-dots i{width:5px;height:5px;background:#71846777;border-radius:20px}.guide-dots i.current{width:19px;background:#dec28b}.guide-next{display:block;width:100%;min-height:47px;font-size:14px;font-weight:600;border:1px solid #e9c88e;background:linear-gradient(120deg,#f2dda6,#d5b371);color:#183b28;border-radius:8px;padding:12px 15px;box-shadow:0 3px 14px #020d0820}.guide-next:hover{filter:brightness(1.06)}.guide-next:disabled{opacity:.6}.guide-mini-cards{display:flex;gap:7px;align-items:center;padding:25px 3px 15px}.guide-mini-cards img{width:calc((100% - 28px)/5);aspect-ratio:.65;object-fit:cover;border:1px solid #c4aa76;border-radius:6px;box-shadow:0 9px 18px #020d0850}.guide-mini-cards img:nth-child(1){transform:rotate(-7deg) translateY(8px)}.guide-mini-cards img:nth-child(2){transform:rotate(-3deg)}.guide-mini-cards img:nth-child(3){transform:translateY(-9px);border-color:#f0cf80;box-shadow:0 0 18px #e2bf5340}.guide-mini-cards img:nth-child(4){transform:rotate(3deg)}.guide-mini-cards img:nth-child(5){transform:rotate(7deg) translateY(8px)}.guide-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:0}.guide-facts span{padding:12px;background:#ffffff06;border:1px solid #bfccaa26;border-radius:8px;font-size:14px;color:#c0cfb3}.guide-facts b{display:block;font-size:16px;font-weight:500;color:#e8cf95;margin-top:8px}.guide-reveal{font-size:14px;line-height:1.8;color:#dbc18d;padding:13px 15px;border:1px solid #c1a56c38;background:#c3a36108;border-radius:8px}.guide-reveal small{font-size:14px;color:#92a685}
@media(min-width:700px){body{border-left:1px solid #335140;border-right:1px solid #335140}.onboarding{box-shadow:0 0 100px #0007}.guide-shell{padding-top:8px}}
@media(max-width:359px){.hero h1{font-size:29px}.hero{min-height:155px}.hero-copy>p{font-size:14px;max-width:210px}.hero .event-tag{font-size:14px}.cards{gap:5px}.card-name{font-size:14px}.card-quantity{font-size:14px}.rare-tag{font-size:14px}.pool-stats strong{font-size:18px}.section-top h2{font-size:17px}.reward-banner .button{font-size:14px;padding:6px 8px}.guide-body{padding:18px 19px}.guide-body h1{font-size:33px}.guide-copy{font-size:14px}.guide-eyebrow{font-size:14px}.task-image{width:80px}.task p{font-size:14px}.task{gap:12px}}
@media(max-height:700px){.guide-body{padding-top:17px}.guide-body h1{font-size:32px;margin:10px 0 13px}.guide-visual{height:170px;max-height:25dvh}.guide-visual.guide-landscape{height:112px}.guide-copy{font-size:14px;margin:12px 0;line-height:1.7}.guide-hint{font-size:14px}.guide-shell{padding-bottom:108px}.guide-footer{padding-bottom:13px}.guide-facts span{padding:9px}}
/* Keep the collection and draw action close to the first phone screen. */
.hero{min-height:139px;padding:16px 18px}.hero h1{font-size:31px;margin:10px 0 0}.hero-copy>p{display:none}.pool-stats strong{font-size:18px}@media(max-width:359px){.hero h1{font-size:28px}.hero{min-height:131px}.pool-stats strong{font-size:17px}}
.reward-banner{display:grid;grid-template-columns:31px minmax(0,1fr) auto;gap:8px 10px}.reward-banner .reward-icon{grid-row:1/3;grid-column:1;align-self:center}.reward-banner>div:nth-child(2){grid-column:2/4;min-width:0}.reward-banner #redeem{grid-column:2;justify-self:start}.reward-banner #rewards{grid-column:3;justify-self:end;margin-left:0}.reward-banner h3{white-space:normal}.reward-banner p{overflow-wrap:anywhere}
