/* Safe position and viewport defaults survive browsers without inset/env/dvh. */
.screen,.flash,.tape-wrap,.leader-pop{top:0;right:0;bottom:0;left:0}
canvas#confetti{top:0;left:0}
html.legacy-css .title{font-size:80px}
html.legacy-css .tagline{font-size:20px}
html.legacy-css .start-hero .chemy{width:130px}
html.legacy-css #start{padding:64px 20px 24px;gap:14px}
html.legacy-css .form-card{width:94vw;max-width:480px;margin-top:auto;margin-bottom:auto}
html.legacy-css .mini-board{width:92vw;max-width:420px}
html.legacy-css .hud,html.legacy-css .timebar,html.legacy-css .game-mid,html.legacy-css .choices{width:100%;max-width:560px}
html.legacy-css .count-num{font-size:160px}
html.legacy-css .card{width:100%;max-width:520px;height:100%;min-height:0}
html.legacy-css .card-prompt{font-size:24px}
html.legacy-css .card.textonly .card-prompt{font-size:28px}
html.legacy-css .card.long-copy .card-prompt{font-size:18px}
html.legacy-css .card.wrong .card-prompt{font-size:20px}
html.legacy-css .reveal{font-size:16px}
html.legacy-css .choice{font-size:18px}
html.legacy-css .choice.long-answer{font-size:15px}
html.legacy-css .res-score{font-size:110px}
html.legacy-css .res-title{font-size:30px}
html.legacy-css .res-stats{width:100%;max-width:420px}
html.legacy-css .banner{font-size:28px}
html.legacy-css .burst{width:70vw;max-width:320px}
html.legacy-css .tape-strip{font-size:28px}
html.legacy-css .leaderboard-active,html.legacy-css .leaderboard-active .page{height:100vh}
html.legacy-css .leaderboard-active .content{padding:18px 4vw}
html.legacy-css .leaderboard-active h1{font-size:40px}
html.legacy-css .leaderboard-active .board-table td{font-size:20px;padding:7px 12px}
html.legacy-css .booth-join{padding:18px}
html.legacy-css .booth-join img{max-width:190px;margin:auto}
html.legacy-css .booth-company{padding:18px}
.no-flex-gap .form-actions>*+*{margin-left:10px}
.no-flex-gap .start-hero>*{margin:8px}
.no-flex-gap .link-row>*{margin:5px}
.no-flex-gap .lives .life+.life{margin-left:4px}
.no-flex-gap .hud-stat>*+*{margin-left:4px}
.no-flex-gap .teams{grid-gap:8px}
.no-flex-gap .choices{grid-gap:12px}
.no-flex-gap .res-stats{grid-gap:10px}
.no-grid .teams{display:flex;flex-wrap:wrap;margin:-4px}
.no-grid .team-btn{width:calc(50% - 8px);margin:4px}
.no-grid .choices{display:flex}
.no-grid .choice{width:calc(50% - 12px);margin:0 6px}
.no-grid .res-stats{display:flex;flex-wrap:nowrap}
.no-grid .res-stat{width:32%;margin:0 3px}
.no-grid .board-layout{display:flex;align-items:flex-start}
.no-grid .board-main{flex:1;min-width:0}
.no-grid .booth-sidebar{width:25%;margin-left:24px}
dialog:not([open]){display:none}
dialog[open]{display:block}
@media(max-width:480px){html.legacy-css .card.textonly .card-prompt{font-size:24px}html.legacy-css .res-title{font-size:26px}html.legacy-css .res-score{font-size:90px}}
@media(max-height:700px){html.legacy-css .title{font-size:64px}html.legacy-css .start-hero .chemy{width:90px}html.legacy-css .tagline{font-size:16px}}
@media(max-height:500px) and (min-width:500px){html.legacy-css .card-prompt{font-size:19px}html.legacy-css .card.textonly .card-prompt{font-size:22px}}
@media(max-width:899px){.no-grid .board-layout{display:block}.no-grid .booth-sidebar{display:none}}
@media(prefers-reduced-motion:reduce){.screen .chemy,.screen .card.enter,.screen .smoke,.screen .count-num,.screen .flash,.screen .burst,.screen .banner,.screen.shake{animation:none!important}}
