/* Public TV fallback: a continuous world, native HTML text, and quiet game HUD.
   Scoped to tv-mode so phone, host, CMS and public marketing remain independent. */
.tv-mode{background:#071e32;color:#fff9ef}
.tv-mode #main{max-width:none;margin:0;padding:0;min-height:100svh}
.tv-mode .activation-layout,.tv-mode .tv-scene{width:100%;max-width:none;margin:0;border-radius:0}
.tv-mode .topbar{position:fixed;inset-block-start:0;inset-inline:0;z-index:50;transform:translateY(-100%);opacity:0;transition:transform .2s,opacity .2s}
.tv-mode .topbar:focus-within{transform:none;opacity:1}
.tv-mode.show-tv-controls .topbar{transform:none;opacity:1}
.tv-mode.show-tv-controls .topbar nav{display:none}
.tv-mode .tv-quiet-menu{position:absolute;inset-block-start:5vh;left:5vw;background:#071e3299;color:#fff9ef;border:1px solid #f3c56855;border-radius:12px;font-size:26px;min-width:52px;min-height:52px;z-index:4}
.tv-mode .skip:focus{z-index:60}
.tv-mode :focus-visible{outline:4px solid #f3c568;outline-offset:5px}
.tv-mode .activation-layout{position:relative;isolation:isolate;min-height:100svh;box-sizing:border-box;padding:9vh 5vw;gap:6vw;grid-template-columns:1.1fr .8fr;background:#087f9c url('/assets/A06.webp') center/cover no-repeat}
.tv-mode .activation-layout:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,rgba(5,24,43,.94),rgba(5,24,43,.58) 52%,rgba(5,24,43,.04))}
.tv-mode .activation-story h1{font-size:clamp(44px,5vw,96px);line-height:1.45;color:#fff9ef;margin-block:18px 24px;text-shadow:0 3px 24px #05182b88}
.tv-mode .activation-story p{max-width:35ch;font-size:clamp(22px,1.8vw,34px);line-height:1.8;color:#fff9ef}
.tv-mode .activation-story .eyebrow{color:#f3c568;font-size:clamp(22px,1.6vw,30px)}
.tv-mode .activation-card{background:rgba(5,24,43,.9);border:1px solid #f3c56880;box-shadow:0 20px 80px #05182b66;color:#fff9ef;max-width:600px;padding:clamp(22px,3vw,54px);border-radius:24px}
.tv-mode .activation-card h2{font-size:clamp(28px,2vw,40px);color:#fff9ef}
.tv-mode .activation-card p{font-size:clamp(20px,1.45vw,28px);line-height:1.7;color:#fff9ef}
.tv-mode .activation-card .display-code{color:#f3c568;font-size:clamp(38px,4vw,76px)}
.tv-mode .activation-card .button{background:#f3c568;color:#102f43;border:0;font-size:clamp(22px,1.65vw,32px);min-height:64px}
.tv-mode .cinematic-welcome{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background-image:url('/assets/TV06.webp');padding-block:5vh}
.tv-mode .cinematic-welcome .activation-story{width:42%;max-width:800px;margin-left:auto;margin-right:0}
.tv-mode .cinematic-welcome .activation-story h1{font-size:clamp(44px,4.6vw,88px);margin-block:18px;line-height:1.4}
.tv-mode .cinematic-welcome .activation-story>p{font-size:clamp(22px,1.8vw,34px);line-height:1.65;margin-block:18px}
.tv-mode .cinematic-welcome .activation-card{display:flex;flex-direction:column;align-items:stretch;background:transparent;border:0;box-shadow:none;padding:0;gap:12px;max-width:none;border-radius:0}
.tv-mode .cinematic-welcome .activation-card h2{margin:0;color:#f3c568}
.tv-mode .cinematic-welcome .activation-card p{font-size:clamp(20px,1.5vw,28px);margin:0}
.tv-mode .cinematic-welcome .activation-card .display-code{background:#071e32df;border:1px solid #f3c56870;border-radius:12px;text-align:center;padding:6px;font-size:clamp(36px,3vw,60px)}
.tv-mode .cinematic-welcome .activation-card .button{border-radius:14px}
.tv-mode .tv-scene{height:100svh;min-height:100svh;padding:5vh 5vw;box-sizing:border-box;background-color:#087f9c;background-size:cover;background-position:center;isolation:isolate;gap:0}
.tv-mode .tv-scene:before{content:'';position:absolute;inset:0;z-index:0;background:linear-gradient(270deg,rgba(5,24,43,.92),rgba(5,24,43,.66) 48%,rgba(5,24,43,.04) 75%),linear-gradient(0deg,rgba(5,24,43,.82),transparent 28%);pointer-events:none}
.tv-mode .tv-heading{margin:0;min-height:52px;color:#fff9ef;flex-shrink:0;gap:24px}
.tv-mode .tv-heading .phase-pill,.tv-mode .tv-heading>div{background:#071e32d9;color:#fff9ef;border:1px solid #f3c56845;box-shadow:none;font-size:clamp(20px,1.7vw,32px);padding:8px 20px}
.tv-mode .tv-heading .quiet{background:transparent;color:#f3c568;min-width:48px;min-height:48px}
.tv-mode .tv-brand{display:inline-flex;align-items:center;gap:calc(var(--tv-brand-unit)*8);font-weight:700;font-size:calc(var(--tv-brand-unit)*18);line-height:1.5;color:#fff9ef}
.tv-mode .tv-brand img{object-fit:contain}
.tv-mode .tv-content{width:61%;max-width:none;min-height:0;margin:3vh 0 2vh auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#f3c568 #071e32;scrollbar-width:thin;align-content:start;flex:1;padding-inline-end:12px;box-sizing:border-box}
[dir=rtl] .tv-mode .tv-content{margin-inline:0 auto}
.tv-mode .tv-content>.question-card{padding:4px 0;background:transparent;border:0;border-radius:0;box-shadow:none;max-width:none;color:#fff9ef}
.tv-mode .tv-content .question-card>.eyebrow{color:#f3c568;font-size:clamp(20px,1.55vw,30px)}
.tv-mode .tv-content .question-card>h2{font-size:clamp(22px,1.7vw,32px);color:#f3c568;margin-block:8px}
.tv-mode .tv-content .question-prompt{font-size:clamp(32px,3.33vw,64px);line-height:1.55;color:#fff9ef;font-weight:700;margin-block:12px 24px;text-shadow:0 2px 16px #071e3280}
.tv-mode .tv-content .answers{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));margin-block:20px 8px}
.tv-mode .tv-content .answer.read-only{background:#fff9ef;color:#17394e;border:2px solid #f3c56870;border-radius:16px;box-shadow:0 6px 20px #05182b33;font-size:clamp(22px,2.3vw,44px);line-height:1.55;padding:18px 20px;min-height:92px;gap:14px}
.tv-mode .tv-content .answer-letter{background:transparent;border:0;color:#9c6b22;font-size:.8em;flex-shrink:0}
.tv-mode .tv-content .answer.revealed{background:#e6f6e8;border-color:#54c9bc;color:#17394e}
.tv-mode .tv-content .canonical-source{background:#fff9ef;color:#17394e;border:0;border-inline-start:5px solid #f3c568;border-radius:14px;padding:20px;font-size:clamp(32px,2.5vw,48px);line-height:1.85}
.tv-mode .tv-content .canonical-source cite{font-size:clamp(20px,1.4vw,28px);color:#365b64}
.tv-mode .tv-content .reading-note{background:#071e32c9;color:#f3c568;border:0;font-size:clamp(22px,1.7vw,32px);line-height:1.6}
.tv-mode .tv-content .reveal-card{background:#071e32e8;border:1px solid #54c9bc88;color:#fff9ef;border-radius:16px;padding:22px}
.tv-mode .tv-content .reveal-card h2{color:#f3c568;font-size:clamp(24px,2vw,38px)}
.tv-mode .tv-content .reveal-card p{font-size:clamp(26px,2vw,40px);line-height:1.7;color:#fff9ef}
.tv-mode .tv-content .runtime-media{max-width:100%;background:#fff9ef;border-radius:14px;color:#17394e}
.tv-mode .tv-content .runtime-media img{max-height:35svh;object-fit:contain}
.tv-mode .tv-scene>.fleet{position:absolute;inset:43% 0 18%;height:auto;min-height:0;z-index:1;background:transparent;pointer-events:none}
.tv-mode .tv-scene>.fleet .boat-track{top:calc(var(--lane)*24%);height:clamp(72px,6.4vw,124px);left:32%;right:9%}
.tv-mode .tv-scene>.fleet .sun,.tv-mode .tv-scene>.fleet .island,.tv-mode .tv-scene>.fleet .sea-line,.tv-mode .tv-scene>.fleet .beacon{display:none}
.tv-mode .tv-scene>.fleet .boat{width:clamp(100px,9vw,174px);height:clamp(72px,6.4vw,124px)}
.tv-mode .tv-scene:not(.phase-animation)>.fleet{display:none}
.tv-mode .cinematic-question>.fleet{display:none}
.tv-mode .phase-results>.fleet,.tv-mode .phase-archived>.fleet,.tv-mode .phase-finale>.fleet{display:none}
.tv-mode .tv-scene.scene-world{background-image:url('/assets/A05.webp')}
.tv-mode .tv-scene.scene-race{background-image:url('/assets/TV04.webp')}
.tv-mode .tv-scene.scene-beacon-lit{background-image:url('/assets/TV05.webp')}
.tv-mode .tv-scene.cinematic-question{background-image:url('/assets/TV03.webp')}
.tv-mode .phase-lobby,.tv-mode .phase-team_assignment{background-image:url('/assets/TV06.webp')}
.tv-mode .phase-lobby .tv-content,.tv-mode .phase-team_assignment .tv-content{width:44%;align-content:center}
.tv-mode .phase-lobby>.fleet,.tv-mode .phase-team_assignment>.fleet{display:none}
.tv-mode .tv-lobby .join-code-panel{display:flex;align-items:center;gap:20px;text-align:start;padding:20px}
.tv-mode .tv-lobby .join-code-panel .qr-box{flex-shrink:0;margin:0;width:clamp(128px,11vw,208px);height:clamp(128px,11vw,208px)}
.tv-mode .tv-lobby .join-code-panel .display-code{font-size:clamp(36px,2.8vw,54px);letter-spacing:3px}
.tv-mode .tv-lobby .tv-welcome h1{font-size:clamp(36px,3.2vw,64px);line-height:1.4;margin-block:8px 12px}
.tv-mode .tv-lobby .tv-welcome p{font-size:clamp(22px,1.6vw,30px);color:#fff9ef}
.tv-mode .tv-lobby .tv-welcome>.button{font-size:clamp(22px,1.6vw,30px);background:#071e32d9;color:#f3c568;border:1px solid #f3c56870}
.tv-mode .phase-animation:before{background:linear-gradient(180deg,#071e32d9,transparent 45%),linear-gradient(0deg,#071e32df,transparent 30%)}
.tv-mode .phase-animation .tv-content{width:100%;align-content:start;text-align:center;overflow:visible}
.tv-mode .phase-animation .tv-interlude{text-align:center}
.tv-mode .phase-animation .tv-interlude h1{font-size:clamp(38px,3.5vw,68px);margin-block:0 8px}
.tv-mode .phase-animation .tv-interlude p{font-size:clamp(24px,1.7vw,32px);margin:0}
.tv-mode .cinema-roster{background:#071e32;color:#fff9ef;border:1px solid #f3c568;width:min(92vw,1600px);max-width:92vw;max-height:90svh;padding:24px;border-radius:18px;overflow-y:auto}
.tv-mode .cinema-roster::backdrop{background:#021323d9}
.tv-mode .cinema-roster-heading{position:sticky;top:-24px;background:#071e32;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:16px;z-index:1}
.tv-mode .cinema-roster-heading h2{font-size:clamp(28px,2.5vw,44px);color:#f3c568;margin:0}
.tv-mode .cinema-roster-heading .button{background:#f3c568;color:#17394e;font-size:22px}
.tv-mode .cinema-roster .roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tv-mode .cinema-roster .explorer-chip{min-width:0;background:#153d4c;color:#fff9ef;border:1px solid #f3c56855;align-items:center}
.tv-mode .cinema-roster .explorer-chip b{white-space:normal;overflow:visible;text-overflow:clip;font-size:22px;line-height:1.6;color:#fff9ef}
.tv-mode .cinema-roster .explorer-chip small{color:#f3c568;font-size:18px}
.tv-mode .tv-scoreboard{flex-shrink:0;margin-block-start:0;z-index:4}
.tv-mode .tv-scoreboard .teams{gap:16px;max-width:none}
.tv-mode .tv-scoreboard .team{background:#071e32e0;border:1px solid #f3c56845;border-radius:14px;color:#fff9ef;box-shadow:none;padding:14px 18px}
.tv-mode .tv-scoreboard .team-head,.tv-mode .tv-scoreboard .team-head b{color:#fff9ef;font-size:clamp(20px,1.5vw,28px)}
.tv-mode .tv-scoreboard .team-head strong{font-size:clamp(22px,1.75vw,34px);color:#f3c568}
.tv-mode .tv-scoreboard .team-track{background:#ffffff22}
.tv-mode .tv-scoreboard>.route-outcome{color:#fff9ef;background:#071e32ed;border-color:#f3c56855;margin-block:0 12px;padding:10px 18px;max-width:none}
.tv-mode .tv-scoreboard>.route-outcome>span{color:#f3c568;font-size:28px}
.tv-mode .tv-scoreboard>.route-outcome strong{color:#f3c568;font-size:clamp(22px,1.7vw,32px)}
.tv-mode .tv-scoreboard>.route-outcome p,.tv-mode .tv-scoreboard>.route-outcome small{color:#fff9ef;font-size:clamp(20px,1.45vw,28px);margin-block:2px 0}
.tv-mode .phase-animation .tv-scoreboard>.route-outcome{display:none}
.tv-mode .tv-content .completed-count{color:#fff9ef;background:#071e32e8;border:1px solid #f3c56855}
.tv-mode .tv-content .completed-count strong{color:#f3c568}
.tv-mode .cinematic-question .tv-scoreboard{display:none}
.tv-mode .tv-interlude{background:transparent;border:0;box-shadow:none;padding:0;margin:0;color:#fff9ef;text-align:start}
.tv-mode .tv-interlude h1,.tv-mode .tv-interlude h2,.tv-mode .tv-welcome h1{color:#fff9ef;font-size:clamp(40px,4.5vw,88px);line-height:1.5;margin-block:14px 22px;text-shadow:0 3px 24px #05182b55}
.tv-mode .tv-interlude p{color:#fff9ef;font-size:clamp(24px,2vw,38px);line-height:1.7}
.tv-mode .public-mission>strong,.tv-mode .tv-interlude .eyebrow{color:#f3c568;font-size:clamp(26px,2.2vw,42px)}
.tv-mode .tv-lobby{display:flex;flex-direction:column;gap:22px;align-items:stretch;padding:0}
.tv-mode .join-code-panel{background:#071e32e0;border:1px solid #f3c56870;color:#fff9ef;padding:20px;border-radius:18px}
.tv-mode .join-code-panel h2{font-size:clamp(24px,1.8vw,34px);color:#fff9ef;margin:0}
.tv-mode .join-code-panel .qr-box{width:clamp(120px,11vw,208px);height:clamp(120px,11vw,208px);margin:14px auto}
.tv-mode .join-code-panel .display-code{color:#f3c568;font-size:clamp(28px,2.8vw,54px);padding:0}
.tv-mode .join-code-panel p{font-size:clamp(20px,1.4vw,28px);color:#fff9ef;margin:0}
.tv-mode .tv-welcome h1{font-size:clamp(38px,3.8vw,72px);margin-block:0 14px}
.tv-mode .tv-welcome .explorer-chip{background:#071e32e0;color:#fff9ef;border:1px solid #f3c56860}
.tv-mode .tv-welcome .explorer-chip b,.tv-mode .tv-welcome .explorer-chip small{color:#fff9ef}
.tv-mode .tv-welcome .eyebrow{color:#f3c568}
.tv-mode .beacon-progress{background:#071e32d9;color:#fff9ef;padding:18px;border-radius:16px}
.tv-mode .beacon-progress>p>strong{color:#f3c568}
@media(max-height:700px){.tv-mode .tv-scene{padding-block:4vh}.tv-mode .tv-heading{min-height:40px}.tv-mode .tv-content{margin-block:1.8vh}.tv-mode .tv-content .question-prompt{line-height:1.4;margin-block:10px 16px}.tv-mode .tv-content .answer.read-only{min-height:68px;padding:12px 16px}.tv-mode .tv-content .answers{gap:12px}.tv-mode .tv-scoreboard .team{padding:10px 14px}}
@media(max-width:900px){.tv-mode .tv-content{width:70%}.tv-mode .activation-layout{grid-template-columns:1fr;min-height:100svh;height:auto}.tv-mode .cinematic-welcome .activation-story{width:65%}.tv-mode .activation-card{max-width:none}.tv-mode .tv-heading{flex-wrap:wrap}.tv-mode .tv-content .answer.read-only{font-size:22px}.tv-mode .tv-scoreboard .teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.tv-mode *{animation:none!important;transition:none!important}}
.reduce-motion.tv-mode *{animation:none!important;transition:none!important}
