:root{color-scheme:dark;--night:#0a1833;--deep:#07132c;--cream:#fff3d9;--amber:#ffce79;--muted:#b2c0d7;--line:#344662;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cream);background:var(--deep)}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible{outline:3px solid var(--amber);outline-offset:4px}button:hover:not(:disabled){filter:brightness(1.14)}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}::selection{color:var(--night);background:var(--amber)}button span[data-icon],.mission-icon,.dialog-icon{display:inline-flex;align-items:center;justify-content:center}a{color:var(--amber);text-underline-offset:3px}.app{max-width:1800px;margin:auto;background:var(--night)}
.topbar{height:86px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #32415a}.brand{display:flex;align-items:center;gap:13px;font:27px/1 Georgia,serif;white-space:nowrap}.number-plate{width:46px;height:49px;display:grid;place-items:center;border:1px solid #bba071;border-radius:5px;font-size:28px;background:#102440;color:var(--amber);box-shadow:0 3px 10px #0004}.brand div>span{font:10px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--muted);display:block;margin-top:7px;letter-spacing:.04em}.hud{display:flex;align-items:center;gap:43px;font-variant-numeric:tabular-nums}.stat{display:flex;align-items:center;gap:12px}.stat>span{font-size:11px;color:var(--muted)}.stat strong{font-size:29px;min-width:60px;letter-spacing:-.025em}.record-stat strong{font-size:21px;color:var(--muted)}.clock-stat{display:flex;align-items:center;gap:10px;color:var(--amber);padding-left:30px;border-left:1px solid var(--line)}.clock-stat strong{font-size:30px;min-width:65px}.clock-stat.urgent{color:#ffa388}.header-actions{display:flex;gap:8px}.icon-button{border:1px solid #52627c;background:transparent;color:var(--cream);width:40px;height:40px;border-radius:50%;display:grid;place-items:center}.icon-button svg{width:19px;height:19px}
.arena{position:relative;height:calc(100svh - 191px);min-height:510px;max-height:1150px;overflow:hidden;isolation:isolate;background:#0643a5}.scene-scroll{width:100%;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#587497 #102c60;display:grid;align-items:center;justify-items:center;overscroll-behavior-x:contain}.world{position:relative;flex:none;width:min(100%,calc((100svh - 191px)*1.5));min-width:765px;aspect-ratio:3/2;user-select:none}.world>img{display:block;width:100%;height:100%;pointer-events:none}.glass-layer,.target-layer,.actor-layer,.effect-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.glass-layer{stroke:none;overflow:visible}.glass-pane{fill:#041326;opacity:0;transition:opacity .16s ease-out;filter:drop-shadow(0 3px 5px #061125e6);mix-blend-mode:multiply}.glass-pane.off{opacity:.96}.glass-pane.overdue{stroke:#e6a18e;stroke-width:1.4;stroke-opacity:.48}.glass-pane.focused{stroke:var(--cream);stroke-width:2;stroke-opacity:1}.target-layer{z-index:2}.light-target{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);min-width:44px;min-height:44px;border:0;background:transparent;color:transparent;padding:0;border-radius:5px;cursor:pointer;touch-action:pan-x pan-y}.light-target:focus-visible{outline:2px solid var(--amber);outline-offset:3px;background:#ffd89916}.world.playing{cursor:default}.actor-layer{z-index:4}.burglar{position:absolute;pointer-events:auto;width:5.8%;height:10.7%;min-width:47px;min-height:64px;background:transparent;border:0;padding:0;transform:translate(-50%,-100%);color:var(--cream);touch-action:manipulation;cursor:crosshair;border-radius:35%}.burglar>svg{width:100%;height:100%;overflow:visible;stroke:none;filter:drop-shadow(1px 4px 3px #0208127a)}.burglar .leg-a{transform-origin:42px 76px;animation:stride .36s ease-in-out infinite alternate}.burglar .leg-b{transform-origin:53px 76px;animation:stride .36s ease-in-out infinite alternate-reverse}.burglar .torso{animation:sneak .36s ease-in-out infinite alternate}.burglar .arm{transform-origin:60px 49px;animation:arm .36s ease-in-out infinite alternate}.burglar.paused *{animation-play-state:paused!important}.burglar.caught *{animation:none}.burglar:focus-visible{outline:3px solid var(--amber);outline-offset:0;background:#ffc56622}.burglar.caught{pointer-events:none;filter:brightness(1.25)}.effect-layer{z-index:5;overflow:visible}.floater{position:absolute;transform:translate(-50%,-100%);font-size:clamp(17px,2vw,28px);font-weight:800;white-space:nowrap;color:#fff5ce;text-shadow:0 2px 4px #071127,1px 0 2px #071127,-1px 0 2px #071127;animation:rise .95s cubic-bezier(.2,.8,.2,1) forwards;pointer-events:none}.floater.penalty{color:#ffbda5}.floater.catch{font-size:clamp(17px,2vw,30px);color:#bfffcc}.light-flash{position:absolute;width:35px;height:35px;border:2px solid #ffe6ac;border-radius:50%;transform:translate(-50%,-50%);animation:flash .45s ease-out forwards}.live-strip{position:absolute;left:24px;top:18px;display:flex;align-items:center;gap:12px;pointer-events:none;font-size:12px;z-index:6}.light-status{display:flex;align-items:center;gap:9px;background:#0a1b35ed;border:1px solid #58739b;padding:10px 14px;border-radius:7px}.status-led{height:7px;width:7px;background:#bbf2c6;border-radius:50%}.status-led.dark{background:#ffce79}.streak{display:flex;align-items:center;gap:8px;color:var(--cream);text-shadow:0 2px 4px #000}.streak strong{font-size:22px;color:var(--amber)}.streak span{font-size:10px}.announcement{position:absolute;top:18px;left:50%;transform:translate(-50%,-8px);color:var(--cream);background:#101e37f5;border:1px solid #a0845a;border-radius:7px;padding:11px 17px;font-size:13px;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;z-index:7;white-space:nowrap}.announcement.visible{opacity:1;transform:translate(-50%,0)}.announcement.alert{border-color:#edb777;background:#342714}.welcome{position:absolute;left:28px;bottom:25px;width:321px;background:#0a1833f7;border:1px solid #53647e;border-radius:13px;padding:27px;box-shadow:0 15px 42px #030c2966;z-index:8}.welcome h1{font:400 46px/.99 Georgia,serif;letter-spacing:-.035em;margin:0 0 17px;text-wrap:balance}.welcome h1 em{color:var(--amber);font-weight:400}.welcome p{color:#c2cddd;font-size:12px;line-height:1.6;margin:0 0 23px;max-width:60ch}.mission{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px}.mission-icon{color:var(--amber);flex:none;margin-top:1px}.mission-icon svg{width:22px;height:22px}.mission b{font-size:12px;font-weight:600;display:block;line-height:1.5}.mission div>span{font-size:11px;color:#bac8dc;line-height:1.55;display:block;margin-top:3px}.primary{border:1px solid #ffe1a5;background:var(--amber);color:#192538;padding:14px 17px;min-height:49px;border-radius:7px;display:inline-flex;gap:12px;justify-content:space-between;align-items:center;font-weight:700;font-size:13px;box-shadow:0 5px 15px #0002}.primary svg{width:18px;height:18px}.welcome .primary{width:100%;margin-top:3px}.welcome-foot{display:block;font-size:10px;color:#b5c4da;margin-top:13px;text-align:center;line-height:1.4}
.overlay{position:absolute;inset:0;background:#08152db3;display:grid;place-items:center;z-index:12;padding:14px;backdrop-filter:blur(3px)}.dialog-card{background:#101f3a;border:1px solid #64748c;border-radius:16px;padding:31px;text-align:center;box-shadow:0 16px 45px #0005;width:min(396px,100%)}.dialog-icon{color:var(--amber);margin-bottom:13px}.dialog-icon svg{width:34px;height:34px}.dialog-card h2{font:400 36px/1.06 Georgia,serif;letter-spacing:-.03em;margin:0 0 12px;text-wrap:balance}.dialog-card p{font-size:13px;line-height:1.6;color:#bfcbde;margin:0 0 24px}.dialog-card .primary{width:100%;margin-top:7px}.text-button{background:none;border:0;color:#c5d0e0;font-size:12px;padding:15px 8px 0;min-height:40px}.final-score{display:block;font-size:58px;color:var(--amber);letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}.points-label{font-size:11px;color:var(--muted)}.dialog-card .new-record{color:#d3f6c3;font-size:12px;margin:12px 0 -5px}.result-stats{display:flex;justify-content:space-around;margin:23px 0 19px;gap:14px}.result-stats strong{display:block;font-size:22px;font-variant-numeric:tabular-nums}.result-stats span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.time-track{height:4px;background:#35445e}.time-track>div{width:100%;height:100%;background:var(--amber);transition:width .1s linear}.bottom-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 28px;gap:20px;border-bottom:1px solid #2e3c55}.watch-status{display:flex;align-items:center;gap:10px;font-size:11px;color:#c0cce0}.watch-status>span[data-icon]{display:flex;color:var(--amber)}.watch-status svg{width:19px;height:19px}.chances{display:flex;gap:5px;margin-left:3px}.chances i{width:8px;height:8px;border:1px solid #f5d095;border-radius:50%;background:#ffce79}.chances i.lost{border-color:#62718a;background:transparent}.bottom-actions{display:flex;align-items:center;gap:12px}.bottom-actions label{font-size:11px;color:var(--muted)}select{font-size:12px;background:var(--night);color:var(--cream);border:1px solid #52647f;border-radius:6px;padding:8px 22px 8px 10px;cursor:pointer}.bottom-actions .icon-button{width:34px;height:34px;border:0}footer{display:flex;justify-content:space-between;padding:11px 29px;color:var(--muted);font-size:10px;gap:15px;line-height:1.5}footer b{font-weight:600;color:#f1d8ae}.keyboard{white-space:nowrap}.keyboard>span{margin:0 8px}kbd{font:inherit;color:#d0d9e8}.view-controls{position:absolute;right:20px;bottom:18px;z-index:7}.view-button{background:#0b1d39e8;border:1px solid #7083a1;color:var(--cream);min-height:38px;display:flex;align-items:center;gap:9px;border-radius:7px;padding:8px 12px;font-size:11px}.view-button svg{width:17px;height:17px}.street-nav{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:4px;padding:4px;background:#0a1b35ed;border:1px solid #6c7f9d;border-radius:8px;z-index:7}.street-nav button{background:none;border:0;color:var(--cream);padding:9px 12px;min-height:40px;font-size:11px;border-radius:4px;white-space:nowrap}.street-nav button.active{background:#304667}.street-nav span:not(:empty){background:var(--amber);color:var(--night);border-radius:50%;min-width:17px;display:inline-block;padding:1px 4px;font-weight:700;margin-left:3px}.load-error{position:absolute;inset:10%;background:var(--night);border:1px solid #ffcc93;padding:30px;font-size:16px;line-height:1.7;z-index:30}.zoomed .world{width:1300px;min-width:1300px}.zoomed .scene-scroll{justify-items:start}.zoomed .view-controls{bottom:17px}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@keyframes stride{to{transform:rotate(24deg)}}@keyframes arm{to{transform:rotate(-22deg)}}@keyframes sneak{to{transform:translateY(-2px)}}@keyframes rise{0%{opacity:1;margin-top:0}75%{opacity:1}100%{opacity:0;margin-top:-42px}}@keyframes flash{to{width:85px;height:85px;opacity:0}}
@media(min-width:1700px){.world{max-width:100%}}
@media(max-width:1100px){.topbar{padding:0 20px;gap:15px}.brand{font-size:23px}.hud{gap:20px}.stat{gap:8px}.stat strong{font-size:26px}.record-stat strong{font-size:19px}.clock-stat{padding-left:19px}.welcome{width:291px;padding:23px;left:20px;bottom:20px}.welcome h1{font-size:42px}.keyboard{display:none}.world{min-width:0}.arena{min-height:480px}.announcement{top:65px}.live-strip{left:18px}}
@media(max-width:700px){.topbar{height:112px;padding:12px 16px;display:grid;grid-template-columns:1fr auto;gap:12px}.brand{font-size:22px;gap:10px}.number-plate{width:36px;height:38px;font-size:24px}.brand div>span{font-size:9px;margin-top:5px}.header-actions{grid-column:2;grid-row:1;gap:6px}.icon-button{width:34px;height:34px}.icon-button svg{width:17px;height:17px}.hud{grid-row:2;grid-column:1/-1;justify-content:space-between;gap:15px}.stat{gap:8px}.stat>span{font-size:10px}.stat strong{font-size:23px;min-width:48px}.record-stat strong{font-size:17px}.clock-stat{border:0;padding-left:0;gap:6px}.clock-stat strong{font-size:24px;min-width:54px}.clock-stat svg{width:18px;height:18px}.arena{height:clamp(480px,calc(100svh - 225px),780px);min-height:480px}.scene-scroll{align-items:center;justify-items:center}.world{width:100%;min-width:0}.welcome{left:50%;transform:translateX(-50%);bottom:50%;translate:0 50%;width:min(324px,calc(100% - 34px));padding:23px}.welcome h1{font-size:41px}.welcome p{font-size:12px;margin-bottom:19px}.welcome .mission{margin-bottom:15px}.live-strip{left:12px;top:13px;font-size:11px;gap:10px}.light-status{padding:9px 11px}.streak strong{font-size:20px}.announcement{top:62px;width:max-content;max-width:calc(100% - 24px);text-align:center;white-space:normal;font-size:12px;padding:9px 13px}.bottom-bar{padding:11px 14px;gap:10px;flex-wrap:wrap}.watch-status{font-size:10px;gap:7px;flex:1;min-width:185px}.watch-status #watchStatus{max-width:150px}.bottom-actions{gap:4px}.bottom-actions label{display:none}select{font-size:11px;padding:8px}.chances{gap:3px;margin-left:0}.chances i{width:6px;height:6px}footer{padding:9px 15px;font-size:9px}.view-controls{right:12px;bottom:14px}.view-button{min-height:37px;font-size:10px;padding:8px 10px}.welcome~.view-controls{display:none}.arena.started .view-controls{display:block}.zoomed .world{min-width:820px;width:820px}.zoomed .view-controls{right:10px;bottom:auto;top:12px}.street-nav{bottom:12px}.street-nav button{padding:9px 13px}.dialog-card{padding:24px}.dialog-card h2{font-size:32px}.dialog-card p{font-size:12px}.final-score{font-size:51px}.floater{font-size:18px}.floater.catch{font-size:20px}}
@media(max-height:590px) and (min-width:701px){.topbar{height:65px}.arena{min-height:370px;height:calc(100svh - 150px)}.world{width:min(100%,calc((100svh - 150px)*1.5))}.welcome{width:320px;padding:18px;bottom:12px}.welcome h1{font-size:34px}.welcome p{margin-bottom:13px}.mission{margin-bottom:11px}.welcome-foot{margin-top:9px}.bottom-bar{padding:7px 20px}footer{padding:6px 20px}.result-card{padding:16px}.dialog-icon{display:none}.result-stats{margin:12px 0}.dialog-card h2{font-size:28px}.dialog-card p{margin-bottom:12px}.final-score{font-size:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}.floater{animation:fade .8s linear forwards!important}@keyframes fade{to{opacity:0}}}

/* Personal watch: a compact, keyboard-accessible choice before each round. */
.welcome{max-height:calc(100% - 32px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#6f8099 #14223c}
.player-picker{border:0;padding:0;margin:21px 0 17px;min-width:0}
.player-picker legend{font-size:11px;color:#c4d0e1;padding:0;margin-bottom:10px}
.player-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.player-options label{position:relative;min-width:0;cursor:pointer}
.player-options input{position:absolute;opacity:0;width:1px;height:1px}
.player-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;padding:9px 4px;border:1px solid #576b89;border-radius:6px;background:#132542;transition:background .15s,border-color .15s}
.player-option b{font-size:12px;font-weight:650}
.player-option small{font-size:9px;font-variant-numeric:tabular-nums;color:#bbcce2;white-space:nowrap}
.player-options input:checked+.player-option{background:#ffce79;border-color:#ffe3b2;color:#18253b}
.player-options input:checked+.player-option small{color:#33405a}
.player-options input:focus-visible+.player-option{outline:3px solid #fff3d9;outline-offset:3px}
.player-options label:hover .player-option{border-color:#ffde9f}
@media(max-width:700px){.player-picker{margin-top:18px;margin-bottom:14px}.welcome{padding-top:21px;padding-bottom:21px}}

/* Start screen: player choice and the current leaderboard are visible together. */
.welcome{width:min(644px,calc(100% - 56px));display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:27px;padding:25px}
.welcome h1{font-size:39px;margin-bottom:13px}.welcome p{margin-bottom:15px}.welcome .mission{margin-bottom:13px}
.welcome-main{min-width:0}.player-picker{margin:16px 0 14px}
.custom-name-label{display:block;font-size:11px;color:#c4d0e1;margin-bottom:8px}
.custom-name{font:inherit;font-size:14px;display:block;width:100%;height:43px;padding:10px 12px;margin:0 0 12px;border:1px solid #647591;border-radius:6px;background:#122441;color:var(--cream)}
.custom-name::placeholder{color:#a8b8ce}.custom-name:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.name-error{display:block;font-size:11px;color:#ffbda5;margin:-3px 0 10px;line-height:1.4}
#startLabel{overflow-wrap:anywhere;text-align:left}#start>span[data-icon]{flex:none}
.leaderboard{border-left:1px solid #3d506e;padding-left:25px;min-width:0;display:flex;flex-direction:column}
.ranking-heading{display:flex;gap:12px;align-items:center;margin:7px 0 17px}.ranking-mark{display:grid;place-items:center;flex:none;width:35px;height:38px;border:1px solid #9a855f;color:var(--amber);border-radius:4px;font:23px Georgia,serif}
.eyebrow{display:block;font-size:9px;letter-spacing:.035em;color:#b4c5df;margin-bottom:5px}
.leaderboard h2{font:30px/1 Georgia,serif;margin:0;color:var(--cream)}
.welcome .ranking-level{font-size:10px;color:var(--amber);padding-bottom:14px;margin:0;border-bottom:1px solid #3d506e}
.ranking-list{list-style:none;padding:0;margin:0 0 17px;font-variant-numeric:tabular-nums}
.ranking-list li{display:flex;align-items:center;gap:10px;min-height:51px;border-bottom:1px solid #2a3e5d;font-size:12px;padding:9px 0}
.rank-position{font-size:10px;color:#a6b8d2;flex:none}.rank-name{flex:1;overflow-wrap:anywhere;min-width:0;line-height:1.4}.ranking-list strong{color:#eed8b1;font-size:13px;white-space:nowrap}.ranking-list .is-you .rank-name,.ranking-list .is-you strong{color:var(--amber)}
.welcome .ranking-empty{font-size:12px;margin:16px 0;line-height:1.65;color:#d0daea}
.welcome .ranking-note{font-size:10px;color:#aebfd8;line-height:1.7;margin:auto 0 15px;padding-top:12px}
.welcome .storage-status{font-size:10px;color:#bdd2c1;line-height:1.6;margin:0}
.retry-button{border:0;background:none;color:var(--amber);text-decoration:underline;text-underline-offset:3px;padding:10px 0;font-size:11px;min-height:36px;text-align:left;align-self:flex-start}
.server-link{font-size:11px;line-height:1.5;margin-top:10px}.dialog-card .save-status{font-size:11px;color:#bed2c3;line-height:1.5;margin:0 0 9px}.dialog-card .retry-button{padding-top:0;text-align:center}
.brand div>span{max-width:220px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){
  .welcome{width:calc(100% - 24px);padding:19px;gap:17px;display:flex;flex-direction:column;bottom:auto;top:12px;translate:none;max-height:calc(100% - 24px)}
  .leaderboard{order:-1;border-left:0;border-bottom:1px solid #3d506e;padding:0 0 13px}
  .ranking-heading{margin:0 0 9px;gap:10px}.leaderboard h2{font-size:25px}.ranking-mark{width:29px;height:32px;font-size:21px}.eyebrow{font-size:9px;margin-bottom:3px}
  .welcome .ranking-level{padding-bottom:5px;border:0}.ranking-list{margin-bottom:4px;max-height:133px;overflow-y:auto}.ranking-list li{min-height:36px;padding:7px 0}
  .welcome .ranking-empty{font-size:11px;margin:4px 0 8px}.welcome .ranking-note{display:none}.welcome .storage-status{font-size:9px;margin-top:4px}
  .welcome h1{font-size:30px;line-height:1.02;margin:0 0 10px}.welcome h1 br{display:none}.welcome-main>p{display:none}
  .welcome .mission{margin-bottom:9px;gap:9px}.mission div>span{font-size:10px}.mission b{font-size:11px}.mission-icon svg{width:19px;height:19px}
  .player-picker{margin:13px 0 12px}.player-option{min-height:49px;padding:7px 3px;gap:4px}
  .custom-name{height:40px;margin-bottom:9px}.welcome-foot{margin-top:9px;font-size:9px}.welcome .primary{min-height:44px;padding:11px 13px}
  .brand div>span{max-width:180px}.overlay{overflow-y:auto}.dialog-card{max-height:100%;overflow-y:auto}
}
.round-stat strong{font-size:18px;min-width:44px;white-space:nowrap;color:var(--amber)}
.round-transition{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(350px,calc(100% - 40px));background:#0a1833f5;border:1px solid #bda36e;border-radius:14px;text-align:center;padding:28px 24px;z-index:9;pointer-events:none;box-shadow:0 15px 60px #0006}
.round-transition h2{font:35px/1.1 Georgia,serif;margin:12px 0;color:var(--cream)}.round-transition p{font-size:13px;color:#bfcee4;margin:0 0 15px}.round-transition>strong{font:42px Georgia,serif;color:var(--amber)}
@media(max-width:1100px){.hud{gap:15px}.round-stat{gap:6px}.round-stat strong{font-size:16px}.clock-stat{padding-left:13px}}
@media(max-width:700px){.hud{gap:8px}.round-stat>span{font-size:9px}.round-stat strong{font-size:14px;min-width:32px}.clock-stat{padding-left:0}.clock-stat strong{font-size:22px;min-width:48px}.stat strong{min-width:34px}.round-transition h2{font-size:31px}}

/* Stop is labelled explicitly and remains available from the pause dialog. */
.stop-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1px solid #a17c72;border-radius:6px;padding:8px 11px;background:#302333;color:#ffe0d1;font-size:12px;white-space:nowrap}
.stop-button>span{font-size:10px}.pause-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.pause-actions #pauseStop{color:#ffcfb8}
@media(max-width:700px){.arena.started{height:clamp(450px,calc(100svh - 260px),780px);min-height:450px}.bottom-bar:has(.stop-button:not([hidden])) .bottom-actions{flex:1;justify-content:flex-end}.stop-button{font-size:11px;min-height:38px;padding:8px 10px}.pause-actions{flex-direction:column;gap:0}.pause-actions .text-button{padding-top:10px}}

/* Mobile play requires landscape; a separate inert shell prevents portrait input. */
.rotate-screen{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 25%,#173a64,#07132c 70%);overflow:auto;outline:none}
.rotate-card{width:min(355px,100%);text-align:center;padding:24px 0}.rotate-illustration{width:140px;height:115px;color:var(--amber);stroke-width:2;display:block;margin:0 auto 27px}
.rotate-card .eyebrow{font-size:11px;margin-bottom:15px}.rotate-card h2{font:38px/1.05 Georgia,serif;letter-spacing:-.025em;margin:0 0 17px}.rotate-card p{font-size:14px;line-height:1.65;color:#c7d5e9;margin:0 0 23px}.rotate-card .primary{margin:0 auto;gap:22px}.rotate-card .rotate-hint{font-size:11px;color:#a8bad4;margin:20px auto 0;max-width:27ch}
body.mobile-game-page{overflow:hidden}.mobile-game{height:100svh;height:100dvh;max-width:none;overflow:hidden;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.mobile-game .game-shell{height:100%;display:flex;flex-direction:column;min-height:0}.mobile-game main{flex:1;min-height:0;display:flex;flex-direction:column}
.mobile-game .topbar{display:flex;flex:none;height:50px;padding:6px 16px;gap:14px}.mobile-game .brand{font-size:21px;gap:9px}.mobile-game .number-plate{width:31px;height:33px;font-size:22px}.mobile-game .brand div>span{font-size:9px;max-width:160px;margin-top:4px}
.mobile-game .hud{gap:16px;justify-content:initial}.mobile-game .stat{gap:7px}.mobile-game .stat>span{font-size:10px}.mobile-game .stat strong{font-size:21px;min-width:25px}.mobile-game .record-stat strong{font-size:16px}.mobile-game .round-stat strong{font-size:15px;min-width:35px}.mobile-game .clock-stat{padding-left:0;border:0;gap:5px}.mobile-game .clock-stat strong{font-size:23px;min-width:49px}.mobile-game .clock-stat svg{width:18px;height:18px}.mobile-game .header-actions{gap:6px}.mobile-game .icon-button{width:34px;height:34px}
.mobile-game .arena,.mobile-game .arena.started{flex:1;min-height:0!important;height:auto!important;max-height:none}.mobile-game .world{width:min(100%,calc(var(--board-height,300px)*1.5));min-width:0}.mobile-game .zoomed .world{width:max(640px,calc(var(--board-height,300px)*2));min-width:640px}
.mobile-game .time-track{height:3px;flex:none}.mobile-game .bottom-bar{flex:none;min-height:43px;padding:5px 14px;padding-bottom:max(5px,env(safe-area-inset-bottom));gap:12px;flex-wrap:nowrap}.mobile-game .watch-status{min-width:0;flex:1;font-size:10px}.mobile-game .watch-status #watchStatus{max-width:none}.mobile-game .bottom-actions{gap:8px;flex:none!important}.mobile-game .bottom-actions label{display:none}.mobile-game .bottom-actions select{padding:6px 8px;font-size:11px}.mobile-game .stop-button{min-height:32px;padding:6px 10px}.mobile-game footer{display:none}
.mobile-game .welcome{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);width:min(720px,calc(100% - 28px));left:14px;top:10px;bottom:auto;translate:none;transform:none;gap:20px;padding:14px 18px;max-height:calc(100% - 20px)}
.mobile-game .welcome h1{font-size:26px;line-height:1;margin-bottom:9px}.mobile-game .welcome h1 br{display:none}.mobile-game .welcome-main>p{display:none}.mobile-game .welcome .mission{margin:0 0 4px;gap:7px}.mobile-game .mission-icon svg{width:15px;height:15px}.mobile-game .mission b{font-size:10px}.mobile-game .mission div>span{display:none}.mobile-game .player-picker{margin:9px 0}.mobile-game .player-picker legend{font-size:10px;margin-bottom:6px}.mobile-game .player-option{min-height:40px;padding:5px 3px;gap:3px}.mobile-game .player-option b{font-size:11px}.mobile-game .player-option small{font-size:9px}
.mobile-game .custom-name-label{font-size:10px;margin-bottom:5px}.mobile-game .custom-name{height:33px;padding:6px 10px;margin-bottom:8px;font-size:16px}.mobile-game .welcome .primary{min-height:36px;padding:8px 12px;font-size:12px;margin:0}.mobile-game .welcome-foot{font-size:9px;margin-top:7px}
.mobile-game .leaderboard{order:initial;border-bottom:0;border-left:1px solid #3d506e;padding:0 0 0 20px}.mobile-game .ranking-heading{margin:0 0 9px;gap:10px}.mobile-game .ranking-mark{width:28px;height:31px;font-size:20px}.mobile-game .leaderboard h2{font-size:26px}.mobile-game .eyebrow{font-size:9px}.mobile-game .welcome .ranking-level{padding-bottom:6px;border:0}.mobile-game .ranking-list{margin:0 0 9px;max-height:132px;overflow:auto}.mobile-game .ranking-list li{min-height:32px;padding:7px 0;font-size:11px}.mobile-game .welcome .ranking-empty{font-size:11px;margin:6px 0}.mobile-game .welcome .ranking-note{display:none}.mobile-game .welcome .storage-status{font-size:9px;margin-top:auto}
.mobile-game .live-strip{left:12px;top:10px;font-size:10px;gap:8px}.mobile-game .light-status{padding:7px 9px}.mobile-game .announcement{top:10px;max-width:55%;font-size:11px;padding:8px 12px}.mobile-game .view-controls,.mobile-game .zoomed .view-controls{display:block;right:12px;top:10px;bottom:auto}.mobile-game .arena:not(.started) .view-controls{display:none}.mobile-game .street-nav{bottom:8px;padding:2px}.mobile-game .street-nav button{min-height:31px;padding:5px 12px}
.mobile-game .overlay{padding:10px;overflow:auto}.mobile-game .dialog-card{max-height:100%;overflow:auto;padding:16px 24px}.mobile-game .dialog-card h2{font-size:28px}.mobile-game .dialog-icon{display:none}.mobile-game .dialog-card p{margin-bottom:12px}.mobile-game .final-score{font-size:38px}.mobile-game .result-stats{margin:10px 0}.mobile-game .pause-actions{flex-direction:row}.mobile-game .round-transition{padding:16px}.mobile-game .round-transition h2{font-size:28px;margin:8px 0}.mobile-game .round-transition>strong{font-size:32px}
@media(max-width:760px){.mobile-game .record-stat{display:none}.mobile-game .brand div>span{max-width:135px}.mobile-game .topbar{gap:10px;padding-left:12px;padding-right:12px}.mobile-game .hud{gap:10px}}

/* Keep exit actions outside the scrollable score summary, including short phones. */
.result-card{display:flex;flex-direction:column;max-height:100%;padding:0;overflow:hidden}
.result-content{min-height:0;overflow-y:auto;padding:28px 28px 18px;scrollbar-width:thin;scrollbar-color:#6f8099 #101f3a}
.result-summary,.result-details{min-width:0}.result-summary .new-record{margin:10px 0 14px}
.result-actions{flex:none;display:flex;flex-direction:column;gap:10px;padding:14px 24px 20px;border-top:1px solid var(--line);background:#101f3a}
.result-actions .primary,.result-actions .text-button{margin:0;min-height:44px;width:100%;padding:11px 13px}
.result-actions .text-button{border:1px solid #64748c;border-radius:6px;color:var(--cream);font-size:13px}
.mobile-game .result-card{width:min(660px,100%);padding:0;overflow:hidden}
.mobile-game .result-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:center;padding:16px 22px}
.mobile-game .result-summary{text-align:left}.mobile-game .result-summary h2{text-wrap:balance;font-size:27px}
.mobile-game .result-summary p{margin-bottom:0}.mobile-game .result-summary .new-record{margin-top:10px}
.mobile-game .result-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px 18px}
.mobile-game .result-actions .primary,.mobile-game .result-actions .text-button{font-size:12px;min-height:44px}
.mobile-game .result-details .save-status{margin-bottom:0}

.round-stat,.mobile-game .round-stat{display:grid;grid-template-columns:auto auto;column-gap:6px;row-gap:2px;flex-shrink:0}.round-stat small{grid-column:1 / -1;display:block;font-size:10px;font-weight:600;color:var(--amber);white-space:nowrap;line-height:1.2}.mobile-game .round-stat small{font-size:9px}
@media(max-width:640px){.mobile-game .brand{font-size:18px;gap:6px}.mobile-game .number-plate{width:27px;height:31px;font-size:20px}.mobile-game .brand div>span{max-width:100px;font-size:8px;overflow:hidden;text-overflow:ellipsis}.mobile-game .topbar{gap:8px}.mobile-game .hud{gap:7px}.mobile-game .stat{column-gap:5px}}
