/* Four focused screens replace the long stacked page. */
body[data-game-view]{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
body[data-game-view] main>.title{display:none}
body[data-game-view]:not([data-game-view="game-stage"])>header{display:flex!important}
body[data-game-view]:not([data-game-view="game-stage"]) main{padding:10px 12px;max-width:690px}
body[data-game-view] .below>section{margin:0}
body[data-game-view="game-stage"] .below{display:none}
body[data-game-view] .game-nav{position:fixed;z-index:45;bottom:0;left:0;right:0;width:min(100%,690px);margin:auto;padding:7px 10px max(10px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#180f25f5;box-shadow:0 -8px 30px #09051288;backdrop-filter:blur(12px);border-bottom:0}
.game-nav a{min-height:48px;flex-direction:column;gap:5px;font-size:11px;font-weight:700;letter-spacing:.2px}
.game-nav a:before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#6e527f}
.game-nav a[aria-current=page]{background:#c58ae61a;color:#ffe2a1}.game-nav a[aria-current=page]:before{background:#f5d493;box-shadow:0 0 9px #e9bd6970}
body.in-round .game-nav,body.entering .game-nav{display:none!important}
body[data-game-view="game-stage"] .arcade:has(#intro:not([hidden]))>.arena{height:max(570px,calc(100svh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
body[data-game-view="game-stage"] #intro .title-scene{height:clamp(150px,24svh,220px)}
body[data-game-view="game-stage"] #intro .title-grimlet{width:clamp(175px,50vw,240px);height:clamp(175px,50vw,240px)}
body[data-game-view="game-stage"] #intro .title-soul{width:64px;height:64px}
body.round-finale #result{padding:18px 16px 20px;gap:8px;min-height:0}
body.round-finale #result .result-hero{min-height:110px;padding-top:5px;padding-right:110px}
body.round-finale #result .result-hero>img{height:128px;width:130px;top:-5px}
body.round-finale #result .result-halo{height:135px;width:135px;right:-7px}
body.round-finale #result h3{font-size:27px;margin:8px 0}
body.round-finale #result h2{font-size:64px}
body.round-finale #result .stats{padding:10px 0;margin:0}
body.round-finale #result #again{position:relative;bottom:auto;box-shadow:0 4px 0 #8c622a,0 8px 18px #0004}
body.round-finale #result #record-moment{padding:7px}
#result .result-links{gap:0}#result #back-lobby{min-height:40px;padding:6px}
#round-details .result-share{margin:8px 0}#round-details #share-status{min-height:0}
.history-archive,.game-help{border-top:1px solid #bc95d333;margin-top:18px}.history-archive>summary,.game-help>summary{min-height:48px;padding:15px 0;cursor:pointer;font-size:12px;color:#e2c7f1}.game-help .telegram{margin-top:16px}.game-help .fine{font-size:11px;line-height:1.6}
.podium-inspect{display:block;width:100%;min-height:40px;font-size:9px;padding:7px 2px;background:#ffffff06;border:1px solid #bea0cc30;margin-top:10px}
body[data-game-view] .leaderboard h2{font-size:30px;margin-bottom:14px}.league-podium{margin-top:23px;margin-bottom:15px}
@media(max-height:700px){body[data-game-view="game-stage"] #intro.cinematic-intro{padding-top:44px;gap:5px}body[data-game-view="game-stage"] #intro .title-scene{height:145px}body[data-game-view="game-stage"] #intro .title-grimlet{width:175px;height:175px}}
/* Final hierarchy: character, one play action, then optional detail. */
body[data-game-view="game-stage"] #intro.cinematic-intro{padding:52px 22px 16px;gap:9px;overflow-y:auto}
body[data-game-view="game-stage"] .arcade:has(#intro:not([hidden]))>.arena{height:max(490px,calc(100svh - 102px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
body[data-game-view="game-stage"] #intro .title-scene{height:clamp(160px,27svh,250px)}
body[data-game-view="game-stage"] #intro .title-grimlet{width:clamp(195px,55vw,270px);height:clamp(195px,55vw,270px)}
#intro .lobby-rule{font-size:8px;letter-spacing:1.2px;color:#ccb0df;line-height:1.5;margin:0;text-align:center}
#intro .grimlet-quote{font-size:16px;margin:0 0 6px}
#intro #start{width:100%;max-width:420px;font-size:14px;min-height:54px;letter-spacing:.6px}
#intro .lobby-options{width:100%;max-width:420px;flex-shrink:0;border-top:1px solid #c299dc30;margin-top:5px;text-align:left}
.lobby-options>summary{list-style:none;min-height:44px;padding:12px 2px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:11px;color:#d2b7e3}
.lobby-options>summary::-webkit-details-marker{display:none}.lobby-options>summary span{font-size:17px}.lobby-options[open]>summary span{transform:rotate(45deg)}
.lobby-options .opening-how{text-align:left}.lobby-options .opening-how summary{justify-content:flex-start!important}.lobby-options .quick-start{justify-content:flex-start!important}
body.round-finale>header{display:none}
body.round-finale main{padding:8px}
body.round-finale #result .result-hero{min-height:100px}
body.round-finale #result h2{font-size:clamp(60px,17vw,82px)}
body.round-finale #result #again{margin:4px 0 8px;min-height:54px}
#result #round-details{margin-top:0}#round-details .earned-badges{margin:12px 0}#round-details .result-next{margin:10px 0}
body[data-game-view]:not([data-game-view="game-stage"])>header{padding:12px 16px}
body[data-game-view]:not([data-game-view="game-stage"]) .brand{font-size:19px}
body[data-game-view]:not([data-game-view="game-stage"]) .brand span{font-size:6px}
body[data-game-view] .game-nav a{font-size:12px;letter-spacing:.1px}
@media(max-height:680px){body[data-game-view="game-stage"] #intro.cinematic-intro{padding-top:44px;gap:5px}body[data-game-view="game-stage"] #intro .title-scene{height:140px}body[data-game-view="game-stage"] #intro .title-grimlet{width:174px;height:174px}#intro .title-wordmark h2{font-size:34px}#intro .title-wordmark small{font-size:7px}#intro #ranked-mode{margin:3px 0}}

/* Keep incoming score challenges visible without adding another lobby section. */
#intro #chosen-rival{width:100%;padding:2px 8px;margin:0 0 6px;justify-content:space-between;flex-wrap:nowrap;background:linear-gradient(110deg,#493044,#251333);border-color:#edcf8666}
#intro #chosen-rival-label{font-weight:800;font-size:12px;letter-spacing:.04em;text-align:left}
#intro #clear-rival{flex-shrink:0}
#intro .grimlet-quote[hidden],#intro #chosen-rival[hidden]{display:none}
