@font-face{font-family:RubikHoliday;src:url('/assets/rubik.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:NunitoHoliday;src:url('/assets/nunito.woff2') format('woff2');font-weight:800;font-display:swap}
:root{
  --pine:#114a40;--ink:#24372f;--cream:#fcf9f1;--paper:#fffdf8;--line:#d7dbca;--fir:#07635c;--gold:#ffdd91;--rust:#a7353b;--muted:#53655b;
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--cream);
}
*{box-sizing:border-box}
body{margin:0;min-width:280px;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main{flex:1;min-width:0}
h1,h2,h3,p,figure,dl,dd,ol{margin:0}
h1,h2,h3,.wordmark,.btn,summary,strong,.tv-code{font-family:NunitoHoliday,system-ui,sans-serif;font-weight:800}
h1,h2{font-family:RubikHoliday,system-ui,sans-serif;letter-spacing:-.043em;line-height:1.07;color:var(--pine);text-wrap:balance}
h1{font-size:clamp(2.15rem,5.2vw,4.35rem)}
h2{font-size:clamp(1.7rem,4.1vw,3.15rem)}
h3{font-size:1.3rem;letter-spacing:-.02em;line-height:1.17}
a{color:var(--pine);text-underline-offset:3px;text-decoration-thickness:.08em}
button,input{font:inherit}
button,summary{cursor:pointer}
:focus-visible{outline:3px solid #d28b16;outline-offset:4px}
[hidden]{display:none!important}
.skip-link{position:fixed;top:-100px;left:10px;z-index:10;background:var(--paper);padding:.8rem}.skip-link:focus{top:10px}
.shell{width:min(100% - 48px,1160px);margin-inline:auto}
.topbar{background:var(--cream);border-bottom:1px solid var(--line)}
.topbar-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:72px}
.wordmark{display:inline-flex;align-items:center;min-height:44px;padding:4px 10px;border-radius:8px;background:var(--pine);text-decoration:none}
.wordmark img{display:block;width:clamp(96px,12vw,138px);height:auto}
.topbar nav,.actions{display:flex;align-items:center;gap:1.35rem;flex-wrap:wrap}
.topbar nav a,.footer-inner>a:last-child{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:640;min-height:44px}
.topbar nav a:hover,.footer-inner>a:last-child:hover,.hero-link:hover{text-decoration:underline}
.nav-account{border:1px solid #a5b7a6;border-radius:999px;padding:0 1.15rem}
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;min-height:48px;line-height:1.18;border:1px solid transparent;border-radius:12px;padding:.78rem 1.3rem;font-size:1.04rem;cursor:pointer}
.btn:disabled,button[aria-busy=true]{cursor:wait;opacity:.68}
.primary{color:#fffdf4;background:var(--pine)}.primary:hover{background:#0c3e35}
.gold{color:#382b19;background:var(--gold);box-shadow:0 3px 0 #cf9a47}.gold:hover{background:#ffe7aa}
.secondary{color:var(--pine);background:var(--paper);border-color:#a8b8a8}.secondary:hover,.nav-account:hover{background:#f1f1e5}
.link-btn{font:700 1rem/1.3 system-ui,sans-serif;display:inline-flex;min-height:44px;align-items:center;color:var(--pine);border:0;background:none;padding:.3rem;text-decoration:underline;text-underline-offset:3px}
.winter-surface{background:var(--fir) url('/assets/fir-screen.webp') center/100% 100% no-repeat;color:#fff4dc}
.hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:clamp(2rem,6vw,5rem);padding:clamp(6.5rem,11vw,9rem) 0 clamp(5rem,9vw,7.5rem)}
.hero h1{font-size:clamp(3.05rem,6.65vw,6.15rem);color:#fff4de;line-height:.99;letter-spacing:-.055em}
.hero h1 span{color:var(--gold);display:block}
.hero-copy>p{max-width:36em;margin:1.15rem 0 1.65rem;line-height:1.48;font-size:clamp(1.02rem,1.55vw,1.22rem);text-wrap:pretty}
.hero-link{display:inline-flex;align-items:center;min-height:44px;color:#fff2d8;font-weight:690;text-underline-offset:4px}
.hero-photo{transform:rotate(2deg);border:clamp(5px,.7vw,10px) solid #fff1d7;border-radius:4px;box-shadow:0 12px 26px #00382e62;overflow:hidden}
.hero-photo img{width:100%;height:auto;display:block}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:1.35rem 0;border-bottom:1px solid var(--line)}
.facts>div{display:flex;align-items:baseline;justify-content:center;gap:.8rem;text-align:center}.facts>div+div{border-left:1px solid var(--line)}
.facts strong{font:800 clamp(2.1rem,3.75vw,3.1rem)/1 RubikHoliday,system-ui,sans-serif;color:var(--pine);letter-spacing:-.05em}
.facts span{font-weight:650;color:var(--muted)}
.section{padding-block:clamp(3.2rem,6.7vw,5.65rem)}
.split{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(2rem,8vw,7.5rem)}
.intro>p,.final-invite p{color:var(--muted);max-width:36ch;margin-top:.9rem;font-size:1.08rem;text-wrap:pretty}
.steps{list-style:none;counter-reset:step;padding:0}
.steps li{counter-increment:step;position:relative;padding:0 0 1.45rem 3.9rem}.steps li:last-child{padding-bottom:0}
.steps li:before{content:counter(step);position:absolute;left:0;top:0;width:2.9rem;height:2.9rem;display:grid;place-items:center;border-radius:50%;background:#f4e1b6;color:#714822;font:800 1.4rem/1 NunitoHoliday,system-ui,sans-serif}
.steps b{display:block;color:var(--pine);font:800 1.32rem/1.18 NunitoHoliday,system-ui,sans-serif;margin:.05rem 0 .35rem}.steps span,.rounds p{color:var(--muted)}
.rounds-section{background:#eaf0e6;border-block:1px solid #d7dfd1}
.envelope{width:min(100%,280px);height:auto;aspect-ratio:1.45;object-fit:cover;object-position:center 50%;margin:1.8rem 0 0;display:block;border-radius:15px}
.rounds details{border-top:1px solid #b8caba}.rounds details:last-child{border-bottom:1px solid #b8caba}
.rounds summary{list-style:none;font-size:1.3rem;color:var(--pine);display:flex;align-items:center;justify-content:space-between;padding:.72rem 0;gap:.75rem;line-height:1.2;min-height:54px}
summary::-webkit-details-marker{display:none}
.rounds summary:after{content:'+';font:500 1.5rem/1 system-ui}.rounds details[open] summary:after{content:'−'}
.rounds p{padding:0 2.4rem 1.1rem 0;line-height:1.45}
.final-invite{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding-block:clamp(3.2rem,6vw,5rem)}
footer{border-top:1px solid var(--line);margin-top:auto}.footer-inner{min-height:74px}.footer-inner .wordmark{font-size:1.4rem}
.waiting{padding-block:4rem;color:var(--muted)}
.account,.auth,.tv{padding-block:clamp(2rem,6vw,4.75rem)}
.auth{display:grid;grid-template-columns:minmax(0,420px) minmax(0,440px);align-items:center;justify-content:center;gap:clamp(2rem,9vw,8rem)}
.auth h1,.account h1{font-size:clamp(2.35rem,4.5vw,3.65rem)}
.auth-view{padding-block:.5rem}.auth-desc,.lead{color:var(--muted);margin:.65rem 0 1.5rem;max-width:52ch}
.auth-art{border-radius:48% 48% 18px 18px;width:100%;max-height:480px;object-fit:cover;aspect-ratio:4/5}
.field{display:grid;gap:.35rem;margin:1rem 0}.field>span{font-weight:700;color:var(--pine)}
input{min-height:48px;max-width:100%;width:100%;padding:.6rem .8rem;border:1px solid #9aab9c;border-radius:9px;color:var(--ink);background:#fffefb;line-height:1.3}
input:focus{border-color:var(--pine)}
.field small,.small{font-size:.92rem;line-height:1.35;color:var(--muted)}
.form-actions{display:grid;gap:.75rem;margin-top:1.25rem}
.social-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11.75rem),1fr));gap:.6rem}
.social-methods .btn{gap:.5rem;padding-inline:.65rem;overflow-wrap:anywhere}
.social-methods .btn img{flex:none;width:1.5rem;height:1.5rem}
.social-methods .btn:active{background:#e7eee3}
.password-heading{display:flex;align-items:center;gap:.8rem;color:var(--muted);margin:1.25rem 0 .75rem;font-size:.94rem}
.password-heading:after{content:'';flex:1;border-top:1px solid var(--line)}
.account-methods{margin-top:1rem}.account-methods summary{color:var(--pine);font-weight:700;min-height:44px;padding:.65rem 0}
.account-methods p{margin:.45rem 0 .85rem}.account-methods .social-methods{max-width:42rem}
.auth-switch{margin-top:1.5rem}.auth-switch a{font-weight:700}
.account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}
.account-head .lead{margin-bottom:0;overflow-wrap:anywhere}
.dash-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.panel{padding:clamp(1.2rem,3.4vw,2.2rem);border:1px solid var(--line);border-radius:20px;background:var(--paper);min-width:0}
.panel h2,.state-card h2{font:800 clamp(1.4rem,2.45vw,2rem)/1.12 RubikHoliday,system-ui,sans-serif;letter-spacing:-.035em}
.panel p{margin:.7rem 0;color:var(--muted)}
.panel .btn,.panel .link-btn{margin-top:.35rem}
.panel.game-panel{background:#e7eee3;border-color:#cbd7c9}
.panel.game-panel .access-date{color:var(--pine);font-weight:700}
.panel .support{margin-top:1.35rem;padding-top:1.1rem;border-top:1px solid #bccab9}
.panel-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.pair-form{display:flex;align-items:end;flex-wrap:wrap;gap:.8rem}
.pair-form .field{flex:1 1 135px;margin:.5rem 0 0}
.pair-form input{letter-spacing:.16em;font-size:1.12rem;font-variant-numeric:tabular-nums}
.tv-url{color:var(--pine);font-weight:700}
.tv-url,.legal-intro a[href="/"],a[href^="mailto:"]{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.notice{padding:.85rem 1rem;border-radius:10px;border:1px solid #d7bc7e;background:#fff1cf;color:#5d431a;margin:0 0 1rem}
.notice.success{background:#e7f2e3;color:#224e34;border-color:#b1ccae}
.error-msg{color:#8e2832;font-weight:650;margin:.75rem 0}
.state-card{max-width:660px;margin:clamp(2rem,8vw,7rem) auto}
.tv{min-height:calc(100vh - 146px);min-height:calc(100dvh - 146px);display:grid;align-content:center}
.tv-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.8fr);gap:clamp(2rem,8vw,6rem);align-items:center;padding:clamp(2.3rem,7vw,6rem) 2vw}
.tv h1{color:#fff4db;font-size:clamp(2.2rem,5.1vw,5rem);line-height:1.02}
.tv .tv-text{font-size:clamp(1rem,1.65vw,1.36rem);margin:1.05rem 0;max-width:41ch;text-wrap:pretty}
.tv-code-label{font-weight:700;margin:1.35rem 0 .1rem;color:var(--gold)}
.tv-code{font-family:RubikHoliday,system-ui,sans-serif;font-size:clamp(2.5rem,6.8vw,6.2rem);font-variant-numeric:tabular-nums;line-height:1.04;color:#fff4db;letter-spacing:.075em;white-space:nowrap}
[data-practice-view="tv"] .tv-code{width:fit-content}
.tv-time{color:#f5e9c8;margin-top:.45rem}.tv .tv-url{color:#fff4db}
.qr-panel{justify-self:center;width:min(100%,300px);padding:18px;background:#fff;border-radius:18px;text-align:center;color:var(--pine)}
.qr-panel img{width:100%;height:auto;aspect-ratio:1;display:block}.qr-panel p{font-weight:700;margin:.46rem 0 .12rem}
.tv-status{margin-top:1rem}.tv-status:empty{display:none}.tv .error-msg{color:#fff2d5}
@media(prefers-reduced-motion:no-preference){
  .hero-copy,.auth-view,.account-head,.tv-inner{animation:arrive .5s cubic-bezier(.19,.63,.25,1) both}
  .btn{transition:background-color .15s,box-shadow .15s}
  @keyframes arrive{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-width:760px){
  .shell{width:min(100% - 36px,570px)}.topbar-inner,.footer-inner{min-height:62px}
  .topbar nav{gap:.7rem}.nav-tour{display:none!important}
  .hero-inner,.split,.auth,.dash-grid,.tv-inner{grid-template-columns:minmax(0,1fr)}
  .hero-inner{padding:clamp(4.25rem,15vw,6.5rem) 0 clamp(3.65rem,11vw,5rem);gap:2.1rem}
  .hero h1{font-size:clamp(2.8rem,10.8vw,4.65rem)}.hero-copy>p{margin:.8rem 0 1rem}
  .hero-photo{width:min(94%,440px);justify-self:center}
  .facts{padding:1rem 0}.facts>div{flex-direction:column;align-items:center;gap:.18rem;padding:0 .25rem}.facts span{font-size:.85rem;line-height:1.25}
  .split{gap:1.6rem}.envelope{display:none}.final-invite{flex-direction:column;align-items:flex-start;gap:1.2rem}
  .auth{max-width:430px}.auth-art{display:none}.account-head{margin-bottom:1rem}
  .tv-inner{padding:1.5rem 0 2.5rem;gap:1.6rem}.qr-panel{width:min(100%,225px)}.tv{min-height:auto}
}
@media(max-width:370px){
  .shell{width:calc(100% - 28px)}.wordmark{font-size:1.45rem}.topbar nav a{font-size:.9rem}.nav-account{padding-inline:.65rem}
  .actions{gap:.7rem}.panel-actions,.pair-form{align-items:stretch;flex-direction:column}.pair-form .field{flex:auto}
}
.screen-entry footer,.screen-entry .topbar{display:none}
.screen-entry .tv{min-height:100vh;min-height:100dvh;padding-block:clamp(1.2rem,4vw,3rem)}
.tv .tv-manual{font-size:clamp(1rem,1.35vw,1.18rem);margin-top:1.2rem;color:#f4efd9}
#pair-done .notice{margin-top:1rem;color:#224e34}
@media(max-width:760px){
  .topbar-inner{gap:.65rem;flex-wrap:wrap}.topbar nav{flex-wrap:wrap;gap:.55rem}.topbar nav a{white-space:nowrap}.nav-account{padding-inline:.76rem}
}

.purchase-summary strong{font-size:1.2em;color:var(--gold);white-space:nowrap}
.hero-copy>p.purchase-summary{margin:.8rem 0 1rem}
.storefront-footer{align-items:start;padding-block:1.8rem;gap:1rem 2rem;flex-wrap:wrap}
.footer-seller{min-width:0;color:var(--muted);overflow-wrap:anywhere}
.footer-seller .wordmark{display:inline-flex;align-items:center;min-height:44px}
.footer-seller p{line-height:1.5}
.storefront-footer nav{display:grid;justify-items:start;margin-left:auto}
.storefront-footer nav a,.legal-back{display:inline-flex;align-items:center;min-height:44px}
.legal-note{margin-top:1rem;font-size:.94rem;color:var(--muted)}
.legal-page{max-width:760px;padding-block:clamp(2rem,6vw,4.5rem)}
.legal-page article{overflow-wrap:anywhere}
.legal-page h1{font-size:clamp(2rem,5vw,3.6rem);margin:.8rem 0 1rem;text-wrap:wrap}
.legal-page h2{font-size:clamp(1.3rem,3vw,1.8rem);margin:1.8rem 0 .55rem;text-wrap:wrap}
.legal-page p,.legal-page ul{margin:.6rem 0 0}
.legal-page li+li{margin-top:.45rem}
.legal-intro{color:var(--muted);font-size:1.09rem}
@media(max-width:760px){.storefront-footer nav{margin-left:0}}

.setup-intro { align-items:center }
.setup-intro .btn { margin-top:1.4rem }
.evening-preview { position:relative; width:100%; aspect-ratio:1.58; background:#e4ecde; border-radius:24px; overflow:hidden }
.mini-tv { position:absolute; inset:12% 11% 21% 7%; border:6px solid #233e37; border-radius:10px; background:#075951 url('/assets/fir-screen.webp') center/cover; display:flex; align-items:center; padding-left:7%; box-shadow:0 8px 0 -3px #9eafa0 }
.mini-tv:after { content:''; position:absolute; width:40%; height:8%; bottom:-11%; left:30%; border-radius:0 0 5px 5px; background:#314b42 }
.mini-tv img.mini-wordmark { position:static; width:48%; height:auto }
.mini-tv img { position:absolute; right:3%; bottom:0; height:92%; width:auto }
.mini-remote { position:absolute; bottom:6%; right:7%; width:23%; height:61%; display:flex; flex-direction:column; justify-content:center; gap:5%; padding:3% 2%; border:4px solid #263d36; border-radius:14px; background:var(--cream); color:var(--pine); transform:rotate(5deg); box-shadow:-3px 5px 0 #57756745; font:700 clamp(.55rem,1vw,.85rem)/1.15 system-ui }
.mini-remote span { font-size:.78em }.mini-remote b { font-size:1.2em }.mini-remote i { display:block; height:9%; background:#e0e8d9; border-radius:3px }.mini-remote strong { text-align:center; padding:9% 0; border-radius:5px; color:white; background:var(--fir) }
.setup-page { max-width:850px; padding-block:clamp(2rem,6vw,4.5rem) }
.setup-page h1 { max-width:16ch }.setup-page .lead { margin-bottom:1.25rem }
.device-options { display:flex; flex-wrap:wrap; gap:.55rem; margin:1.2rem 0 }
.device-options button[aria-pressed=true] { color:var(--paper); background:var(--pine) }
.setup-address { display:inline-block; max-width:100%; margin:.65rem 0; font:800 clamp(1.25rem,3.2vw,2rem)/1.3 NunitoHoliday,system-ui; overflow-wrap:anywhere }
.setup-card { display:flex; flex-wrap:wrap; align-items:center; gap:1.1rem 2rem }.setup-card>div { flex:1 1 230px; min-width:0 }
.setup-card img,.trial-phone { width:148px; height:148px; background:white; border:1px solid var(--line); border-radius:10px }
.setup-page .panel { margin:1rem 0 }.setup-page .panel h2 { font-size:1.45rem }.setup-page .panel p { max-width:58ch }
.setup-here { display:inline-flex; align-items:center; min-height:44px; margin-top:.4rem }
.setup-feedback { border-left:4px solid var(--fir); padding:.3rem 0 .3rem 1rem; margin:1.2rem 0 }.setup-feedback p { margin:.35rem 0 .75rem }
.setup-feedback:empty { display:none }
.device-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); max-width:540px }
.device-options .btn { flex-direction:column; gap:.5rem; padding:.75rem .25rem }
.device-options button:before { content:''; display:block; box-sizing:border-box; width:28px; height:19px; border:2px solid currentColor; border-radius:3px }
.device-options [data-device=tv]:before { box-shadow:0 5px 0 -3px currentColor }
.device-options [data-device=pc]:before { border-bottom-width:3px; box-shadow:0 4px 0 -1px currentColor; width:24px; border-radius:3px 3px 0 0 }
.device-options [data-device=tablet]:before { width:16px; height:21px; border-radius:4px }
@media(max-width:380px){.device-options{gap:5px}.device-options .btn{font-size:.95rem}}
#no-browser summary,#type-code summary { display:list-item; min-height:44px; padding:.6em 0; font-size:1rem; color:var(--pine) }

.purchased-code { font-family:ui-monospace,monospace; font-size:clamp(.95rem,4.4vw,1.3rem); color:var(--pine) }
.auth-view .lead strong { overflow-wrap:anywhere }

.email-actions{display:flex;flex-wrap:wrap;gap:0 1rem;margin-top:.5rem}

@media (max-height:500px) and (min-aspect-ratio:5/4) {
  .screen-entry .tv { padding:.5rem 0; }
  .screen-entry .tv-inner { grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:2vw; width:94%; padding:0; }
  .screen-entry .tv h1 { font-size:clamp(1.05rem,3.8vw,2.4rem); margin:0; }
  .screen-entry .tv .tv-text,.screen-entry .tv-code-label,.screen-entry .tv-time { font-size:clamp(.7rem,1.9vw,1rem); margin:.28em 0; }
  .screen-entry .tv-code { font-size:clamp(1.7rem,6.6vw,4.2rem); margin:0; }
  .screen-entry .qr-panel { padding:5px; max-width:26vh; font-size:clamp(.65rem,1.7vw,.92rem); line-height:1.1; }
}
