:root {
  color-scheme: dark;
  --ink: #fffaf0; --muted: #cfc2ef; --night: #180d35; --panel: #2a1754; --panel-2: #38216d;
  --purple: #8b5cf6; --yellow: #ffd84d; --pink: #ff5f91; --cyan: #44d9e8; --green: #67e89c; --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(10, 4, 28, 0.3); font-family: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 4%, rgba(255,95,145,.2), transparent 25rem), radial-gradient(circle at 92% 12%, rgba(68,217,232,.18), transparent 28rem), var(--night); }
button, input, select { font: inherit; } button { cursor: pointer; } a { color: inherit; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1rem; }
.loading-screen p { color: var(--muted); font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 1.35rem; background: var(--yellow); color: var(--night); font: 800 2.7rem/1 "Baloo 2"; transform: rotate(-5deg); box-shadow: 0 10px 0 #b99400; }
.loading-logo { animation: loading-logo-dance 1.25s ease-in-out infinite; will-change: transform; }
@keyframes loading-logo-dance {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  25% { transform: translateY(-7px) rotate(8deg); }
  50% { transform: translateY(0) rotate(-9deg); }
  75% { transform: translateY(-4px) rotate(5deg); }
}
.shell { min-height: 100vh; padding: clamp(1rem, 2.5vw, 2.5rem); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 auto 1.5rem; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: .8rem; font: 800 clamp(1.2rem,2vw,1.65rem)/1 "Baloo 2"; text-decoration: none; }
.brand .logo-mark { width: 2.65rem; height: 2.65rem; border-radius: .8rem; font-size: 1.7rem; box-shadow: 0 5px 0 #b99400; }
.room-pill, .status-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-weight: 900; letter-spacing: .05em; }
.room-pill strong { color: var(--ink); letter-spacing: .12em; }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .25rem rgba(103,232,156,.15); }
.tv-grid { width: min(1320px,100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(19rem,.7fr); gap: clamp(1rem,2vw,2rem); }
.stage, .side-card, .panel { border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg, rgba(56,33,109,.94), rgba(36,19,77,.96)); box-shadow: var(--shadow); }
.stage { min-height: calc(100vh - 8rem); border-radius: 2rem; padding: clamp(1.5rem,4vw,4rem); display: grid; place-content: center; text-align: center; overflow: hidden; position: relative; }
.stage::before, .stage::after { content: ""; position: absolute; width: 12rem; height: 12rem; border: 2rem solid rgba(255,216,77,.08); border-radius: 50%; }
.stage::before { top: -7rem; left: -5rem; } .stage::after { right: -6rem; bottom: -7rem; border-color: rgba(68,217,232,.08); }
.eyebrow { margin: 0 0 .75rem; color: var(--yellow); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Baloo 2", sans-serif; line-height: .98; }
h1 { font-size: clamp(3.2rem,7vw,7rem); letter-spacing: -.045em; } h2 { font-size: clamp(2rem,4vw,3.75rem); letter-spacing: -.03em; } h3 { font-size: 1.4rem; }
.lede { margin: 1.2rem auto 0; max-width: 45rem; color: var(--muted); font-size: clamp(1.1rem,2vw,1.55rem); line-height: 1.5; font-weight: 700; }
.highlight { color: var(--yellow); }
.side-stack { display: grid; gap: 1rem; align-content: start; }
.side-card, .panel { border-radius: 1.5rem; padding: 1.35rem; }
.qr-card { background: var(--ink); color: var(--night); }
.qr-frame { width: min(100%,18rem); aspect-ratio: 1; margin: 1rem auto; padding: .9rem; border: .25rem solid var(--night); border-radius: 1.25rem; display: grid; place-items: center; }
.qr-frame img, .qr-frame canvas { width: 100% !important; height: 100% !important; }
.qr-card h3 { text-align: center; font-size: 1.7rem; } .qr-card p { margin: .35rem 0 0; text-align: center; color: #65567e; font-weight: 800; }
.session-code { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; font-size: 1.6rem; font-weight: 900; letter-spacing: .2em; }
.player-row, .meta-row { display: flex; align-items: center; gap: .75rem; }
.player-row + .player-row { margin-top: .75rem; }
.player-row.is-offline { opacity: .48; }
.player-row.is-offline .avatar { filter: grayscale(1); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; border-radius: .9rem; background: var(--cyan); color: var(--night); font-weight: 1000; }
.player-row:nth-child(3n+2) .avatar { background: var(--pink); } .player-row:nth-child(3n+3) .avatar { background: var(--yellow); }
.player-copy { min-width: 0; flex: 1; } .player-copy strong, .player-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-copy span { color: var(--muted); font-size: .9rem; } .score { color: var(--yellow); font-size: 1.15rem; font-weight: 1000; }
.empty { padding: 1.25rem; border: 2px dashed rgba(255,255,255,.16); border-radius: 1rem; color: var(--muted); text-align: center; font-weight: 800; }
.page { width: min(1100px,100%); margin: 0 auto; } .phone-page { width: min(560px,100%); margin: 0 auto; }
/* Treat rapid taps on phone controls as game input, not browser double-tap zoom. */
.phone-page button, .phone-page a, .phone-page summary, .phone-page label { touch-action: manipulation; }
.page-header { margin: 2rem 0; } .page-header p { color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.form-card { padding: clamp(1.35rem,4vw,2.25rem); }
.field { display: grid; gap: .5rem; margin-top: 1.1rem; } .field label { font-weight: 900; }
.input, .select { width: 100%; min-height: 3.5rem; border: 2px solid rgba(255,255,255,.14); border-radius: 1rem; padding: .75rem 1rem; background: rgba(10,4,28,.35); color: var(--ink); outline: none; }
.input:focus, .select:focus { border-color: var(--cyan); box-shadow: 0 0 0 .25rem rgba(68,217,232,.15); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; border: 0; border-radius: 1rem; padding: .75rem 1.15rem; background: var(--yellow); color: var(--night); font-weight: 1000; box-shadow: 0 5px 0 #b99400; transition: transform .15s,box-shadow .15s,opacity .15s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b99400; } .button:active { transform: translateY(3px); box-shadow: 0 2px 0 #b99400; }
.button.secondary { color: var(--ink); background: var(--purple); box-shadow: 0 5px 0 #5d36b0; } .button.ghost { color: var(--ink); background: rgba(255,255,255,.09); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.button.danger { color: white; background: var(--red); box-shadow: 0 5px 0 #b93535; } .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; } .button-row > * { flex: 1; }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: grid; gap: .5rem; }
.toast { max-width: 24rem; padding: .9rem 1.1rem; border-radius: .9rem; background: var(--ink); color: var(--night); box-shadow: var(--shadow); font-weight: 900; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(.5rem) scale(.96); } }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.download-app { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .55rem .85rem; border: 1px solid rgba(255,255,255,.16); border-radius: .8rem; background: rgba(255,255,255,.09); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 1000; white-space: nowrap; transition: transform .15s,background .15s; }
.download-app:hover { transform: translateY(-2px); background: rgba(255,255,255,.15); }
.tv-host-meta { display: flex; align-items: center; gap: .8rem; }
.tv-host-meta > div:first-child { display: grid; justify-items: end; }
.tv-host-meta small { color: var(--yellow); font-size: .68rem; font-weight: 1000; letter-spacing: .12em; }
.tv-host-meta strong { font: 800 1.25rem/1.1 "Baloo 2"; }
.tv-host-meta span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.top-qr { width: 6.5rem; height: 6.5rem; display: grid; place-items: center; padding: .25rem; border-radius: .7rem; background: var(--ink); }
.top-qr img, .top-qr canvas { width: 100% !important; height: 100% !important; }
.host-badge, .mini-score, .answer-badge { padding: .55rem .8rem; border-radius: .7rem; background: var(--pink); color: var(--night); font-size: .82rem; font-weight: 1000; letter-spacing: .06em; }
.mini-score { background: var(--yellow); font-size: .95rem; }
.social-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.social-stats > div { display: grid; gap: .4rem; padding: 1rem; border-radius: 1rem; background: rgba(255,255,255,.08); text-align: center; }
.social-stats strong { color: var(--yellow); font-size: clamp(1.8rem, 4vw, 3rem); }
.social-stats span { font-size: .9rem; }
.social-vote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; max-height: 30vh; overflow-y: auto; margin: 1rem 0; }
.social-vote-row { display: flex; align-items: center; gap: .65rem; padding: .65rem; border-radius: .8rem; background: rgba(255,255,255,.08); }
.social-vote-row strong { flex: 1; overflow-wrap: anywhere; }
.social-vote-row > span:last-child { color: var(--yellow); white-space: nowrap; }
.player-name-edit { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.2); border-radius: .7rem; background: rgba(255,255,255,.08); color: var(--ink); font: inherit; font-size: 1.4rem; cursor: pointer; }
.player-name-edit:hover { background: rgba(255,255,255,.16); }
.player-name-edit:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.card-note, .form-intro, .control-deck p, .phone-wait p, .phone-result p { color: var(--muted); line-height: 1.5; font-weight: 700; }
.rank { width: 1rem; color: var(--muted); font-weight: 1000; }
.game-hero-icon { margin-bottom: .6rem; font-size: clamp(4rem, 9vw, 8rem); }
.question-stage { width: min(100%, 980px); }
.question-top, .phone-question-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.question-number, .phone-question-top > span:first-child { color: var(--yellow); font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
.timer { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border: .3rem solid var(--cyan); border-radius: 50%; color: var(--ink); background: rgba(10,4,28,.35); font: 900 2rem/1 "Baloo 2"; }
.timer.urgent { border-color: var(--pink); animation: pulse .75s infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); box-shadow: 0 0 0 .7rem rgba(255,95,145,.12); } }
.tv-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; text-align: left; }
.tv-option { position: relative; min-height: 6.6rem; padding: 1.1rem; border-radius: 1.25rem; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .8rem; overflow: hidden; background: rgba(255,255,255,.08); border: 3px solid transparent; }
.tv-option.pink, .answer-button.pink { --choice: var(--pink); } .tv-option.cyan, .answer-button.cyan { --choice: var(--cyan); } .tv-option.yellow, .answer-button.yellow { --choice: var(--yellow); } .tv-option.green, .answer-button.green { --choice: var(--green); }
.option-key, .answer-button > span { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .85rem; background: var(--choice); color: var(--night); font-weight: 1000; }
.tv-option strong { font-size: clamp(1.1rem,2.2vw,1.7rem); }
.tv-option.correct { border-color: var(--green); box-shadow: 0 0 0 .35rem rgba(103,232,156,.16); }
.vote-bar { grid-column: 2 / -1; height: .55rem; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.vote-bar i { display: block; height: 100%; background: var(--choice); border-radius: inherit; transition: width .35s; }
.votes { color: var(--muted); font-weight: 800; }
.answers-in { margin: 1.5rem 0 0; color: var(--muted); font-weight: 900; }
.reveal-note { margin: 1.35rem auto 0; max-width: 48rem; padding: 1rem 1.3rem; border-radius: 1rem; background: rgba(103,232,156,.12); }
.reveal-note strong, .reveal-note span { display: block; } .reveal-note strong { color: var(--green); font-size: 1.2rem; } .reveal-note span { margin-top: .25rem; color: var(--muted); }
.leaderboard { margin: 2rem auto 0; width: min(100%, 32rem); padding: 1.3rem; border-radius: 1.25rem; background: rgba(10,4,28,.3); text-align: left; }

.join-card { margin-top: clamp(2rem,10vh,7rem); }
.join-card h2 { margin-bottom: .75rem; }
.join-actions { display: grid; gap: .9rem; margin-top: 1.25rem; }
.moderator-taken { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .8rem; color: var(--muted); }
.moderator-taken strong { color: var(--ink); }
.first-in { margin: 0; color: var(--muted); text-align: center; font-size: .9rem; font-weight: 700; }

.host-layout { display: grid; grid-template-columns: minmax(0,1fr) 20rem; gap: 1.25rem; align-items: start; }
.host-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.button.small { min-height: 2.7rem; flex: 0 0 auto; }
.host-section { margin-bottom: 1.4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading .eyebrow { margin-bottom: .35rem; }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.game-card { min-height: 9rem; padding: 1rem; border: 2px solid rgba(255,255,255,.12); border-radius: 1.2rem; background: var(--panel); color: var(--ink); text-align: left; transition: transform .15s,border-color .15s,opacity .15s; }
.game-card:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--choice); }
.game-card.selected { border-color: var(--choice); box-shadow: inset 0 0 0 2px var(--choice); }
.game-card:disabled { cursor: not-allowed; opacity: .46; }
.game-card.pink { --choice: var(--pink); } .game-card.cyan { --choice: var(--cyan); } .game-card.yellow { --choice: var(--yellow); } .game-card.purple { --choice: var(--purple); } .game-card.green { --choice: var(--green); }
.game-card span, .game-card strong, .game-card small { display: block; }
.game-card .game-icon { font-size: 2rem; margin-bottom: .7rem; } .game-card strong { font-size: 1rem; } .game-card small { margin-top: .25rem; color: var(--muted); font-weight: 800; }
.category-field { max-width: 25rem; }
.control-deck { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.control-deck p { margin: .4rem 0 0; }
.control-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.host-timer { display: flex; align-items: baseline; gap: .3rem; color: var(--yellow); }
.host-timer span { font: 900 3rem/1 "Baloo 2"; } .host-timer small { color: var(--muted); font-weight: 800; }
.sticky-panel { position: sticky; top: 1rem; }
.host-player-list { max-height: 70vh; overflow: auto; }
.answer-badge { padding: .4rem .55rem; background: var(--cyan); }
.ended-panel { padding: 2rem; text-align: center; }

.phone-wait, .phone-result { margin-top: clamp(2rem,8vh,6rem); padding: 2.5rem 1.5rem; text-align: center; }
.hero-avatar { width: 5rem; height: 5rem; margin: 0 auto 1.25rem; border-radius: 1.5rem; font-size: 1.7rem; }
.waiting-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.6rem; }
.waiting-dots i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--yellow); animation: bounce .9s infinite alternate; }
.waiting-dots i:nth-child(2) { animation-delay: .2s; } .waiting-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { to { transform: translateY(-.55rem); opacity: .45; } }
.phone-question { padding-bottom: 2rem; }
.phone-question h2 { margin: 1.5rem 0; font-size: clamp(2rem,8vw,3.25rem); line-height: 1.08; }
.phone-question-top { margin-top: 1rem; }
.phone-question-top .timer { width: 3.7rem; height: 3.7rem; font-size: 1.55rem; }
.answer-grid { display: grid; gap: .85rem; }
.answer-button { width: 100%; min-height: 5.5rem; display: grid; grid-template-columns: 3.1rem 1fr; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 2px solid rgba(255,255,255,.13); border-radius: 1.15rem; background: var(--panel-2); color: var(--ink); text-align: left; transition: transform .12s,border-color .12s,opacity .12s; }
.answer-button:not(:disabled):active { transform: scale(.98); }
.answer-button.chosen { border-color: var(--choice); box-shadow: inset 0 0 0 2px var(--choice); }
.answer-button:disabled:not(.chosen) { opacity: .42; }
.answer-button strong { font-size: 1.15rem; }
.answer-locked { margin-top: 1rem; padding: .9rem; border-radius: .9rem; background: rgba(68,217,232,.12); color: var(--cyan); text-align: center; font-weight: 900; }
.tap-hint, .waiting-copy { color: var(--muted); text-align: center; font-weight: 800; }
.result-icon { margin-bottom: .5rem; font-size: 4rem; }
.phone-result.winner { border-color: rgba(103,232,156,.55); }
.points-won { display: inline-block; margin: 1rem 0; padding: .65rem 1rem; border-radius: 999px; background: var(--yellow); color: var(--night); font-weight: 1000; }
.big-score { margin: 1rem 0; color: var(--yellow); font: 900 clamp(5rem,20vw,8rem)/1 "Baloo 2"; }
.player-cloud { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.player-chip { min-width: 0; display: grid; grid-template-columns: 2.2rem minmax(0,1fr) auto; align-items: center; gap: .45rem; padding: .45rem; border-radius: .8rem; background: rgba(255,255,255,.06); }
.player-chip .avatar { width: 2.2rem; height: 2.2rem; border-radius: .65rem; font-size: .8rem; }
.player-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.player-chip > span:last-child { color: var(--yellow); font-size: .8rem; font-weight: 1000; }
.vote-names { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem; }
.vote-names span, .vote-names em { padding: .3rem .5rem; border-radius: .5rem; background: rgba(255,255,255,.11); font-size: .78rem; font-style: normal; font-weight: 900; }
.vote-names em { color: var(--muted); }
.round-result { display: grid; grid-template-columns: minmax(15rem,.75fr) minmax(18rem,1.25fr); gap: .75rem; margin-top: .85rem; }
.round-result .reveal-note { margin: 0; text-align: left; }
.round-winner { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: 1rem; background: var(--yellow); color: var(--night); text-align: left; }
.round-winner > span { font-size: 1.8rem; }
.round-winner small, .round-winner strong { display: block; } .round-winner small { font-size: .65rem; font-weight: 1000; letter-spacing: .1em; } .round-winner strong { margin-top: .1rem; }
.fastest-callout { margin: .75rem auto; color: var(--yellow); font-weight: 1000; }
.answer-changeable { margin-top: 1rem; padding: .9rem; border-radius: .9rem; background: rgba(103,232,156,.12); color: var(--green); text-align: center; font-weight: 900; }

.moderator-menu { padding: 0; overflow: hidden; }
.moderator-menu > summary { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.15rem; cursor: pointer; list-style: none; }
.moderator-menu > summary::-webkit-details-marker { display: none; }
.moderator-menu > summary small, .moderator-menu > summary strong { display: block; }
.moderator-menu > summary small { color: var(--yellow); font-size: .72rem; font-weight: 1000; letter-spacing: .12em; }
.moderator-menu > summary strong { margin-top: .15rem; font-size: 1.05rem; }
.menu-chevron { font-size: 1.8rem; transition: transform .2s; }
.moderator-menu[open] .menu-chevron { transform: rotate(180deg); }
.moderator-menu-body { padding: .4rem 1.15rem 1.15rem; border-top: 1px solid rgba(255,255,255,.1); }
.moderator-menu .host-welcome { padding: 1rem 0; margin: 0; box-shadow: none; border: 0; background: none; }
.game-settings { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; }
.game-settings .field { flex: 1 1 13rem; }
.duration-control { display: flex; align-items: center; gap: .65rem; }
.duration-control .input { width: 6rem; }
.duration-control span { color: var(--muted); font-weight: 800; }
.moderator-menu .control-deck { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.moderator-play { width: min(560px,100%); margin: 1rem auto; }
.remote-stage {
  min-height: clamp(20rem, calc(100vh - 10rem), 42rem);
  min-height: clamp(20rem, calc(100svh - 10rem), 42rem);
  overflow-anchor: none;
  scroll-margin-top: 1rem;
}
.remote-stage > .phone-question { padding: .6rem .15rem; }
.remote-stage > .phone-wait, .remote-stage > .phone-result {
  min-height: clamp(20rem, calc(100vh - 10rem), 42rem);
  min-height: clamp(20rem, calc(100svh - 10rem), 42rem);
  margin-top: 0; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.remote-stage .phone-question-top { margin: 0 0 .65rem; }
.remote-stage .phone-question h2 { margin: .7rem 0 1rem; font-size: clamp(1.5rem, 5.8vw, 2.25rem); }
.remote-stage .answer-grid { gap: .6rem; }
.remote-stage .answer-button { min-height: 4.25rem; padding: .65rem .8rem; }
.remote-stage .answer-changeable { margin-top: .65rem; padding: .6rem; }
.remote-stage .tap-hint { margin: .65rem 0 0; }
.remote-stage .social-vote-list { max-height: none; overflow: visible; }
.play-label { margin-bottom: .6rem; color: var(--cyan); text-align: center; font-size: .75rem; font-weight: 1000; letter-spacing: .14em; }
.host-roster { margin-top: 1rem; }
.host-roster .host-player-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; }
.host-roster .player-row + .player-row { margin-top: 0; }
.host-roster .host-player-list { max-height: none; overflow: visible; }
.host-round-bar {
  width: 100%; margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem .65rem;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
}
.host-round-bar .button { min-height: 2.75rem; padding: .55rem .75rem; touch-action: manipulation; }
.host-round-primary { flex: 1; min-width: 0; }
.host-round-primary .button { width: 100%; }
.host-round-bar .host-timer { flex: 0 0 4rem; width: 4rem; gap: .15rem; }
.host-round-bar .host-timer span { flex: 0 0 2ch; width: 2ch; font-size: 1.8rem; font-variant-numeric: tabular-nums; text-align: center; }
.host-round-bar .host-timer small { font-size: .65rem; }

@media (min-width: 851px) {
  .tv-shell.has-moderator .tv-grid { grid-template-columns: minmax(0,1fr); }
  .tv-shell.has-moderator .side-stack { display: none; }
}

@media (min-width: 851px) and (max-height: 800px) {
  .tv-shell { height: 100vh; min-height: 0; overflow: hidden; padding: .65rem 1rem; }
  .tv-shell .topbar { height: 2.9rem; margin-bottom: .55rem; }
  .tv-shell .tv-grid { height: calc(100vh - 4.1rem); grid-template-columns: minmax(0,1fr) 18rem; gap: .7rem; }
  .tv-shell .stage { min-height: 0; height: 100%; padding: 1.15rem 1.5rem; border-radius: 1.4rem; }
  .tv-shell .side-stack { min-height: 0; grid-template-rows: auto auto minmax(0,1fr); gap: .55rem; }
  .tv-shell .side-card { padding: .75rem; border-radius: 1rem; }
  .tv-shell .qr-card { display: grid; grid-template-columns: 1fr 8rem; align-items: center; gap: .55rem; }
  .tv-shell:not(.has-moderator) .qr-card { display: block; }
  .tv-shell:not(.has-moderator) .qr-frame { width: 12rem; margin: .65rem auto; }
  .tv-shell .qr-frame { width: 7.6rem; margin: 0; padding: .35rem; border-width: .18rem; border-radius: .75rem; }
  .tv-shell .qr-card h3 { font-size: 1.15rem; text-align: left; }
  .tv-shell .qr-card p { font-size: .75rem; text-align: left; }
  .tv-shell .session-code { justify-content: flex-start; margin-top: .3rem; font-size: 1rem; }
  .tv-shell .moderator-card .eyebrow, .tv-shell .players-card .eyebrow { margin-bottom: .3rem; font-size: .7rem; }
  .tv-shell .moderator-card h3 { font-size: 1.05rem; }
  .tv-shell .card-note { margin: .2rem 0 0; font-size: .75rem; }
  .tv-shell .players-card { min-height: 0; overflow: hidden; }
  .tv-shell .player-row { gap: .45rem; }
  .tv-shell .player-row + .player-row { margin-top: .35rem; }
  .tv-shell .player-row .avatar { width: 2rem; height: 2rem; border-radius: .6rem; font-size: .75rem; }
  .tv-shell .player-row .player-copy span { display: none; }
  .tv-shell .player-row .player-copy strong, .tv-shell .player-row .score { font-size: .82rem; }
  .tv-shell .question-stage h2 { font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.02; }
  .tv-shell .question-top { margin-bottom: .55rem; }
  .tv-shell .timer { width: 3.35rem; height: 3.35rem; border-width: .22rem; font-size: 1.45rem; }
  .tv-shell .tv-options { gap: .55rem; margin-top: .75rem; }
  .tv-shell .tv-option { min-height: 4.7rem; padding: .65rem .75rem; grid-template-columns: 2.4rem 1fr auto; gap: .5rem; border-radius: .9rem; }
  .tv-shell .option-key { width: 2.2rem; height: 2.2rem; border-radius: .6rem; }
  .tv-shell .tv-option strong { font-size: 1.05rem; }
  .tv-shell .vote-bar { height: .35rem; }
  .tv-shell .answers-in { margin-top: .75rem; }
  .tv-shell .round-result { margin-top: .55rem; }
  .tv-shell .round-winner, .tv-shell .reveal-note { padding: .55rem .75rem; }
  .tv-shell.has-moderator .topbar { height: 6.6rem; margin-bottom: .45rem; }
  .tv-shell.has-moderator .tv-grid { height: calc(100vh - 7.7rem); grid-template-columns: minmax(0,1fr); }
  .tv-shell.has-moderator .stage { padding: .8rem 1.25rem; }
  .tv-shell.has-moderator .question-stage { width: min(100%, 1160px); }
  .tv-shell .showing-results .question-top { margin-bottom: .25rem; }
  .tv-shell .showing-results h2 { font-size: clamp(1.75rem,2.7vw,2.45rem); }
  .tv-shell .showing-results .tv-options { gap: .45rem; margin-top: .5rem; }
  .tv-shell .showing-results .tv-option { min-height: 0; padding: .5rem .65rem; grid-template-columns: 2.25rem minmax(0,1fr) auto; gap: .4rem; border-width: 2px; }
  .tv-shell .showing-results .option-key { width: 2rem; height: 2rem; }
  .tv-shell .showing-results .vote-bar { display: none; }
  .tv-shell .showing-results .votes { padding: .2rem .45rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .72rem; white-space: nowrap; }
  .tv-shell .showing-results .vote-names { grid-column: 2 / -1; min-height: 1.55rem; max-height: 2.9rem; overflow: hidden; }
  .tv-shell .showing-results .vote-names span, .tv-shell .showing-results .vote-names em { padding: .2rem .4rem; font-size: .7rem; }
  .tv-shell .showing-results .round-result { grid-template-columns: minmax(17rem,.8fr) minmax(24rem,1.2fr); gap: .5rem; }
  .tv-shell .showing-results .round-winner small { font-size: .6rem; }
  .tv-shell .showing-results .round-winner strong, .tv-shell .showing-results .reveal-note strong { font-size: .95rem; }
  .tv-shell .showing-results .reveal-note span { font-size: .78rem; line-height: 1.25; }
}
@media (max-width:850px) { .tv-grid { grid-template-columns: 1fr; } .stage { min-height: 48vh; } .side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); } .qr-card { grid-row: span 2; } }
@media (max-width:1000px) { .host-layout { grid-template-columns: 1fr; } .sticky-panel { position: static; } .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:700px) { .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .control-deck { align-items: stretch; flex-direction: column; } .control-actions { justify-content: stretch; } .control-actions .button { flex: 1; } }
@media (max-width:560px) { .shell { padding: .85rem; } .topbar { margin-bottom: 1rem; } .brand > span:last-child, .host-badge { display: none; } .side-stack { grid-template-columns: 1fr; } .stage { min-height: 44vh; border-radius: 1.35rem; } .room-pill { padding: .55rem .75rem; font-size: .82rem; } .tv-options { grid-template-columns: 1fr; } .host-welcome { align-items: flex-start; } .game-card { min-height: 8.2rem; } .round-result { grid-template-columns: 1fr; } .host-roster .host-player-list { grid-template-columns: 1fr; } .tv-host-meta > div:first-child { display: none; } .top-qr { width: 3.5rem; height: 3.5rem; } .download-app { display: none; } }

