/* The foreground is drawn over a persistent campus. Its ground line belongs to the world. */
.play-main{padding:clamp(10px,2vw,24px) 0 38px}
#stage{position:relative;scroll-margin-top:8px}
.stadium{--ui-ink:#192c40;--ui-paper:#fff8df;--hot:#ba3e2b;--sun:#ffbd54;--grass-ink:#173d32;--game-font:var(--display,"DM Sans",system-ui,sans-serif);--game-mono:var(--mono,ui-monospace,monospace);--board-height:clamp(505px,48vw,624px);position:relative;isolation:isolate;height:var(--board-height);overflow:hidden;background:#b8e3ea;border:2px solid var(--ui-ink);border-radius:16px;box-shadow:0 5px 0 #23384a2b;color:var(--ui-ink)}
.stadium .world-slot{position:absolute;inset:0;z-index:0;pointer-events:none}
.stadium .scene-ui,.stadium .scene-hud{position:absolute;inset:0;pointer-events:none}
.stadium .scene-ui{z-index:2}.stadium .scene-hud{z-index:5}
.stadium button,.stadium input,.stadium a,.result-copy,.review-row summary{pointer-events:auto}
.stadium :is(h1,h2,h3,p,figure,ol){margin:0}
.stadium h1,.stadium h2,.stadium .final-score,.stadium .rank-splash,.scene-button,.lock-in,.scene-loading{font-family:var(--game-font);font-weight:850}
.stadium .scene-button,.stadium .lock-in,.stadium .practice-button,.stadium .result-actions>a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 21px;border-radius:999px;border:2px solid #9c3524;background:var(--hot);box-shadow:0 3px 0 #832e25;color:#fffaf0;line-height:1.05;font:800 15px/1.1 var(--game-font);text-decoration:none;cursor:pointer;transition:background .16s,translate .16s,box-shadow .16s}
.stadium .scene-button:hover,.stadium .lock-in:hover{background:#a33124;translate:0 -1px}
.stadium .scene-button:active,.stadium .lock-in:active{translate:0 2px;box-shadow:0 1px 0 #832e25}
.stadium :is(button,a,input):focus-visible{outline:3px solid #f8ae3b;outline-offset:3px}
#play-tools{position:absolute;inset:12px 12px auto;display:flex;justify-content:space-between;align-items:center;z-index:7;pointer-events:none}
#play-tools>*{pointer-events:auto}
.stadium :is(#sound,#game-menu){width:38px;height:38px;min-width:38px;min-height:38px;border:1.5px solid #233b4d;box-shadow:0 2px 0 #202e3930;border-radius:50%;background:var(--ui-paper);color:var(--ui-ink);display:inline-grid;place-items:center;padding:8px;cursor:pointer}
.stadium :is(#sound,#game-menu)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.stadium :is(#sound,#game-menu) svg{width:17px;height:17px}
#sound[aria-pressed="false"] svg:first-of-type,#sound[aria-pressed="true"] svg:nth-of-type(2){display:none}
.sr-only-game{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.scene-loading,.rush-message{position:relative;margin:2rem auto;padding:1rem 1.4rem;width:fit-content;max-width:calc(100% - 30px);background:var(--ui-paper,#fff8e9);border-radius:12px;text-align:center;z-index:3;pointer-events:auto}
.scene-loading{margin-top:66px!important}
.rush-message h1{font-size:clamp(24px,4vw,50px)}.rush-message p{margin:12px 0}
.cup-pips{position:absolute;left:50%;top:19px;transform:translateX(-50%);display:flex;align-items:center;gap:5px;padding:6px 11px;border-radius:999px;background:#fff9eaa8;border:1px solid #22394430;backdrop-filter:blur(3px)}
.cup-pip{position:relative;width:15px;height:18px;background:#557a853e;clip-path:polygon(0 0,100% 0,85% 100%,15% 100%)}
.cup-pip:after{content:"";position:absolute;inset:0 0 auto;height:3px;background:#fff9d999}
.cup-pip.current{background:#f2a73f}.cup-pip.filled{background:var(--pip)}
.points-badge{position:absolute;right:61px;top:14px;display:flex;align-items:baseline;gap:5px;line-height:1;color:var(--ui-ink);text-shadow:0 1px 0 #fff2cb}
.live-points{font:900 clamp(25px,2.6vw,38px)/1 var(--game-font);font-variant-numeric:tabular-nums;letter-spacing:-.07em}
.points-badge small{font:750 10px/1 var(--game-mono);letter-spacing:.075em}
.sky-prompt{position:absolute;top:clamp(54px,5vw,73px);left:15%;right:15%;text-align:center}
.rush-category,.scorecard-label{font:800 10px/1.3 var(--game-mono);letter-spacing:.12em;text-transform:uppercase}
.rush-category{display:block;margin-bottom:7px;color:#653e27}
.sky-prompt h1{font-size:clamp(26px,3.25vw,49px);line-height:.97;letter-spacing:-.052em;text-wrap:balance;color:var(--ui-ink);text-shadow:0 2px 0 #fff5dc,0 0 12px #fff6dd9c}
.player-bubble,.finish-bubble,.host-reaction>span{background:#fff9e7;color:var(--ui-ink);border:1.5px solid #1d3447;border-radius:13px;box-shadow:0 3px 0 #24333d35;font:740 clamp(13px,1.25vw,17px)/1.25 var(--game-font)}
.player-bubble,.finish-bubble{position:absolute;left:50%;transform:translateX(-50%);padding:7px 14px;text-align:center;width:max-content;max-width:55%}
.player-bubble{top:calc(var(--ground-line,67%) - clamp(116px,13vw,168px));transform:translate(-50%,-100%)}
.player-bubble:after,.finish-bubble:after{content:"";position:absolute;bottom:-6px;left:calc(50% - 5px);width:9px;height:9px;transform:rotate(45deg);border-right:1.5px solid #1d3447;border-bottom:1.5px solid #1d3447;background:#fff9e7}
.answer-form{position:absolute;bottom:clamp(9px,2.6%,18px);width:min(690px,84%);left:50%;transform:translateX(-50%);text-align:center;pointer-events:auto}
.answer-row{display:flex;align-items:center;gap:10px}
.input-pill{flex:1;min-width:0;display:flex;background:#fffaf1;border:3px solid #2a3f4f;border-radius:999px;box-shadow:0 3px 0 #21394044;transition:border-color .15s}
.input-pill:focus-within{border-color:#cf8a2f;outline:2px solid #fff3c7cc;outline-offset:1px}
.input-pill input{font:650 clamp(16px,1.4vw,19px)/1.2 var(--game-font);width:100%;height:52px;color:#233545;padding:7px 18px;border:none;border-radius:999px;outline:none!important;background:transparent}
.input-pill input::placeholder{color:#817a6d;opacity:1}
.stadium .lock-in{height:48px;padding:10px 20px;white-space:nowrap}
.countdown{position:relative;isolation:isolate;width:41px;height:47px;flex:none;display:grid;place-items:center;clip-path:polygon(0 0,100% 0,94% 13%,82% 100%,18% 100%,6% 13%);background:#fde5c3}
.countdown:after{content:"";position:absolute;inset:0 0 auto;height:6px;background:#fffbed;border-bottom:2px solid #e0d4af}
.cup-liquid{position:absolute;z-index:-1;inset:auto 0 0;height:var(--fill,100%);background:linear-gradient(90deg,#b52c24 0 22%,#e45034 22% 75%,#cb3e2c 75%);border-top:2px solid #ff936d;transition:height .12s linear}
.clock-value{font:900 20px/1 var(--game-font);font-variant-numeric:tabular-nums;color:#fffbed;-webkit-text-stroke:2px #6a3024;paint-order:stroke fill}
.countdown.urgent{animation:cup-pulse .6s ease-in-out infinite}.countdown.urgent .cup-liquid{background:#f13c30}
.input-note{display:block;min-height:17px;color:#244435;font:700 12px/1.3 var(--game-font);margin:6px 0 1px!important}
.input-note:not(:empty){width:fit-content;margin-inline:auto!important;padding:2px 9px;border-radius:8px;background:#ffead0;color:#7a3020}
.skip-prompt{padding:4px 11px;text-decoration:underline;text-underline-offset:3px;border:0;border-radius:12px;background:#fff5d7d6;color:#314936;font:750 12px var(--game-font)}
.shake{animation:answer-shake .33s ease-out}
.echo-prompt{position:absolute;top:58px;left:12%;right:12%;text-align:center;font-size:clamp(15px,1.7vw,24px);line-height:1.15;letter-spacing:-.035em;text-shadow:0 1px 0 #fff6da,0 0 9px #fffce0}
.flight-zone{position:absolute;top:24%;bottom:43%;left:4%;right:4%}
.altitude-line{position:absolute;left:0;right:0;top:var(--line);border-top:1.5px dashed #ffffe4d6}
.altitude-line>span{position:absolute;right:0;bottom:3px;color:#314448;background:#fffae1d6;border-radius:3px;padding:1px 5px;font:700 clamp(8px,.9vw,12px)/1.12 var(--game-mono);letter-spacing:.055em;text-transform:uppercase}
.answer-flight{position:absolute;top:var(--landing);left:50%;transform:translate(-50%,-50%);width:fit-content;max-width:79%;animation:answer-launch var(--rise-time,1.1s) cubic-bezier(.25,.44,.36,1) both;z-index:2}
.answer-ticket{display:block;position:relative;z-index:2;max-width:100%;padding:9px clamp(11px,2vw,24px);border:2px solid #142334;border-radius:8px;transform:rotate(-4deg);background:#24394b;color:#fff2cb;box-shadow:3px 4px 0 #132c3680;font:800 clamp(15px,2.05vw,29px)/1.08 var(--game-font);text-align:center;overflow-wrap:anywhere}
.burst-ring,.paper-burst,.points-float{opacity:0;position:absolute;left:50%;top:50%;pointer-events:none}
.burst-ring{width:42px;height:42px;border:3px solid #fff7cc;border-radius:50%;transform:translate(-50%,-50%)}
.paper-burst i{position:absolute;width:7px;height:12px;background:var(--paper);transform:rotate(var(--turn))}
.points-float{top:-7px;left:100%;font:900 clamp(20px,3.5vw,42px) var(--game-font);color:#ffd277;text-shadow:1.5px 2px 0 #2a2933,-1px -1px 0 #2a2933}
.feedback-landed .winning-line{border-top:3px solid #edb045}.feedback-landed .winning-line>span{background:#ffe6a8;color:#795122}
.feedback-landed .burst-ring{animation:ring-out .85s ease-out both}
.feedback-landed .paper-burst{opacity:1}.feedback-landed .paper-burst i{animation:paper-fly .95s ease-out both}
.feedback-landed .points-float{animation:score-up 1.05s ease-out both}
.jackpot .answer-ticket{background:#623f84;border-color:#3c2457;color:#fff2c2}
.jackpot .paper-burst i{width:10px;height:14px}
.rank-splash{position:absolute;left:14%;right:14%;top:56%;text-align:center;opacity:0;transform:translateY(9px) scale(.95)}
.rank-splash strong{font:900 clamp(23px,3.6vw,47px)/1.03 var(--game-font);letter-spacing:-.05em;color:#fffbdf;-webkit-text-stroke:3px #22354b;paint-order:stroke fill;text-shadow:0 3px 0 #172d48}
.feedback-landed .rank-splash{animation:rank-pop .32s ease-out both}.feedback-pane.miss .rank-splash{top:20%}
.host-reaction{position:absolute;z-index:3;bottom:22%;left:2%;display:flex;align-items:center;gap:5px;opacity:0;transform:translateX(-8px);max-width:40%;transition:opacity .25s,transform .25s}
.host-art{width:clamp(39px,5.4vw,74px);height:clamp(50px,7vw,86px);display:grid;place-items:end center;flex:none}.host-art>*{max-width:100%;max-height:100%}
.host-reaction>span{padding:7px 11px;font-size:clamp(12px,1.18vw,16px);border-radius:12px}
.feedback-landed .host-reaction{opacity:1;transform:none}
.feedback-dock{position:absolute;bottom:3%;left:5%;right:5%;display:grid;justify-items:center;gap:9px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s}
.feedback-dock p{color:#fffbdf;background:#183d32d9;border-radius:8px;padding:4px 11px;font:650 clamp(12px,1.05vw,16px)/1.3 var(--game-font);max-width:90%;text-align:center}
.feedback-ready .feedback-dock{opacity:1;visibility:visible;transform:none}
.settled :is(.answer-flight,.rank-splash){animation:none!important}.settled .rank-splash{opacity:1;transform:none}.settled :is(.burst-ring,.paper-burst,.points-float){display:none!important}
.stadium .scene-button:disabled{pointer-events:none}
.lap-banner{position:absolute;top:14%;left:50%;transform:translateX(-50%);background:#fff4cf;border-radius:999px;padding:6px 14px;box-shadow:0 2px 0 #35423055;font:800 14px var(--game-font);color:#213f44}
.stadium[data-phase="done"]{height:auto;min-height:var(--board-height);background:#6eab68;padding-top:clamp(235px,22vw,300px);padding-bottom:14px}
.stadium[data-phase="done"] .world-slot{height:clamp(278px,26vw,350px);bottom:auto;overflow:hidden}
.stadium[data-phase="done"] .scene-ui{position:relative;inset:auto;z-index:3}
.finish-bubble{top:-42px;transform:translate(-50%,-100%);font-size:14px}
.result-copy{width:min(755px,calc(100% - 32px));margin-inline:auto;border:2px solid #233b47;border-radius:17px;padding:clamp(16px,2.4vw,32px);background:#fff8e8;box-shadow:0 5px 0 #28423240;pointer-events:auto;animation:card-lift .45s cubic-bezier(.15,.68,.26,1.1) both}
.scorecard-label{color:#92522f}
.final-tally{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;margin:5px 0 8px}
.final-score{font:900 clamp(41px,5.9vw,83px)/.95 var(--game-font);letter-spacing:-.07em}
.final-score small{font:750 15px/1 var(--game-mono);letter-spacing:0;color:#607365}
.final-tally h1{font-size:clamp(22px,3.4vw,43px);letter-spacing:-.05em;line-height:1.02}
.result-stats,.climb-log>p{font:650 12px/1.55 var(--game-mono);color:#4d6657}
.result-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:16px 0 0}
.stadium .result-actions>a{background:#fffaed;border-color:#b0ac92;color:#223848;box-shadow:0 2px 0 #43524020;font-size:13px;padding:8px 12px;min-height:38px}
.stadium .result-actions>.practice-button{background:#243f5c;border-color:#163149;color:#fff9e6}
.climb-log{margin-top:12px;padding-top:14px;border-top:1px solid #c8c6ae}
.climb-log h2{font-size:21px;line-height:1.1;letter-spacing:-.04em}
.climb-log ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:9px 0 0}
.climb-log li{display:grid;min-width:0;gap:4px;text-align:center}
.climb-log li>div{position:relative;height:78px;background:repeating-linear-gradient(to top,#b7b69e77 0 1px,transparent 1px 16%);border-bottom:1px solid #a3a990}
.climb-log i{position:absolute;bottom:0;left:17%;right:17%;height:var(--height);background:var(--chip);border:1px solid #243a373a;border-radius:3px 3px 0 0}
.climb-log li b{position:absolute;bottom:var(--height);left:50%;transform:translateX(-50%);font:750 10px var(--game-mono)}
.climb-log li>span{font:600 10px var(--game-mono);color:#5d6c5b}
#ad-result:not([hidden]){margin-top:16px}
.review{margin:26px auto 0;width:min(820px,100%)}
.review h2{font:850 clamp(27px,3vw,39px)/1.1 var(--game-font,var(--display,sans-serif));letter-spacing:-.04em}
.review>p{margin:6px 0 15px;color:var(--muted)}
.review-list{border-top:1px solid var(--rule)}.review-row{border-bottom:1px solid var(--rule)}
.review-row summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 2px;list-style:none;cursor:pointer}.review-row summary::-webkit-details-marker{display:none}
.review-row summary>small{font:700 12px var(--mono);color:var(--muted)}
.review-row summary>span{display:grid;gap:3px}.review-row summary b{font-size:15px;line-height:1.25}
.review-row summary em{font-size:13px;color:#456753;font-style:normal}
.review-row summary>strong{font:750 12px var(--mono);padding:5px 8px;border:1px solid var(--chip);border-radius:5px}
.answer-book{padding:6px 10px 12px 24px}.answer-group{padding:6px 0}
.answer-group b{font:750 12px var(--mono);border-left:3px solid var(--chip);padding-left:7px}.answer-group p{font-size:14px;margin:4px 0}
@keyframes answer-launch{0%{top:135%;opacity:0;transform:translate(-50%,-50%) scale(.77) rotate(4deg)}12%{opacity:1}88%{transform:translate(-50%,-50%) scale(1.025) rotate(-1deg)}100%{top:var(--landing);transform:translate(-50%,-50%)}}
@keyframes rank-pop{0%{opacity:0;transform:translateY(9px) scale(.89)}74%{opacity:1;transform:translateY(-2px) scale(1.045)}100%{opacity:1;transform:none}}
@keyframes paper-fly{0%{opacity:0;transform:rotate(var(--turn)) translateY(-4px)}12%{opacity:1}100%{opacity:0;transform:rotate(var(--turn)) translateY(calc(var(--reach)*-1)) rotate(155deg)}}
@keyframes ring-out{0%{opacity:1;transform:translate(-50%,-50%) scale(.25)}100%{opacity:0;transform:translate(-50%,-50%) scale(6)}}
@keyframes score-up{0%{opacity:0;transform:translate(-8px,2px)}20%{opacity:1}100%{opacity:0;transform:translate(15px,-35px)}}
@keyframes cup-pulse{50%{transform:scale(.93) rotate(-4deg)}}
@keyframes answer-shake{20%,65%{transform:translateX(-4px) rotate(-.6deg)}45%,85%{transform:translateX(4px) rotate(.6deg)}}
@keyframes card-lift{from{opacity:.2;transform:translateY(26px) scale(.989)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .stadium{--board-height:clamp(565px,calc(100svh - 76px),750px);border-radius:12px}
 #play-tools{inset:9px 9px auto}.stadium :is(#sound,#game-menu){width:34px;height:34px;min-width:34px;min-height:34px}
 .points-badge{top:12px;right:51px}.points-badge b{font-size:26px}.cup-pips{top:13px;gap:4px;padding:4px 7px}.cup-pip{width:12px;height:15px}
 .sky-prompt{top:57px;left:6%;right:6%}.sky-prompt h1{font-size:clamp(25px,5.7vw,38px);line-height:1.02}
 .sky-prompt .rush-category{font-size:9px;margin-bottom:5px}
 .question-pane{position:absolute;inset:53px 0 auto;display:flex;align-items:center;flex-direction:column;gap:13px}
 .question-pane .sky-prompt{position:static;inset:auto;width:90%}
 .question-pane .answer-form{position:static;inset:auto;width:calc(100% - 22px);transform:none}
 .answer-row{gap:5px}.input-pill{border-width:2px}.input-pill input{height:42px;padding:7px 11px;font-size:16px}
 .stadium .lock-in{padding-inline:12px;height:40px;min-height:40px;font-size:14px}.countdown{width:29px;height:35px}
 .clock-value{font-size:17px}.input-note{margin-top:3px!important;min-height:12px;font-size:11px}.skip-prompt{min-height:28px}
 .player-bubble{display:none}
 .echo-prompt{top:54px;left:5%;right:5%;font-size:17px}
 .flight-zone{top:22%;bottom:40%;left:3%;right:3%}.altitude-line>span{font-size:9px}
 .answer-ticket{font-size:19px;max-width:100%;padding:9px 12px}.answer-flight{max-width:80%}.rank-splash{top:61%}
 .rank-splash strong{font-size:28px}.host-reaction{bottom:14%;left:3%;max-width:94%;gap:2px}
 .host-art{width:42px;height:52px}.host-reaction>span{padding:6px 9px;font-size:13px}
 .feedback-dock{bottom:2%;left:3%;right:3%;gap:6px}.feedback-dock p{max-width:100%;font-size:12px}
 .stadium .scene-button{min-height:41px}.stadium[data-phase="done"]{padding-top:clamp(204px,34svh,286px)}
 .stadium[data-phase="done"] .world-slot{height:clamp(250px,46svh,345px)}
 .result-copy{width:calc(100% - 18px);padding:15px 13px;border-radius:13px}.finish-bubble{top:-28px;font-size:12px}
}
@media(max-width:375px){.sky-prompt h1{font-size:24px}.cup-pips{gap:3px}.cup-pip{width:10px}.result-actions{gap:5px}.stadium .result-actions>a{font-size:12px;padding-inline:9px}}
@media(max-height:530px) and (min-width:701px){.stadium{--board-height:465px}.player-bubble{top:44%}.sky-prompt{top:52px}.sky-prompt h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){.stadium *,.stadium *:before,.stadium *:after{scroll-behavior:auto;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.stadium .rank-splash{top:var(--rank-y,48%)}
.stadium .feedback-pane.miss .rank-splash{top:24%}
.stadium.after-dark .points-badge,.stadium.after-dark .sky-prompt h1,.stadium.after-dark .echo-prompt{color:#fffae2;text-shadow:0 2px 0 #223547,0 0 8px #233746}
.stadium.after-dark .rush-category{color:#ffe9bb;text-shadow:0 1px 2px #25364c}
.finish-bubble{top:clamp(-145px,-12vw,-102px)}
@media(max-width:700px){.finish-bubble{top:clamp(-142px,-16svh,-94px)}}

/* Keep the playable area inside the visible viewport, including a phone keyboard. */
:is(.during-rush,body[data-page="home"]) #stage>.stadium:not([data-phase="done"]){
 --rush-chrome:124px;
 container:play-field / size;
 height:min(var(--board-height),max(160px,calc(var(--play-visible-height,100dvh) - var(--rush-chrome) - var(--sponsor-height,0px))));
}
@media(max-width:800px){:is(.during-rush,body[data-page="home"]) #stage>.stadium:not([data-phase="done"]){--rush-chrome:114px}}
@media(max-width:650px){:is(.during-rush,body[data-page="home"]) #stage>.stadium:not([data-phase="done"]){--rush-chrome:91px}}
:is(.during-rush,body[data-page="home"]) #cabinet:is(.theater-mode,:fullscreen) #stage>.stadium:not([data-phase="done"]){
 --rush-chrome:40px;
 height:max(160px,calc(var(--play-visible-height,100dvh) - var(--rush-chrome) - var(--sponsor-height,0px)));
}
@media(max-width:650px){:is(.during-rush,body[data-page="home"]) #cabinet:is(.theater-mode,:fullscreen) #stage>.stadium:not([data-phase="done"]){--rush-chrome:32px}}

@container play-field (max-height: 465px) {
 .question-pane{position:absolute;inset:47px 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px}
 .question-pane .sky-prompt{position:static;width:min(90%,760px);inset:auto}
 .sky-prompt .rush-category{font-size:9px;margin-bottom:4px}
 .sky-prompt h1{font-size:clamp(19px,4.6cqw,30px);line-height:1.02}
 .question-pane .answer-form{position:static;inset:auto;transform:none;width:min(94%,600px)}
 .answer-row{gap:6px}
 .input-pill{border-width:2px}.input-pill input{height:40px;font-size:16px}
 .stadium .lock-in{height:42px;min-height:42px;padding-inline:13px}
 .countdown{height:33px;width:28px}.clock-value{font-size:16px}
 .answer-form .input-note:empty{display:none}
 .answer-form .input-note:not(:empty){margin:3px auto 0!important}
 .skip-prompt{margin-top:4px;padding:3px 11px;min-height:27px}
 .question-pane .player-bubble{display:none}
 .world-slot{--ground-line:78%}
 .feedback-pane .echo-prompt{top:46px;font-size:clamp(15px,3.7cqw,20px);line-height:1.07}
 .flight-zone{top:29%;bottom:32%}
 .feedback-dock{bottom:6px;gap:4px}
 .feedback-dock p{padding:3px 8px;line-height:1.18}
 .feedback-ready .host-reaction{bottom:22%}
}
@container play-field (max-height: 325px) {
 #play-tools{inset:5px 8px auto}
 .stadium :is(#game-menu,#sound){width:30px;height:30px;min-width:30px;min-height:30px;padding:6px}
 .cup-pips{top:6px}.points-badge{top:7px;right:45px}.live-points{font-size:23px}
 .question-pane{inset-block-start:38px;gap:6px}
 .sky-prompt h1{font-size:clamp(17px,4.6cqw,24px)}
 .question-pane .sky-prompt{width:94%}
 .world-slot{--ground-line:87%}
 .input-pill input{height:34px}.stadium .lock-in{height:37px;min-height:37px}
 .skip-prompt{min-height:22px;margin-top:3px}
 .feedback-pane .echo-prompt{top:37px;font-size:14px}
 .flight-zone{top:31%;bottom:31%}
 .altitude-line>span{font-size:8px}
 .answer-ticket{font-size:15px;padding:4px 8px}
 .rank-splash strong{font-size:22px}
 .host-art{width:30px;height:37px}.host-reaction>span{font-size:11px}
 .feedback-dock p{font-size:11px}.feedback-dock .scene-button{font-size:13px;min-height:32px;padding:5px 12px}
}
@container play-field (min-width: 560px) and (max-height: 365px) {
 .question-pane{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:14px;inset:45px 3% auto}
 .question-pane .sky-prompt,.question-pane .answer-form{width:100%}
 .sky-prompt h1{font-size:clamp(18px,3cqw,28px)}
 .question-pane .sky-prompt{text-align:left}
}
@container play-field (max-height: 250px) {
 .world-slot{--ground-line:94%}
 .world-slot .cw-actor{width:clamp(30px,14cqh,43px)}
 .sky-prompt h1{font-size:clamp(16px,4.3cqw,22px)}
}

/* The opening screen has its own sky and turf zones. The round HUD is introduced on Start. */
.start-screen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#173e3999 0%,#28513e22 21%,transparent 37%)}
.start-lockup{position:absolute;top:6%;left:50%;width:min(68%,86cqh,555px);transform:translateX(-50%);text-align:center}
.start-lockup h1{line-height:0}
.start-lockup img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 0 #24384a17);animation:wordmark-arrival .38s ease-out both}
.stadium .start-mode{display:flex;align-items:center;justify-content:center;gap:10px;margin:clamp(4px,1.65cqh,11px) auto 0;color:#25414b;font:800 clamp(10px,1.9cqh,13px)/1.25 var(--game-mono);letter-spacing:.14em;text-transform:uppercase}
.start-mode:before,.start-mode:after{content:"";height:2px;width:22px;background:#39566682}
.start-actions{position:absolute;bottom:clamp(13px,5cqh,32px);left:50%;transform:translateX(-50%);width:min(85%,370px);margin:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 13px;text-align:center}
.start-actions .start-rush{order:0;flex:0 0 100%;padding:9px 25px;width:100%;min-height:clamp(48px,9.3cqh,62px);border:2px solid #632a31;background:linear-gradient(#d94a40,#c63832);box-shadow:inset 0 1px 0 #ffac845c,0 4px 0 #732c30,0 8px 14px #233c3323;color:#fff8e7;font-size:clamp(23px,4.7cqh,31px);line-height:1.05}
.start-actions .start-rush:before{content:"";width:.52em;height:.58em;background:#ffedc0;clip-path:polygon(0 0,100% 50%,0 100%)}
.start-actions .start-rush:hover{background:linear-gradient(#df5145,#ca3931)}
.start-actions .start-info,.start-actions .original-score{order:1;margin:0;color:#fff8e6;font:750 clamp(12px,2.25cqh,15px)/1.25 var(--game-font);text-shadow:0 1px 3px #173c33}
.start-actions .original-score{padding:0;background:none;border-radius:0;text-decoration:underline;text-underline-offset:3px}
.stadium[data-phase="start"] .world-slot{--ground-line:67%}
.stadium[data-phase="start"] .campus-map[data-pose="idle"] :is(.rig-back-arm,.rig-right-cup,.rig-mop){animation:cw-welcome 10s ease-in-out infinite}

/* The draining cup sits alongside a large, steady numerical readout. */
.turn-clock{position:absolute;left:12px;top:12px;z-index:2;display:flex;align-items:center;gap:6px;min-width:100px;height:42px;padding:4px 10px 4px 8px;border:1.5px solid #293c47;border-radius:11px;background:#fff5d9;box-shadow:0 2px 0 #2437463b;color:#1e3741;line-height:1}
.turn-clock .countdown{position:relative;isolation:isolate;display:grid;grid-template-columns:20px 2ch;align-items:center;gap:6px;flex:0 0 auto;clip-path:none;overflow:visible;width:auto;height:100%;padding:0;background:transparent;animation:none;font:900 28px/1 var(--game-font);font-variant-numeric:tabular-nums}
.turn-clock .countdown:before,.turn-clock .cup-liquid,.turn-clock .countdown:after{content:"";position:absolute;z-index:0;left:0;top:50%;transform:translateY(-50%);clip-path:polygon(0 0,100% 0,84% 100%,16% 100%)}
.turn-clock .countdown:before{width:20px;height:25px;background:#7e4238}
.turn-clock .cup-liquid{z-index:1;inset:auto auto auto 2px;top:50%;width:16px;height:21px;border:0;background:linear-gradient(to top,#c54837 0 var(--fill,100%),#fff0cf var(--fill,100%) 100%);transition:none}
.turn-clock .countdown:after{z-index:2;left:0;top:calc(50% - 10px);width:20px;height:3px;clip-path:none;border:1px solid #855340;border-radius:1px;background:#fee9b7}
.turn-clock .clock-value{grid-column:2;justify-self:center;color:inherit;font:inherit;text-shadow:none;-webkit-text-stroke:0}
.clock-caption{max-width:5.2em;color:inherit;font:800 9px/1.1 var(--game-mono);letter-spacing:.055em;text-transform:uppercase}
.turn-clock:has(.urgent){color:#fff8e8;background:#993731;border-color:#722c2b;box-shadow:0 2px 0 #68292b66}
.turn-clock:has(.urgent) .cup-liquid{background:linear-gradient(to top,#ff9a50 0 var(--fill,100%),#ffe6c7 var(--fill,100%) 100%)}
.turn-clock .countdown.urgent .clock-value{animation:clock-beat 1s ease-out infinite;transform-origin:center}
@keyframes clock-beat{0%,24%,100%{transform:scale(1)}10%{transform:scale(1.09)}}
.stadium[data-phase="question"] .player-bubble{display:none}

@media(max-width:700px){
 .start-lockup{width:min(78%,74cqh,440px);top:9%}
 .start-actions{width:min(82%,348px);bottom:6%}
 .turn-clock{top:8px;left:8px;height:34px;min-width:0;gap:5px;padding:3px 7px 3px 6px;border-radius:9px}
 .turn-clock .countdown{font-size:23px;grid-template-columns:16px 2ch;gap:4px}
 .turn-clock .countdown:before{width:16px;height:20px}.turn-clock .cup-liquid{width:12px;height:16px}.turn-clock .countdown:after{width:16px;top:calc(50% - 8px)}
 .clock-caption{font-size:8px}
}
@container play-field (max-height: 465px){
 .start-lockup{top:4%;width:min(68%,82cqh,440px)}
 .start-actions{bottom:5%;gap:7px 10px}
 .start-actions .start-rush{min-height:43px;font-size:23px}
 .turn-clock{top:7px;left:8px;height:33px;min-width:0;padding:3px 7px 3px 6px;gap:5px}
 .turn-clock .countdown{font-size:22px;grid-template-columns:16px 2ch;gap:4px}
 .turn-clock .countdown:before{width:16px;height:20px}.turn-clock .cup-liquid{width:12px;height:16px}.turn-clock .countdown:after{width:16px;top:calc(50% - 8px)}
 .clock-caption{font-size:8px}
}
@container play-field (min-width: 530px) and (max-height: 345px){
 .stadium .start-screen{background:linear-gradient(0deg,#254e433f,transparent 65%)}
 .start-lockup{top:44%;left:4%;width:31%;transform:translateY(-50%)}
 .start-actions{top:47%;bottom:auto;left:auto;right:4%;width:30%;transform:translateY(-50%)}
 .start-actions .start-rush{font-size:clamp(18px,3.6cqw,26px);min-height:42px}
 .start-actions .start-info,.start-actions .original-score{color:#203946;background:#fffae9f2;padding:3px 7px;border-radius:5px;text-shadow:none;font-size:12px}
}
@container play-field (max-height: 325px){
 .turn-clock{height:28px;top:4px}
 .turn-clock .countdown{font-size:20px}
}
@container play-field (max-width: 529px) and (max-height: 325px){
 .start-mode:before,.start-mode:after{width:11px}
 .start-actions{bottom:3.5%;gap:5px}.start-actions .start-rush{min-height:35px;font-size:19px}
 .start-actions .start-info,.start-actions .original-score{font-size:11px}
}
.start-actions .start-rush{white-space:nowrap}
@container play-field (min-width: 701px) and (min-height: 466px){.clock-caption{font-size:10px}}
@container play-field (max-width: 400px){
 .turn-clock .countdown{grid-template-columns:16px auto}
 .turn-clock .clock-value:after{content:"s";margin-left:1px;font:800 12px/1 var(--game-font)}
 .turn-clock .clock-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@container play-field (min-width: 530px) and (max-height: 345px){
 .start-lockup{top:40%}
 .stadium .start-mode{width:fit-content;max-width:100%;padding:3px 8px;border-radius:5px;background:#fff9e9ed;color:#253d48;font-size:10px;letter-spacing:.075em}
 .start-mode:before,.start-mode:after{display:none}
 .start-actions .start-rush{gap:7px;padding:6px 10px}
 .stadium[data-phase="start"] .cw-actor{width:clamp(33px,21cqh,56px)}
 .question-pane .sky-prompt{padding:5px 9px;border:1px solid #29434e70;border-radius:9px;background:#fff9e7f5;box-shadow:0 2px 0 #2641392e}
 .question-pane .sky-prompt h1{color:#1f3542;text-shadow:none;font-size:clamp(17px,2.9cqw,23px)}
 .question-pane .sky-prompt .rush-category{color:#70472c;text-shadow:none}
}