.stage::before { animation: float-orbit 10s ease-in-out infinite alternate; }
.stage::after { animation: float-orbit 12s ease-in-out -4s infinite alternate-reverse; }
.stage-enter { animation: stage-in .42s cubic-bezier(.2,.8,.2,1); }
.score-pop .player-row { animation: score-in .45s both; }
.score-pop .player-row:nth-child(2) { animation-delay: .08s; }
.score-pop .player-row:nth-child(3) { animation-delay: .16s; }
.fresh-reveal .tv-option.correct { animation: correct-burst .55s cubic-bezier(.2,.9,.3,1); }
.tv-option.vote-wiggle { animation: vote-wiggle .42s cubic-bezier(.36,.07,.19,.97); }
.tv-options.two-options .tv-option { min-height: 11rem; }
.tv-options.blitz-options .tv-option { min-height: 13rem; justify-items: center; grid-template-columns: 4rem 1fr; text-align: center; }
.tv-options.blitz-options .option-key { width: 3.7rem; height: 3.7rem; font-size: 1.35rem; }
.tv-options.blitz-options .tv-option strong { font-size: clamp(2rem,4vw,3.5rem); text-transform: uppercase; }
.blitz-phone .answer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.blitz-phone .answer-button { min-height: 10rem; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.blitz-phone .answer-button > span { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
.blitz-phone .answer-button strong { font-size: 1.7rem; text-transform: uppercase; }
.streak-callout { margin: .4rem auto .8rem; color: #ff9f43; font-weight: 1000; animation: pulse .55s alternate 2; }
.preference-result { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1rem auto 0; padding: .85rem 1.2rem; width: fit-content; border-radius: 1rem; background: var(--yellow); color: var(--night); }
.preference-result > span { font-size: 2rem; }
.preference-result small, .preference-result strong { display: block; }
.preference-result small { font-size: .68rem; font-weight: 1000; letter-spacing: .12em; }
.preference-result strong { margin-top: .15rem; font-size: 1.1rem; }
.guess-wait { display: grid; justify-items: center; gap: .5rem; margin: 2rem auto; color: var(--muted); font-weight: 900; }
.guess-wait > span { display: grid; place-items: center; width: 7rem; height: 7rem; border: .35rem dashed var(--cyan); border-radius: 50%; color: var(--cyan); font: 900 4rem/1 "Baloo 2"; }
.guess-wait p { margin: 0; }
.guess-wait.guess-pulse > span { animation: guess-pulse .38s ease-out; }
.exact-answer { display: grid; justify-items: center; gap: .2rem; margin: 1rem auto; }
.exact-answer small { color: var(--green); font-weight: 1000; letter-spacing: .12em; }
.exact-answer strong { color: var(--yellow); font: 900 clamp(3rem,7vw,6rem)/1 "Baloo 2"; }
.exact-answer span { color: var(--muted); font-weight: 800; }
.guess-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: 1rem auto; max-width: 50rem; }
.guess-card { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: .8rem; background: rgba(255,255,255,.07); text-align: left; }
.guess-card > span { color: var(--muted); font-weight: 1000; }.guess-card > b { color: var(--cyan); }.guess-card.closest { background: rgba(255,216,77,.16); border: 2px solid var(--yellow); }.guess-card.closest > b { color: var(--yellow); }
.guess-form { display: grid; gap: .8rem; margin-top: 1.5rem; }.guess-form label { font-weight: 900; }.guess-input { min-height: 5rem; text-align: center; color: var(--yellow); font: 900 2.2rem/1 "Baloo 2"; }
@keyframes guess-pulse { 45% { transform: scale(1.08); box-shadow: 0 0 2rem rgba(68,217,232,.35); } }
.order-track { display: grid; grid-template-columns: repeat(7,auto); align-items: center; justify-content: center; gap: .55rem; margin: 2rem auto; }
.order-track > i { color: var(--muted); font-size: 1.5rem; font-style: normal; font-weight: 1000; }
.order-card { min-width: 9rem; padding: 1rem; border: 2px solid rgba(255,255,255,.13); border-radius: 1rem; background: rgba(255,255,255,.08); }
.order-card span, .order-card strong { display: block; }.order-card span { color: var(--cyan); font-size: 1.4rem; font-weight: 1000; }.order-card strong { margin-top: .3rem; }
.order-card.ordered { border-color: var(--green); animation: order-in .38s both; }.order-card.ordered:nth-of-type(2) { animation-delay: .08s; }.order-card.ordered:nth-of-type(3) { animation-delay: .16s; }.order-card.ordered:nth-of-type(4) { animation-delay: .24s; }
.order-wait { display: grid; justify-items: center; gap: .35rem; color: var(--muted); font-weight: 900; }.order-wait span { padding: .65rem 1rem; border-radius: 999px; background: rgba(68,217,232,.12); color: var(--cyan); font: 900 1.4rem/1 "Baloo 2"; }.order-wait p { margin: 0; }.order-wait.guess-pulse span { animation: guess-pulse .38s ease-out; }
.submission-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }.submission-chips span { padding: .35rem .6rem; border-radius: .6rem; background: rgba(255,255,255,.09); color: var(--muted); font-weight: 900; }.submission-chips .is-correct { background: rgba(103,232,156,.16); color: var(--green); }
.picked-order { min-height: 3.5rem; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; padding: .7rem; border: 2px dashed rgba(255,255,255,.16); border-radius: 1rem; }.picked-order span { display: flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border-radius: .6rem; background: rgba(68,217,232,.12); font-weight: 900; }.picked-order b { color: var(--cyan); }.picked-order em { margin: auto; color: var(--muted); font-style: normal; font-weight: 800; }
.order-answer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }.order-answer-grid .answer-button { min-height: 4.5rem; }.order-actions { display: grid; grid-template-columns: auto auto 1fr; gap: .55rem; margin-top: .8rem; }
@keyframes order-in { from { opacity: 0; transform: translateX(-.6rem); } }
.audio-controls { display: flex; align-items: center; gap: .85rem; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: rgba(255,255,255,.055); }
.audio-controls > span { display: grid; margin-right: auto; }
.audio-controls small { color: var(--muted); font-weight: 700; }
.toggle { display: flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 900; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: white; transition: transform .2s; }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(1.15rem); }
.toggle input:focus-visible + i { outline: 3px solid var(--cyan); outline-offset: 2px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.confetti i { position: absolute; top: -8%; left: var(--x); width: .65rem; height: 1.1rem; border-radius: .15rem; background: var(--yellow); animation: confetti-fall 2.7s var(--delay) ease-in both; }
.confetti i:nth-child(3n+2) { background: var(--pink); }
.confetti i:nth-child(3n+3) { background: var(--cyan); }

@keyframes float-orbit { to { transform: translate(1.5rem,1rem) rotate(18deg) scale(1.12); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(.7rem) scale(.985); } }
@keyframes score-in { from { opacity: 0; transform: translateX(-1rem); } 70% { transform: translateX(.2rem); } }
@keyframes correct-burst { 45% { transform: scale(1.035); box-shadow: 0 0 2.2rem rgba(103,232,156,.55); } }
@keyframes vote-wiggle { 20% { transform: rotate(-1.2deg) scale(1.018); } 45% { transform: rotate(1.2deg) scale(1.018); } 70% { transform: rotate(-.6deg); } }
@keyframes confetti-fall { to { transform: translateY(115vh) rotate(var(--spin)); } }

@media (max-width:560px) { .audio-controls { align-items: flex-start; flex-wrap: wrap; } .audio-controls > span { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.buzz-in-stage .tv-options { margin-bottom: 1rem; }
.buzzer-wait, .buzzer-winner { display:flex; align-items:center; justify-content:center; gap:1rem; min-height:5rem; padding:1rem 1.25rem; border-radius:1.25rem; background:rgba(255,255,255,.62); text-align:left; }
.buzzer-wait > span, .buzzer-winner > span { font-size:2.5rem; }
.buzzer-wait p, .buzzer-winner strong { margin:0; }
.buzzer-winner small { display:block; letter-spacing:.12em; font-weight:800; opacity:.65; }
.buzzer-winner.pending { background:rgba(255,221,92,.28); }
.buzz-button { min-height:8rem; width:100%; font-size:1.8rem; background:linear-gradient(135deg,#ffd85a,#ff9f68); color:#34244b; }
.buzz-player-wait { text-align:center; }
.buzz-player-wait .result-icon { font-size:3rem; }
/* Stop the Clock: hidden running time, large controls, bounded TV results. */
.clock-stage { display: flex; flex-direction: column; height: 100%; min-height: 0; text-align: center; }
.clock-stage h2 { margin: .65rem 0; }
.clock-face { display: grid; place-items: center; flex: 1; font-size: clamp(3rem, 10vh, 7rem); font-weight: 900; color: var(--yellow, #ffe04b); min-height: 5rem; }
.clock-instructions, .clock-winner { font-size: clamp(1rem, 2.7vh, 1.65rem); margin: .5rem 0; }
.clock-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; overflow: auto; min-height: 0; flex: 1; align-content: start; }
.clock-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem .7rem; padding: .6rem; border-radius: 1rem; background: #ffffff12; text-align: left; }
.clock-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-result small { grid-column: 2 / 4; opacity: .75; }
.clock-result.winner { background: #ffe04b24; outline: 2px solid #ffe04b; outline-offset: -2px; }
.clock-phone { text-align: center; }
.clock-phone h2 span { display: block; color: var(--yellow, #ffe04b); }
.clock-phone .clock-face { min-height: 7rem; }
.clock-stop { width: 100%; min-height: 8rem; font-size: 2.4rem; touch-action: manipulation; }
.clock-stop:disabled { opacity: .65; }
.phone-screen-notice { position:fixed; z-index:100; top: max(12px,env(safe-area-inset-top)); left:12px; right:12px; max-width:540px; margin-inline:auto; padding:18px; border:2px solid var(--yellow); border-radius:18px; background:#281349; color:#fffaf0; box-shadow:0 12px 36px #0008; font-size:15px; }
.phone-screen-notice>strong { display:block; font-size:20px; line-height:1.2; }
.phone-screen-notice p { margin:12px 0; line-height:1.5; }
.phone-screen-notice>div { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.phone-screen-notice a { color:var(--cyan); font-weight:800; }
.phone-screen-notice button { border:0; border-radius:10px; padding:12px 16px; background:var(--yellow); color:#180d35; font:800 15px "Nunito",sans-serif; cursor:pointer; touch-action:manipulation; }
.phone-screen-notice :focus-visible { outline:3px solid var(--cyan); outline-offset:3px; }
.rps-stage { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: .6rem; text-align: center; }
.rps-stage h2 { font-size: clamp(1.8rem, 4vh, 3rem); }
.rps-stage p { margin: .25rem 0; }
.rps-reveal-count { font-size: clamp(2.5rem, 9vh, 6rem); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--yellow); }
.rps-stage > .rps-reveal-count { margin: auto 0; }
.rps-mystery-hands { display: flex; justify-content: center; gap: 1.5rem; font-size: clamp(3rem, 10vh, 7rem); }
.rps-ready-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.rps-ready-list span { padding: .3rem .6rem; border-radius: 999px; background: #ffffff12; }
.rps-reveal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; flex: 1; min-height: 0; align-content: center; }
.rps-reveal-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rps-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .4rem; border-radius: 1rem; background: #ffffff12; min-width: 0; }
.rps-card strong { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rps-hand { display: block; font-size: clamp(2rem, 7vh, 4.5rem); line-height: 1.2; }
.rps-card.small, .rps-card small { font-size: .75rem; }
.rps-card.eliminated { background: #ff6b6b16; opacity: .6; }
.rps-card.survived { outline: 2px solid var(--green); outline-offset: -2px; }
.rps-reveal-grid.compact .rps-hand { font-size: clamp(1.5rem, 4vh, 2.75rem); }
.rps-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; flex: 1; min-height: 0; }
.rps-group { padding: .65rem; border-radius: 1rem; background: #ffffff12; min-width: 0; }
.rps-group p { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rps-group p.eliminated { opacity: .55; text-decoration: line-through; }
.rps-verdict { color: var(--yellow); }
.rps-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 1.25rem 0; }
.rps-buttons .answer-button { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 10rem; padding: .75rem .25rem; text-align: center; }
.rps-buttons .answer-button > span { font-size: 3rem; background: transparent; width: auto; height: auto; }
.rps-buttons .answer-button strong { font-size: clamp(.8rem, 4vw, 1.25rem); }
.rps-buttons .answer-button:disabled { opacity: .6; cursor: default; }
@media (max-height: 550px) and (min-width: 800px) { .rps-stage { gap: .3rem; } .rps-card { padding: .25rem; } .rps-stage .rps-hand { font-size: 2rem; } .rps-card small { font-size: .65rem; } }
.rps-new-reveal .rps-card, .rps-new-reveal .rps-group { animation: rps-reveal-pop .35s ease-out both; }
@keyframes rps-reveal-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .rps-new-reveal .rps-card, .rps-new-reveal .rps-group { animation: none; } }
@media (max-height: 550px) and (min-width: 800px) { .rps-stage h2 { font-size: 1.5rem; } .rps-card b { display: none; } .rps-stage .rps-hand { line-height: 1; } }

/* Product polish lives inside the existing TV bounds; do not resize the shell. */
.game-artwork { width: 2.3rem; height: 2.3rem; display: inline-block; vertical-align: middle; }
.game-hero-art .game-artwork { width: clamp(3rem, 10vh, 6rem); height: clamp(3rem, 10vh, 6rem); color: var(--yellow); }
.game-card { position: relative; display: flex; flex-direction: column; gap: .45rem; }
.game-card .game-icon { margin: 0; color: var(--choice); }
.game-card .game-description { font-size: .86rem; line-height: 1.4; color: var(--muted); font-weight: 700; }
.game-card .game-selection { margin-top: auto; padding-top: .45rem; font-size: .75rem; font-weight: 900; color: var(--choice); }
.game-card:focus-visible, .answer-button:focus-visible, .button:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.how-to { padding: 1rem; margin: 1rem 0; border-radius: 1rem; background: rgba(68,217,232,.07); border: 1px solid rgba(68,217,232,.2); text-align: left; }
.how-to .eyebrow { font-size: .7rem; margin-bottom: .45rem; }
.how-to p:not(.eyebrow) { font-size: .95rem; line-height: 1.5; margin: 0; }
.how-to small { display: block; margin-top: .65rem; color: var(--muted); }
.how-to.compact { width: 100%; padding: .85rem; }
.lobby-instructions { max-width: 48rem; margin: .8rem auto; font-size: clamp(.95rem, 2vw, 1.2rem); line-height: 1.4; color: var(--muted); }
.lobby-ready { color: var(--yellow); font-weight: 900; margin: .75rem 0 0; }
.connection-notice { padding: .8rem 1rem; margin: 0 0 .8rem; border-radius: .85rem; border: 1px solid var(--yellow); background: #ffd84d18; color: var(--yellow); font-weight: 800; font-size: .85rem; line-height: 1.45; }
.connection-notice[hidden] { display: none; }
.submit-status { min-height: 2.8rem; margin: .6rem 0; padding: .5rem; text-align: center; color: var(--muted); font-size: .85rem; font-weight: 800; }
.submit-status[data-state="saved"] { color: var(--green); }
.submit-status[data-state="failed"] { color: var(--yellow); }
.answer-button { position: relative; padding-right: 2.4rem !important; }
.answer-button.chosen::after { content: '✓'; position: absolute; right: .65rem; top: .65rem; font-weight: 1000; color: var(--ink); }
.answer-button:active:not(:disabled) { filter: brightness(1.15); }
.timer, #player-countdown { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.feedback-email { position: absolute; bottom: .35rem; left: 1rem; right: 1rem; z-index: 1; text-align: center; font-size: .8rem; line-height: 1.2; }
.feedback-email a { color: var(--muted); text-decoration: none; touch-action: manipulation; }
.feedback-email a:hover, .feedback-email a:focus-visible { color: var(--ink); text-decoration: underline; }
.phone-question-top .timer.timer-word { font-size: .8rem; line-height: 1.1; text-align: center; padding: .15rem; overflow-wrap: anywhere; }
.more-voters { color: var(--yellow); }
@media (min-width: 851px) {
  .tv-shell .player-cloud.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-shell .player-cloud.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv-shell .stage.final-stage { display: flex; flex-direction: column; justify-content: flex-start; }
  .tv-shell .results-stage { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 100%; height: 100%; min-height: 0; }
  .tv-shell .results-stage > .game-hero-icon { flex-shrink: 0; margin: 0; font-size: clamp(2rem, 7vh, 4rem); line-height: 1.15; }
  .tv-shell .results-stage > h1 { flex-shrink: 0; font-size: clamp(2rem, 5.5vh, 3.8rem); line-height: 1.08; overflow-wrap: anywhere; }
  .tv-shell .results-stage > .eyebrow { margin: 0; font-size: .8rem; }
  .tv-shell .results-stage > .lede { margin: .15rem 0; font-size: 1rem; line-height: 1.35; }
  .tv-shell .results-stage .leaderboard { margin: .3rem auto; padding: .7rem; width: min(100%, 40rem); min-height: 0; overflow: auto; }
  .tv-shell .leaderboard.two-columns, .tv-shell .leaderboard.three-columns { display: grid; gap: .45rem 1rem; width: min(100%, 68rem); align-content: start; }
  .tv-shell .leaderboard.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-shell .leaderboard.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv-shell .leaderboard .player-row { min-width: 0; padding: .3rem; }
  .tv-shell .leaderboard.two-columns .player-row, .tv-shell .leaderboard.three-columns .player-row { margin: 0; }
  .tv-shell .leaderboard .avatar { width: 2rem; height: 2rem; font-size: .8rem; }
  .tv-shell .leaderboard .player-copy strong { font-size: 1rem; }
  .tv-shell .leaderboard .player-copy span { display: none; }
  .tv-shell .results-stage > .social-vote-list { width: 100%; min-height: 0; margin: .3rem 0; }
  .tv-shell .results-stage > .social-stats { margin: .3rem 0; }
}
@media (prefers-reduced-motion: reduce) { .game-card, .button, .menu-chevron { transition: none; } }
.premium-interest { margin: 1.25rem 0; padding: 1.15rem; border: 1px solid rgba(255,216,77,.3); border-radius: 20px; background: rgba(255,216,77,.06); }
.premium-interest h3 { margin: .25rem 0; }
.premium-interest p { line-height: 1.5; }
.premium-interest .premium-price { font-weight: 900; color: #ffd84d; }
.premium-price span { font-size: .85rem; font-weight: 600; color: #ded3f1; }
.premium-interest .premium-note { font-size: .8rem; color: #ded3f1; margin-bottom: 0; }
.premium-interest [hidden] { display: none; }
.premium-interest #premium-details { margin-top: .8rem; }
.premium-interest button { max-width: 100%; white-space: normal; }
