:root{color-scheme:dark;--bg:#080808;--panel:#131313;--text:#f3f3f3;--muted:#b8b8b8;--human:#ffe000;--ai:#ffe000;--pink:#ff6398}
*{box-sizing:border-box}body{margin:0;height:100dvh;overflow:hidden;color:var(--text);font-family:'Courier New',Courier,monospace;background:repeating-linear-gradient(0deg,#ffe00004 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 0,#29292950,transparent 65%),var(--bg)}
main{height:100dvh;max-width:1700px;margin:auto;padding:16px 22px;display:grid;grid-template-rows:52px 48px minmax(0,1fr) 14px;gap:12px}
header,.header-controls,.brand{display:flex;align-items:center;gap:12px}header{justify-content:space-between}.brand{color:var(--text);text-decoration:none;font-size:16px;font-weight:bold;letter-spacing:1px}.brand small{font-size:10px;color:var(--pink)}.brand-icon{padding:10px;border:3px double #b4b4b4;background:#131313;box-shadow:3px 3px #000;letter-spacing:-2px}.brand-icon span{color:var(--ai);padding:0 4px}
.highscore{display:flex;align-items:center;gap:12px;padding:6px 12px;border:3px double var(--human);background:#101010;box-shadow:3px 3px #000}.highscore span{font-size:10px;color:var(--human)}.highscore strong{font-size:25px;color:var(--human)}
button{font:700 13px 'Courier New',monospace;min-height:48px;cursor:pointer;touch-action:manipulation;letter-spacing:1px;padding:10px 16px;color:#21100e;background:#ffe000;border:3px outset #ffe000;border-radius:0;box-shadow:0 4px #7b492b,3px 6px #000;transition:transform .12s}button:hover{filter:brightness(1.1)}button:active{transform:translateY(3px);box-shadow:0 1px #7b492b}button:focus-visible,input:focus-visible{outline:3px solid white;outline-offset:3px}button:disabled{opacity:.45;cursor:default;filter:none}.secondary,.sound-button{color:var(--text);background:#1f1f1f;border-color:#a0a0a0;box-shadow:0 4px #090909}.sound-button{font-size:10px;padding:8px 12px;color:var(--muted)}.sound-button[aria-pressed=true]{color:var(--ai);border-color:var(--ai)}
.arena-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.contest{display:flex;align-items:center;gap:15px;font-size:26px;font-weight:bold;letter-spacing:3px}.human{color:var(--human)}.machine{color:var(--ai)}.contest .human,.contest .machine{border-bottom:3px solid currentColor;text-shadow:2px 2px #000}.versus{font-size:17px;color:#210c23;background:var(--pink);border:2px solid #ffa9c6;box-shadow:3px 3px #792d48;padding:5px;letter-spacing:-1px;transform:rotate(-4deg)}h1{font-size:22px;text-transform:uppercase;letter-spacing:1px;margin:0;text-align:right}p{margin:0;color:var(--muted)}#subtitle{font-size:12px;text-align:right;margin-top:4px}
.play-layout{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:18px}.game-shell{position:relative;isolation:isolate;min-height:0;display:grid;grid-template-rows:32px 42px minmax(0,1fr) 48px;border:4px solid #393939;border-radius:2px;background:#090909;box-shadow:0 0 0 3px #1e1e1e,0 0 0 5px #2d2d2d,6px 8px #000;overflow:hidden}
.camera-bar{display:flex;align-items:center;gap:10px;padding:4px 12px;background:linear-gradient(90deg,#292929,#181818);border-bottom:2px solid #393939;font-size:10px;letter-spacing:1px}.camera-title{display:flex;align-items:center;min-width:0;gap:7px}.camera-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.camera-bar i{width:9px;height:9px;background:var(--ai);box-shadow:2px 2px #000;flex-shrink:0}#round-label{margin-left:auto;color:var(--human);white-space:nowrap}.window-controls{white-space:pre;border:2px outset #929292;padding:1px 4px;color:#d7d7d7}
.arcade-hud{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 14px;border-bottom:2px solid #222222;color:var(--human);background:#0d0d0d;font-size:10px;font-weight:bold}.shield-hud,.lock-hud{display:flex;align-items:center;gap:9px}#shields{display:flex;gap:5px}#shields i{width:11px;height:15px;background:var(--ai);clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%)}#shields .spent{background:#2d2d2d}.lock-hud{flex:1;max-width:250px}#lock-label{white-space:nowrap}.lock-meter{flex:1;min-width:32px;height:10px;border:2px solid #383838;background:#090909}#lock-fill{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#ffe000 0 8px,#ffe000 8px 10px)}#live-points{font-size:13px;white-space:nowrap}
.media-well{min-height:0;min-width:0;display:flex;justify-content:center;align-items:center;background:#040404;overflow:hidden}.viewport{position:relative;flex-shrink:0;aspect-ratio:4/3;background:#111;overflow:hidden}.viewport canvas,.viewport video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.viewport video{pointer-events:none}.viewport::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:repeating-linear-gradient(0deg,#00000008 0 1px,transparent 1px 4px);box-shadow:inset 0 0 24px #0006}#overlay{z-index:1;touch-action:none;cursor:none}#overlay:focus-visible{outline:2px solid #bababa88;outline-offset:-2px}
.camera-osd{position:absolute;top:14px;left:18px;right:18px;z-index:3;display:flex;gap:12px;pointer-events:none;color:#eeeeee;text-shadow:1px 1px 2px #000,-1px -1px 2px #000;font-size:10px;font-weight:bold}.rec-dot{color:#ff7885}#camera-clock{margin-left:auto}.view-corners{position:absolute;inset:8px;z-index:3;pointer-events:none;background:linear-gradient(#e1e1e188,#e1e1e188) left top/18px 2px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) left top/2px 18px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) right top/18px 2px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) right top/2px 18px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) left bottom/18px 2px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) left bottom/2px 18px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) right bottom/18px 2px no-repeat,linear-gradient(#e1e1e188,#e1e1e188) right bottom/2px 18px no-repeat}.demo-badge{position:absolute;bottom:12px;right:16px;z-index:3;pointer-events:none;font-size:8px;padding:4px;background:#0a0a0ac4;border:1px solid #ffe00088;color:#e9e9e9}
.start-panel{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px;background:#090909c9;backdrop-filter:blur(1px)}.start-avatar{height:clamp(48px,13vh,115px);width:auto;filter:drop-shadow(3px 5px #0006)}.insert-coin{font-size:10px;font-weight:bold;letter-spacing:2px;color:var(--ai);margin-top:8px}h2{font-size:23px;letter-spacing:1px;margin:10px 0;text-transform:uppercase}.start-panel p{font-size:12px;margin-bottom:18px}.start-panel button{min-height:52px;padding-inline:26px;font-size:17px}.start-panel button span{margin-left:16px}
.status-bar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px 12px;background:#131313;border-top:2px solid #393939}#status{font-size:10px;font-weight:bold;letter-spacing:1px;color:#e2e2e2}.timer{font-size:25px;font-weight:bold;color:var(--human);font-variant-numeric:tabular-nums;white-space:nowrap}.timer span{font-size:12px;color:var(--muted);margin-left:3px}.time-track{position:absolute;bottom:0;left:0;right:0;height:5px;background:#202020}#time-fill{width:100%;height:100%;background:repeating-linear-gradient(90deg,var(--ai) 0 22px,#ffe00055 22px 25px)}.game-shell[data-signal=locked] #status{color:var(--ai)}.game-shell[data-signal=lost] #status,.game-shell.urgent .timer{color:var(--pink)}.game-shell.urgent #time-fill{background:var(--pink)}.game-shell[data-signal=locked] .status-bar{box-shadow:inset 4px 0 var(--ai)}.game-shell[data-signal=lost] .status-bar{box-shadow:inset 4px 0 var(--pink)}
.game-shell::before{content:'';position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;border:4px solid transparent}.game-shell[data-effect=reward]::before{border-color:var(--ai);animation:bezel-reward .55s ease-out}.game-shell[data-effect=loss]::before{border-color:var(--pink);animation:bezel-loss .45s ease-out}.game-shell[data-reaction=win]{animation:cabinet-win .65s ease-out}.game-shell[data-reaction=loss]{animation:cabinet-shake .4s ease-out}
.arcade-toast{position:absolute;z-index:5;top:42px;left:50%;transform:translateX(-50%);padding:8px 12px;background:#0e0e0ee8;border:2px solid var(--ai);color:var(--ai);font-weight:bold;font-size:13px;white-space:nowrap;pointer-events:none}.arcade-toast[data-kind=loss]{border-color:var(--pink);color:var(--pink);background:#2b0d1be8}.round-reward{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px;border:4px double var(--human);background:#101010eb;box-shadow:6px 6px #0008;text-align:center;pointer-events:none}.round-reward span{font-size:12px;color:var(--ai);letter-spacing:5px}.round-reward strong{font-size:clamp(16px,2vw,27px);color:var(--human);white-space:nowrap}.round-reward small{font-size:27px;font-weight:bold}.game-shell[data-reaction=loss] .round-reward{border-color:var(--pink);background:#25111aeb}.game-shell[data-reaction=loss] .round-reward strong{color:var(--pink)}
.pixel-burst{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.pixel-burst i{position:absolute;top:45%;left:50%;width:8px;height:8px;opacity:0;background:var(--human);--x:-180px;--y:-140px}.pixel-burst i:nth-child(2){--x:160px;--y:-120px;background:var(--ai)}.pixel-burst i:nth-child(3){--x:-230px;--y:90px;background:var(--pink)}.pixel-burst i:nth-child(4){--x:210px;--y:130px}.pixel-burst i:nth-child(5){--x:-80px;--y:-200px;background:var(--ai)}.pixel-burst i:nth-child(6){--x:60px;--y:220px;background:var(--pink)}.pixel-burst i:nth-child(7){--x:-140px;--y:180px}.pixel-burst i:nth-child(8){--x:230px;--y:-20px;background:var(--ai)}.game-shell[data-reaction=win] .pixel-burst i{animation:pixel-reward .8s ease-out forwards}
.sidebar{min-height:0;display:grid;grid-template-rows:68px minmax(195px,1fr) minmax(190px,1fr);gap:10px}.player-card,.score-card,.room-card{border:2px solid #393939;background:#131313;box-shadow:3px 3px #000;min-width:0}.player-card{display:flex;align-items:center;gap:12px;padding:6px 12px}.player-card img{height:54px;width:46px;object-fit:contain;background:#252525;border-radius:8px}.player-card div{min-width:0;flex:1}.player-card small{display:block;color:var(--human);font-size:9px;letter-spacing:2px;margin-bottom:4px}.player-card strong{display:block;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#mode-label{font-size:9px;color:var(--ai)}.score-card{padding:12px;display:flex;align-items:center}.score-card>div,.score-card>section{width:100%}.panel-label{font-size:10px;letter-spacing:2px;color:var(--human);font-weight:bold}#round-brief h2{font-size:26px;color:var(--text);line-height:1.15;margin:14px 0}#round-brief p{font-size:11px}.brief-score{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #3e3e3e;margin-top:18px;padding-top:12px}.brief-score span{font-size:10px}.brief-score strong{font-size:26px;color:var(--human)}
.result-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.rank-title{display:flex;align-items:center;gap:8px;min-width:0}.rank-badge{display:grid;place-items:center;width:38px;height:40px;flex-shrink:0;border:2px solid var(--human);color:var(--human);background:#1c1c1c;font-size:27px;font-weight:bold}.result-title h2{font-size:13px;letter-spacing:0;margin:0}.result-title>span{font-size:17px;font-weight:bold;color:var(--human);white-space:nowrap}#result[data-outcome=miss] .rank-badge{border-color:var(--pink);color:var(--pink)}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.result-grid>div{display:flex;flex-direction:column;gap:4px}.result-grid span{font-size:9px}.result-grid strong{font-size:17px}.result-grid small{font-size:9px;color:var(--muted)}#total{color:var(--human)}#score-breakdown{font-size:9px;color:var(--human);padding-top:8px;border-top:1px dashed #3e3e3e}#tracking-detail{font-size:9px;margin-top:6px}.result-actions{display:flex;gap:8px;margin:10px 0 8px}.result-actions button{flex:1;padding:8px 6px;font-size:11px;min-height:44px}.track-toggle{display:flex;align-items:center;gap:8px;font-size:10px;min-height:24px;cursor:pointer}input[type=checkbox]{width:20px;height:20px;accent-color:var(--ai);margin:0}
.room-card{display:flex;flex-direction:column;gap:8px;padding:12px}.room-title{display:flex;align-items:center;justify-content:space-between}.room-title strong{font-size:19px;letter-spacing:3px;color:var(--ai)}#room-status{font-size:10px;line-height:1.35;min-height:14px}.players{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:5px}.player-row{display:flex;align-items:center;gap:8px;min-height:30px}.player-row img{width:26px;height:30px;object-fit:contain;background:#252525;border-radius:5px}.player-row .peer-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.peer-score{font-size:12px;color:var(--human);white-space:nowrap}.peer-status{font-size:8px;color:var(--muted)}.room-actions{display:flex;gap:8px}.room-actions button{font-size:10px;padding:7px 5px;min-height:44px;flex:1}.ai-note{display:flex;align-items:center;gap:8px;border-top:1px dashed #3e3e3e;padding-top:8px;flex-wrap:wrap;font-size:10px}.ai-note small{width:100%;font-size:8px;color:var(--muted)}
footer{display:flex;justify-content:space-between;gap:10px;color:#adadad;font-size:8px;letter-spacing:1px}#error{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90vw;background:#281b19;color:#ffe000;padding:12px;border:2px solid var(--human);z-index:20;font-size:12px}
dialog{width:min(520px,calc(100vw - 30px));padding:24px;border:3px double #a7a7a7;background:#131313;color:var(--text);box-shadow:10px 10px #0009;max-height:calc(100dvh - 20px);overflow:auto}dialog::backdrop{background:#060606d9;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-close{min-height:30px;padding:0 8px;font-size:22px;background:#1f1f1f;color:var(--text);border:1px solid #3f3f3f;box-shadow:none}dialog h2{font-size:25px;margin:12px 0}.name-label{display:block;font-size:10px;color:var(--human);margin-bottom:7px}input[type=text],input:not([type]){width:100%;height:48px;padding:10px;border:2px solid #ffe000;background:#0a0a0a;color:var(--text);font:700 17px 'Courier New',monospace}.character-label{display:block;margin:16px 0 8px}.character-picker{display:grid;grid-template-columns:1fr 1fr;gap:14px}.character-choice{display:flex;flex-direction:column;align-items:center;gap:4px;background:#1c1c1c;border:2px solid #3b3b3b;color:var(--text);box-shadow:3px 3px #000;padding:8px}.character-choice.selected{border-color:var(--human);background:#222222}.character-choice img{height:110px;width:100%;object-fit:contain;filter:drop-shadow(2px 3px #0003)}.character-choice strong{font-size:14px}.character-choice span{font-size:9px;color:var(--muted)}.mode-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 12px}.join-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.join-row input{text-transform:uppercase;letter-spacing:3px}.lan-hint{font-size:10px;margin-top:14px;text-align:center}#profile-error{font-size:11px;color:var(--pink);margin-top:12px}
[hidden]{display:none!important}
@keyframes bezel-reward{0%{opacity:.9}100%{opacity:0}}@keyframes bezel-loss{0%{opacity:.9;transform:translateX(-3px)}25%{transform:translateX(3px)}50%{transform:translateX(-2px)}100%{opacity:0;transform:none}}@keyframes cabinet-win{0%{border-color:#ffe000}100%{border-color:#393939}}@keyframes cabinet-shake{0%,100%{transform:none}20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}@keyframes pixel-reward{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(90deg)}}
@media(max-height:700px){main{padding:10px 16px;grid-template-rows:44px 36px minmax(0,1fr) 12px;gap:8px}.sidebar{grid-template-rows:54px minmax(180px,1fr) minmax(170px,1fr);gap:7px}.player-card img{height:42px}.score-card,.room-card{padding:9px}.highscore strong{font-size:21px}h1{font-size:19px}.contest{font-size:23px}.player-row{min-height:25px}.player-row img{height:25px;width:23px}.room-card{gap:5px}.ai-note{padding-top:5px}.result-grid{margin:8px 0}.start-avatar{height:60px}.start-panel h2{font-size:19px}.start-panel p{margin-bottom:10px}dialog{padding:16px}.character-choice img{height:75px}.character-label{margin-top:10px}.mode-actions{margin-top:12px}}
@media(max-width:1000px){main{padding-inline:14px}.play-layout{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.brand{font-size:12px;letter-spacing:0}.header-controls{gap:8px}#change-player{font-size:10px;padding:8px}.arcade-hud{gap:10px;padding-inline:10px}.lock-hud{max-width:160px;gap:6px}.result-title>span{font-size:14px}.round-heading h1{font-size:18px}}
@media(max-width:700px){main{padding:8px;grid-template-rows:42px 36px minmax(0,1fr) 10px;gap:7px}.play-layout{grid-template-columns:minmax(0,1fr) 210px;gap:10px}.sidebar{grid-template-rows:50px minmax(175px,1fr) minmax(168px,1fr);gap:6px}.brand>span:last-child{display:none}.highscore{padding:4px 6px;gap:6px}.highscore span{font-size:8px}.highscore strong{font-size:18px}.header-controls button{font-size:9px;min-height:40px;padding:5px}.contest{font-size:20px;gap:8px;letter-spacing:1px}.versus{font-size:13px}.round-heading h1{font-size:15px}#subtitle{font-size:10px}.score-card,.room-card{padding:7px}.player-card{padding:4px 7px;gap:7px}.player-card img{height:40px;width:35px}.player-card strong{font-size:13px}.player-card small{font-size:8px}.result-title{flex-wrap:wrap}.result-title h2{font-size:11px}.rank-badge{height:28px;width:28px;font-size:20px}.result-grid strong{font-size:14px}.result-grid{gap:6px}.result-grid small,#tracking-detail{font-size:8px}.result-actions{margin:7px 0;gap:5px}.result-actions button{font-size:9px;min-height:40px}.room-title strong{font-size:16px}.panel-label{font-size:8px}.room-actions button{font-size:8px;min-height:40px}.ai-note{gap:4px;font-size:8px}.ai-note small{font-size:7px}.game-shell{grid-template-rows:28px 36px minmax(0,1fr) 42px}.camera-bar{font-size:8px;padding:4px 7px}.window-controls{display:none}.arcade-hud{gap:7px;font-size:8px}.shield-hud{gap:5px}#shields{gap:3px}#shields i{width:8px;height:11px}.lock-hud{flex-direction:column;gap:3px;align-items:stretch}.lock-meter{flex:auto;height:7px}#live-points{font-size:9px}.camera-osd{font-size:7px;left:12px;right:12px;gap:6px}.status-bar{padding-inline:7px}#status{font-size:8px;letter-spacing:0}.timer{font-size:20px}.start-avatar{height:45px}.start-panel h2{font-size:14px}.start-panel p{font-size:9px}.start-panel button{min-height:44px;font-size:12px;padding:8px}.insert-coin{font-size:8px;letter-spacing:1px}.demo-badge{font-size:6px;bottom:8px;right:10px}footer{font-size:6px;letter-spacing:0}}
@media(max-width:500px){main{grid-template-rows:40px 30px minmax(0,1fr) 10px}.play-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 240px;gap:10px}.sidebar{grid-template-columns:1fr 1fr;grid-template-rows:40px minmax(0,1fr);gap:6px}.player-card{grid-column:1/-1}.player-card img{height:32px}.score-card,.room-card{padding:6px}.room-card{gap:4px}.players{gap:3px}.player-row{min-height:22px;gap:4px}.player-row img{height:21px;width:19px}.peer-name,.peer-score{font-size:9px!important}.ai-note small{display:none}.ai-note{font-size:7px;padding-top:4px}.room-actions{gap:4px}.room-actions button{padding:5px 2px;font-size:7px;min-height:36px}.result-grid strong{font-size:12px}.result-grid{margin:7px 0}.result-title>span{font-size:12px}.rank-title{gap:5px}.result-title h2{font-size:9px}#score-breakdown,#tracking-detail{font-size:7px}.result-actions button{font-size:8px;min-height:36px}.track-toggle{font-size:8px}.track-toggle input{width:16px;height:16px}.contest{font-size:16px}.versus{font-size:11px}.round-heading h1{font-size:12px}#subtitle{font-size:8px}.highscore span{display:none}#change-player{font-size:8px}.start-avatar{display:none}.start-panel h2{font-size:14px;margin:6px}.start-panel p{margin-bottom:8px}.insert-coin{margin-top:0}.start-panel button{min-height:40px;font-size:11px}dialog h2{font-size:22px}.character-choice img{height:80px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.game-shell[data-effect]::before{opacity:.5}.game-shell[data-reaction=win]{border-color:var(--ai)}.game-shell[data-reaction=loss]{border-color:var(--pink)}}
/* Keep the complete run summary and four-player table in the viewport. */
.sidebar{grid-template-rows:60px minmax(250px,1.25fr) minmax(210px,1fr)}
.room-card{padding:10px;gap:6px}.room-card.multiplayer .ai-note{display:none}
.players{gap:3px}.player-row{min-height:23px}.player-row img{height:23px;width:22px}
#room-status{font-size:9px;min-height:12px}.room-actions button{min-height:40px}
@media(max-height:700px){
 .sidebar{grid-template-rows:54px minmax(205px,1.15fr) minmax(185px,1fr);gap:7px}
 .rank-badge{width:30px;height:32px;font-size:22px}.result-title h2{font-size:11px}
 .result-grid{margin:7px 0;gap:7px}.result-grid strong{font-size:15px}.result-grid small{font-size:8px}
 #score-breakdown{padding-top:5px;font-size:8px}#tracking-detail{margin-top:4px;font-size:8px}
 .result-actions{margin:7px 0 5px}.result-actions button{min-height:40px}
 .track-toggle{min-height:20px;font-size:9px}.track-toggle input{height:17px;width:17px}
 .room-card{padding:8px;gap:4px}.room-title strong{font-size:17px}.room-actions button{min-height:36px}
}
@media(max-width:500px){
 .sidebar{grid-template-rows:40px minmax(0,1fr);grid-template-columns:1fr 1fr;gap:6px}
 .room-card{padding:6px;gap:4px}.room-actions button{min-height:36px}.player-row{min-height:21px}
 .player-row img{height:21px;width:19px}.rank-badge{width:25px;height:27px;font-size:19px}
 .result-grid{margin:6px 0;gap:5px}.result-grid strong{font-size:12px}
 .result-actions{margin:6px 0 4px}.result-actions button{min-height:34px}
 .track-toggle{min-height:18px}.track-toggle input{height:16px;width:16px}
}
.player-row.self{background:#25252580;padding-left:4px;box-shadow:inset 2px 0 var(--human)}
@media(max-height:700px){
 .room-card{padding:6px}.player-row{min-height:20px}.player-row img{height:20px;width:19px}
 .result-grid{margin:5px 0}.result-actions{margin:6px 0 4px}.result-actions button{min-height:36px}
 .track-toggle{min-height:18px}.track-toggle input{height:16px;width:16px}
 dialog h2{margin:8px 0}.character-choice img{height:70px}
 dialog input:not([type]){height:44px}dialog .mode-actions{margin:12px 0 10px}dialog button:not(.character-choice){min-height:44px}
}

/* Use the reticle as the actual cursor, including buttons and open dialogs. */
html,html *{cursor:var(--aim-cursor,none) !important}

/* Keep replay points in the video window, clear of the tracked action. */
.replay-score{position:absolute;z-index:5;top:38px;right:14px;max-width:calc(100% - 28px);display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding:7px 10px;border:2px solid var(--ai);background:#0e0e0ee8;box-shadow:3px 3px #0008;color:var(--ai);pointer-events:none}
.replay-score strong{font-size:20px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
#replay-delta{max-width:100%;font-size:10px;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.replay-score[data-kind=loss]{color:var(--pink);border-color:var(--pink);background:#2b0d1be8}
.replay-score[data-kind=neutral]{color:var(--human);border-color:var(--human)}
.game-shell[data-replaying] .arcade-toast{display:none}
@media(max-width:700px){.replay-score{top:30px;right:10px;padding:5px 7px;gap:3px}.replay-score strong{font-size:16px}#replay-delta{font-size:8px}}
.game-shell[data-replaying][data-effect=loss]{animation:cabinet-shake .4s ease-out}
.game-shell[data-replaying][data-effect=reward]{animation:cabinet-win .65s ease-out}
.game-shell[data-replaying][data-effect=reward] .pixel-burst i{animation:pixel-reward .8s ease-out forwards}

.coin-wallet{display:flex;align-items:center;gap:7px;padding:8px 10px;border:2px solid #ffe000;background:#ffe000;box-shadow:3px 3px #000;color:#ffe000;font:700 16px 'Courier New',monospace}
.coin-wallet>span{color:#ffe000;text-shadow:1px 1px #ffe000}.coin-hud{display:flex;align-items:center;gap:5px;color:#ffe000;white-space:nowrap;font-variant-numeric:tabular-nums}
.game-shell[data-effect=coin]::before{border-color:#ffe000;animation:bezel-reward .45s ease-out}
.arcade-toast[data-kind=coin]{color:#ffe000;border-color:#ffe000;background:#ffe000ee}
@media(max-width:700px){.coin-wallet{padding:5px 6px;font-size:12px}.coin-hud{gap:2px}.arcade-hud{gap:5px}}
@media(max-width:500px){.coin-wallet{padding:5px;font-size:11px}.header-controls{gap:5px}.coin-hud{font-size:8px}}

/* Focus the cabinet on the level: coins, points, and three lives. */
main{grid-template-rows:52px 40px minmax(0,1fr);gap:12px}
.arena-heading{justify-content:flex-end}.round-heading h1{font-size:20px}
.game-shell{grid-template-rows:28px 54px minmax(0,1fr) 44px}
.camera-bar{justify-content:flex-start}#round-label{margin-left:0;letter-spacing:2px}
.arcade-hud{gap:16px;padding:8px 16px;font-size:11px}
.shield-hud{gap:10px}#shields{gap:6px}#shields i{width:15px;height:20px}
.coin-hud{gap:7px;font-size:11px}#round-coins{font-size:22px}
.points-hud{display:flex;align-items:center;gap:9px;margin-left:auto;color:var(--human)}
.points-hud>span{font-size:10px}#live-points{font-size:24px;font-variant-numeric:tabular-nums}
.sidebar{display:flex;flex-direction:column;gap:12px;min-height:0}
.player-card{flex:0 0 60px}.score-card{flex:1;min-height:0;padding:20px}
.room-card.multiplayer{flex:0 1 auto;max-height:38%;min-height:140px}
#round-brief h2{font-size:30px;line-height:1.2;margin:16px 0}#round-brief p{font-size:12px;line-height:1.8}
#result>.panel-label{font-size:10px;color:var(--muted)}
#verdict{font-size:21px;line-height:1.3;margin:12px 0 22px;letter-spacing:.5px;color:var(--ai)}
#result[data-outcome=miss] #verdict{color:var(--pink)}
.result-points{display:flex;flex-direction:column;gap:6px;padding-bottom:18px;border-bottom:1px solid #393939}
.result-points>span{font-size:10px;letter-spacing:2px;color:var(--muted)}
.result-points #points{font-size:36px;font-weight:bold;line-height:1.15;color:var(--human);font-variant-numeric:tabular-nums;white-space:nowrap}
.result-grid{margin:18px 0;gap:18px}.result-grid>div{gap:6px}.result-grid span{font-size:10px;letter-spacing:1px;color:var(--muted)}
.result-grid strong{font-size:28px}#result-coins{color:var(--human)}#result-lives{color:var(--ai)}
#result[data-outcome=miss] #result-lives{color:var(--pink)}
#level-detail{font-size:11px;line-height:1.5;margin:0 0 16px}
.result-total{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid #393939;color:var(--muted);font-size:10px}
.result-total #total{font-size:17px;color:var(--text)}
.result-actions{display:flex;flex-direction:column;gap:10px;margin:20px 0 12px}.result-actions button{font-size:12px;min-height:44px;flex:none}
.track-toggle{font-size:10px;color:var(--muted)}
@media(max-height:780px){.score-card{padding:14px}#verdict{font-size:19px;margin:8px 0 14px}.result-points{gap:4px;padding-bottom:12px}.result-points #points{font-size:30px}.result-grid{margin:12px 0;gap:12px}.result-grid strong{font-size:25px}#level-detail{margin-bottom:10px}.result-total{padding-top:9px}.result-actions{gap:8px;margin:14px 0 10px}.result-actions button{min-height:40px;font-size:11px}.room-card.multiplayer{min-height:130px;max-height:32%}}
@media(max-width:700px){main{grid-template-rows:42px 34px minmax(0,1fr);gap:8px}.game-shell{grid-template-rows:26px 46px minmax(0,1fr) 40px}.arcade-hud{gap:8px;padding:6px 9px;font-size:9px}.coin-hud{font-size:9px;gap:4px}#round-coins{font-size:18px}#shields i{width:11px;height:16px}.points-hud{gap:5px}.points-hud>span{font-size:8px}#live-points{font-size:20px}.score-card{padding:10px}.sidebar{gap:8px}.player-card{flex-basis:50px}.round-heading h1{font-size:16px}#verdict{font-size:16px}.result-points #points{font-size:26px}.result-grid{gap:10px}.result-grid strong{font-size:23px}.result-actions button{font-size:10px}}
@media(max-width:500px){.play-layout{grid-template-rows:minmax(120px,1fr) 320px}.sidebar{gap:7px}.player-card{flex-basis:40px}.score-card{padding:10px 14px}.room-card.multiplayer{min-height:120px;max-height:none}.sidebar:has(.room-card.multiplayer){overflow:auto}#verdict{margin:5px 0 10px;font-size:16px}.result-points{padding-bottom:8px;gap:3px}.result-points #points{font-size:28px}.result-grid{margin:10px 0}.result-grid strong{font-size:22px}#level-detail,.result-total{display:none}.result-actions{flex-direction:row;margin:12px 0 8px;gap:8px}.result-actions button{flex:1;font-size:10px;min-height:40px}.track-toggle{font-size:9px}.round-heading h1{font-size:14px}}

/* Green phosphor, neon accents, and hard pixel edges. */
:root{--bg:#090909;--panel:#151515;--text:#ffffff;--muted:#bebebe;--human:#ffe000;--ai:#ffe000;--pink:#ff73bc;--neon-rainbow:linear-gradient(90deg,#ffe000 0 40%,#ffe000 40% 52%,#7d9dff 52% 64%,#c28aff 64% 76%,#ff73bc 76% 88%,#ffe000 88% 100%)}
body{background:repeating-linear-gradient(0deg,#ffe00005 0 1px,transparent 1px 4px),radial-gradient(ellipse at 30% 0,#3a3a3a44,transparent 65%),var(--bg)}
.brand-icon{border-color:#ffe000;background:#1c1c1c;box-shadow:3px 3px #000,0 0 16px #ffe00018;color:#ffe000}
.brand small{color:#ff73bc}.brand-icon span{color:#ffe000}
button{border-color:#ffe000;background:#ffe000;color:#121212;box-shadow:0 4px #3e3e3e,3px 6px #000;border-radius:0}
button:hover{box-shadow:0 4px #3e3e3e,3px 6px #000,0 0 18px #ffe0002b}
.secondary,.sound-button{background:#202020;color:#ffe000;border-color:#ffe000;box-shadow:0 4px #151515,3px 6px #000}
#next,#host-start{background:#ffe000;border-color:#ffffff;color:#121212}
#replay{color:#ffe000;border-color:#ffe000;background:#1d1d1d}
.game-shell{border-color:#ffe000;box-shadow:0 0 0 3px #222222,0 0 0 5px #363636,6px 8px #000,0 0 28px #ffe0000a}
.game-shell::after{content:'';position:absolute;z-index:7;bottom:0;left:0;right:0;height:4px;pointer-events:none}
.camera-bar{background:linear-gradient(90deg,#2b2b2b,#181818);border-bottom-color:#424242}#round-label{color:#ffe000}
.arcade-hud{background:#121212;border-bottom-color:#333333}.points-hud{color:#ffe000}
#shields i{background:#ffe000;filter:drop-shadow(0 0 3px #ffe00038)}#shields i:nth-child(2){background:#ffe000}#shields i:nth-child(3){background:#ffe000}#shields i.spent{background:#2c2c2c;filter:none}
.time-track{background:#222222}#time-fill{background:var(--neon-rainbow)}
.player-card,.score-card,.room-card{border-color:#444444;background:#151515;box-shadow:3px 3px #000,inset 0 1px #ffe00008;border-radius:0}
.player-card{border-left:3px solid #ffe000}.player-card img,.player-row img{image-rendering:pixelated}
.score-card{border-top:3px solid #ffe000}.room-card{border-top:3px solid #8bafff}.panel-label{color:#ffe000}
.result-points{border-color:#393939}.result-grid>div:first-child strong{color:#ffe000}.result-grid>div:last-child strong{color:#ffe000}
.result-total{border-color:#393939}.start-panel{background:#101010d9}.start-panel h2{text-shadow:3px 3px #000,0 0 24px #ffe0001a}
dialog{background:#151515;border-color:#ffe000;box-shadow:8px 8px #000b,0 0 40px #ffe0000d}dialog h2{color:#ffffff}
.character-choice{background:#1c1c1c;border-color:#444444}.character-choice.selected{border-color:#ffe000;background:#282828;box-shadow:3px 3px #000,0 0 18px #ffe00014}
.room-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:1px;color:#c1c1c1}.room-meta #room-phase{color:#bda0ff}
.room-title strong{padding:3px 6px;border:1px solid #ffe000;color:#ffe000;letter-spacing:2px;background:#101010}
.room-card.multiplayer{flex:none;max-height:none;min-height:0;padding:12px;gap:9px}
.room-card.multiplayer .players{flex:none;gap:7px}
.room-card.multiplayer .player-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;grid-template-rows:17px auto;column-gap:7px;row-gap:3px;min-height:39px;padding:5px;border-bottom:1px solid #313131}
.room-card.multiplayer .player-row img{grid-column:1;grid-row:1/3;width:23px;height:28px}
.room-card.multiplayer .peer-name{grid-column:2;grid-row:1;font-size:11px}
.room-card.multiplayer .peer-score{grid-column:3;grid-row:1;color:#ffe000;font-size:13px}
.room-card.multiplayer .peer-status{grid-column:2/4;grid-row:2;font-size:8px;color:#c1c1c1}
.room-card.multiplayer .peer-status[data-state=ready],.room-card.multiplayer .peer-status[data-state=complete]{color:#ffe000}
.room-card.multiplayer .peer-status[data-state=failed]{color:#ff73bc}
.room-card.multiplayer .peer-detail{grid-column:2/4;grid-row:3;font-size:8px;line-height:1.5;color:#d2d2d2}
.player-row.self{background:#ffe0000d;box-shadow:inset 2px 0 #ffe000}
.sidebar:has(.room-card.multiplayer){overflow-y:auto;scrollbar-color:#444444 #101010;padding-right:4px}
.sidebar:has(.room-card.multiplayer) .score-card{flex:none;padding:14px}
.sidebar:has(.room-card.multiplayer) #verdict{font-size:17px;margin:8px 0 12px}
.sidebar:has(.room-card.multiplayer) .result-points{padding-bottom:10px}
.sidebar:has(.room-card.multiplayer) .result-points #points{font-size:27px}
.sidebar:has(.room-card.multiplayer) .result-grid{margin:12px 0}.sidebar:has(.room-card.multiplayer) .result-grid strong{font-size:23px}
.sidebar:has(.room-card.multiplayer) .result-actions{flex-direction:row;margin:14px 0 10px;gap:8px}
.sidebar:has(.room-card.multiplayer) .result-actions button{flex:1;font-size:10px}
.sidebar:has(.room-card.multiplayer) .result-total,.sidebar:has(.room-card.multiplayer) #level-detail{display:none}
@media(max-width:700px){.room-card.multiplayer{padding:8px}.room-meta{font-size:8px}.room-card.multiplayer .peer-detail{font-size:7px}.sidebar:has(.room-card.multiplayer) .result-actions button{font-size:8px}}

/* Player orange vs AI green: distance stays readable above the footage. */
.arena-heading{justify-content:space-between}.contest{font-size:19px;letter-spacing:1px;gap:10px;min-width:0}
.contest .versus{font-size:12px;padding:4px}.contest .human{color:#ffe000}.contest .machine{color:#ffe000}
.ai-gap-readout{display:flex;flex-direction:column;gap:3px;padding-left:14px;margin-left:4px;border-left:1px solid #383838;letter-spacing:0}
.ai-gap-readout>span{font-size:8px;letter-spacing:1px;color:var(--muted)}
#ai-gap{font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
#ai-gap[data-state=close]{color:var(--ai)}#ai-gap[data-state=far]{color:#ffe000}
.ai-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px;border-top:1px solid #393939;margin:12px 0}
.ai-comparison>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.ai-comparison span{font-size:8px;letter-spacing:.7px;color:var(--muted)}
.ai-comparison strong{font-size:22px;font-variant-numeric:tabular-nums}#result-match{color:var(--ai)}
#replay-gap{font-size:9px;color:#ffe000;white-space:nowrap}
.sidebar:has(.room-card.multiplayer) .ai-comparison{padding-top:9px;margin:9px 0}.sidebar:has(.room-card.multiplayer) .ai-comparison strong{font-size:18px}
@media(max-width:700px){.contest{font-size:14px;gap:6px}.contest .versus{font-size:10px;padding:3px}.ai-gap-readout{padding-left:8px;margin-left:0}.ai-gap-readout>span{font-size:7px}#ai-gap{font-size:15px}.ai-comparison{gap:7px;margin:9px 0;padding-top:9px}.ai-comparison span{font-size:7px}.ai-comparison strong{font-size:18px}#replay-gap{font-size:8px}.round-heading h1{font-size:13px}}
@media(max-width:500px){.contest{font-size:12px;gap:5px}.round-heading h1{font-size:10px}#subtitle{display:none}.ai-gap-readout{padding-left:6px}#ai-gap{font-size:13px}.ai-gap-readout>span{font-size:6px}#result>.panel-label{display:none}.result-grid{margin:7px 0}.result-grid strong{font-size:20px}.ai-comparison{padding-top:7px;margin:7px 0}.ai-comparison strong{font-size:17px}.result-actions{margin:10px 0 7px}.result-actions button{min-height:36px}}

/* Hearts are persistent across levels; empty hearts stay visibly empty. */
#shields i{display:grid;place-items:center;width:24px;height:26px;background:none!important;clip-path:none;font-style:normal;font-size:27px;line-height:1;color:#ff73a6;filter:drop-shadow(0 0 4px #ff73a633)}
#shields i::before{content:'♥'}
#shields i.spent{background:none;color:#3a3a3a;filter:none}
#shields i.spent::before{content:'♡'}
@media(max-width:700px){#shields{gap:3px}#shields i{width:18px;height:22px;font-size:22px}.shield-hud{gap:6px}}

/* Pixel-cut corners and a moving neon rail beneath the cabinet. */
:root{--neon-flow:repeating-linear-gradient(90deg,#ffe000 0 108px,#ffe000 108px 144px,#7d9dff 144px 188px,#c28aff 188px 244px,#ff73bc 244px 272px,#ffe000 272px 312px,#ffe000 312px 384px)}
body{background:repeating-linear-gradient(0deg,#ffe00005 0 1px,transparent 1px 4px),linear-gradient(#ffe00004 1px,transparent 1px),linear-gradient(90deg,#ffe00004 1px,transparent 1px),radial-gradient(ellipse at 30% 0,#3a3a3a44,transparent 65%),var(--bg);background-size:auto,24px 24px,24px 24px,auto,auto}
.game-shell,.player-card,.score-card,.room-card,dialog{border-radius:0;clip-path:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px))}
button,input,.player-card img,.player-row img,.rank-badge{border-radius:0!important}
button{letter-spacing:1.2px;transition:filter .1s,transform .1s}
.brand-icon{box-shadow:3px 0 #0b0b0b,0 3px #0b0b0b,3px 3px #ffe0002b}
h1,h2,.brand{text-shadow:2px 2px #040404;font-weight:900}
.player-card,.score-card,.room-card{box-shadow:inset 0 -3px #090909,inset 0 2px #ffe0000a}
.game-shell::after,main::after{background:var(--neon-flow);background-size:384px 100%;animation:neon-drift-right 4s steps(64,end) infinite;box-shadow:0 0 8px #ffe00044}
main::after{content:'';position:fixed;left:22px;right:22px;bottom:4px;height:3px;z-index:8;pointer-events:none}
.time-track{bottom:7px;height:3px}#time-fill{background:#ffe000;box-shadow:0 0 5px #ffe00033}
.game-shell.urgent #time-fill{background:var(--pink)}
@keyframes neon-drift-right{from{background-position:0 0}to{background-position:384px 0}}
/* Two groups of three styles keep all six choices easy to compare. */
#player-dialog{width:min(580px,calc(100vw - 30px))}
.character-picker{display:flex;flex-direction:column;gap:14px}
.avatar-group{min-width:0}.avatar-group h3{margin:0 0 7px;font-size:9px;letter-spacing:2px;color:#ffe000;font-weight:bold}
.avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.character-choice{position:relative;min-width:0;gap:5px;padding:8px 5px;border:2px solid #444444;box-shadow:3px 3px #090909;background:repeating-linear-gradient(0deg,#ffe00006 0 1px,transparent 1px 4px),#1c1c1c}
.character-choice img{width:100%;height:86px;image-rendering:pixelated;filter:drop-shadow(3px 3px #0004)}
.character-choice strong{font-size:12px;letter-spacing:1px}.character-choice span{font-size:8px;line-height:1.3;text-align:center}
.character-choice.selected{border-color:#ffe000;box-shadow:3px 3px #000,inset 0 -3px #ffe00029;background-color:#282828}
.character-choice.selected::after{content:'✓';position:absolute;right:5px;top:4px;color:#ffe000;font-size:11px}
.character-choice[data-avatar=nova]{border-top-color:#bb8aff}.character-choice[data-avatar=mira]{border-top-color:#ffe000}.character-choice[data-avatar=poppy]{border-top-color:#ffa0c5}
.character-choice[data-avatar=finn]{border-top-color:#ffe000}.character-choice[data-avatar=leo]{border-top-color:#ff9d75}.character-choice[data-avatar=kai]{border-top-color:#93cfff}
.start-avatar,.player-card img,.player-row img{image-rendering:pixelated}
@media(max-height:780px){.character-picker{gap:10px}.character-choice img{height:66px}.character-choice{padding:5px;gap:3px}.avatar-group h3{margin-bottom:5px}#player-dialog{padding:18px}.character-label{margin:12px 0 8px}}
@media(max-width:500px){main::after{left:8px;right:8px}.avatar-grid{gap:7px}.character-choice img{height:64px}.character-choice strong{font-size:11px}.character-choice span{font-size:7px}.character-picker{gap:10px}#player-dialog{padding:16px}.avatar-group h3{font-size:8px}}
@media(prefers-reduced-motion:reduce){.game-shell::after,main::after{animation:none}}

/* Both rails move right, with uneven spacing and independent timing. */
.camera-bar{position:relative}
.camera-bar::after,main::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;z-index:8;pointer-events:none;background:var(--neon-flow);background-size:384px 100%;box-shadow:0 0 8px #ffe00044;animation:neon-drift-asymmetric 6.7s steps(83,end) infinite;animation-delay:-2.3s}
main::before{position:fixed;top:4px;left:22px;right:22px;animation-duration:8.3s;animation-delay:-3.7s}
.game-shell::after{animation:neon-drift-asymmetric 4.9s steps(71,end) infinite;animation-delay:-.8s}
main::after{animation:neon-drift-asymmetric 5.7s steps(67,end) infinite;animation-delay:-1.6s}
@keyframes neon-drift-asymmetric{0%{background-position:0 0}19%{background-position:36px 0}46%{background-position:182px 0}73%{background-position:250px 0}100%{background-position:384px 0}}
@media(max-width:500px){main::before{left:8px;right:8px}}
@media(prefers-reduced-motion:reduce){.camera-bar::after,main::before,.game-shell::after,main::after{animation:none}}

/* Track match reads as one pixel-segmented percentage bar. */
.ai-comparison{display:flex;flex-direction:column;gap:8px}
.ai-comparison>.match-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.ai-comparison>.match-meter{display:block;height:16px;padding:2px;border:1px solid #ffe00066;background:#0c0c0c;box-shadow:inset 2px 2px #0005}
#match-fill{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#ffe000 0 8px,#272727 8px 10px);box-shadow:0 0 8px #ffe0002a}
@media(max-width:500px){.ai-comparison{gap:5px}.ai-comparison>.match-meter{height:13px}}

#level-source{margin-left:auto;color:var(--muted);font-size:9px;letter-spacing:1px;white-space:nowrap}

.search-cue{position:absolute;z-index:5;top:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100% - 28px);padding:9px 12px;border:2px solid #ffe000;background:#101010eb;box-shadow:3px 3px #0008;pointer-events:none;color:#ffffff;font-size:10px;font-weight:bold;text-align:center}
.search-cue strong{font-size:24px;color:#ffe000;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){.search-cue{top:12px;gap:8px;padding:6px 9px;font-size:8px}.search-cue strong{font-size:19px}}

.avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.character-choice{min-width:0;padding:12px 6px}.character-choice img{image-rendering:pixelated}.power-controls{display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap;background:#0d0d0d;border-top:1px solid #292929}.power-controls button{font-size:10px;padding:8px}#inventory{font-size:10px;color:#cbcbcb}.shop-items{display:grid;gap:12px;margin:20px 0}#shop-dialog,#scores-dialog{max-width:540px;width:90%;background:#0f0f0f;color:#e6e6e6;border:2px solid #ffe000;padding:28px}#scores-list>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #282828;padding:10px}#scores-list img{width:32px;image-rendering:pixelated}#scores-list strong{margin-left:auto}@media(max-width:600px){.avatar-grid{grid-template-columns:repeat(3,1fr)}.header-controls{flex-wrap:wrap}}

/* The power-up row has its own space; the video keeps the flexible row. */
.game-shell{grid-template-rows:32px 42px minmax(0,1fr) auto 48px}
main{grid-template-rows:minmax(52px,auto) 48px minmax(0,1fr) 14px}
.header-controls{flex-wrap:wrap;justify-content:flex-end;gap:8px}
.header-controls button{font-size:10px;padding:8px;min-height:40px}
.highscore{gap:6px;padding:5px 8px}.highscore strong{font-size:20px}
#shop-dialog p,#scores-dialog p{line-height:1.7;margin-top:14px;font-size:12px}
#release-mouse{color:#151515;background:#ffe000;min-height:36px}
@media(max-width:700px){.game-shell{grid-template-rows:28px 36px minmax(0,1fr) auto 42px}main{grid-template-rows:auto 36px minmax(0,1fr) 10px}.power-controls{padding:6px;gap:6px}.power-controls button{padding:5px;font-size:9px;min-height:32px}#inventory{font-size:8px}.header-controls{gap:5px}.highscore span{display:none}.brand>span:last-child{display:none}}

.track-color-choice{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:11px;color:#ffe000}.track-color-choice input{width:54px;height:38px;padding:2px;border:2px solid #ffe000;background:#151515;cursor:pointer}.track-color-choice span{font-size:9px;color:var(--muted)}.machine{color:#ff174d}.contest .machine{text-shadow:0 0 8px #ff174d77,2px 2px #000}.contest .human{color:var(--human)}

.track-color-choice select{border:2px solid #ffe000;background:#151515;color:var(--text);font:700 12px monospace;padding:9px}.debug-choice{display:flex;align-items:center;gap:10px;font-size:11px;color:#ffe000;margin-top:16px}.debug-choice input{width:20px;height:20px;accent-color:#ffe000}

.color-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%}.color-swatches button{background:var(--swatch);color:#0a0a0a;min-height:42px;padding:7px;font-size:10px;border-color:var(--swatch)}.color-swatches button[aria-pressed=true]{outline:3px solid white;outline-offset:2px}.track-color-choice{flex-wrap:wrap}.difficulty-choice{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:11px}.difficulty-choice select{background:#151515;color:#ffffff;padding:9px;border:2px solid #ffe000;font:12px monospace}.how-to{max-width:500px;margin:8px 0 14px;color:#ffe000;font-size:10px;line-height:1.6}.how-to p{font-size:11px;margin-top:6px!important}.how-to kbd{color:#ffe000;border:1px solid #ffe000;padding:1px 5px}.start-panel{overflow:auto}.media-well{position:relative;padding-left:48px}.distance-meter{position:absolute;left:5px;top:10%;height:80%;width:38px;z-index:6;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:7px;pointer-events:none;color:#e9e9e9}.distance-rail{flex:1;width:13px;border:2px solid #3a3a3a;display:flex;align-items:flex-end;background:#121212}.distance-rail i{display:block;width:100%;height:0;background:linear-gradient(0deg,#ffe000,#ffe000,#ff174d);transition:height .1s}.distance-meter strong{font-size:8px;white-space:nowrap}@media(max-height:650px){.start-avatar{display:none}.how-to{margin:3px 0 8px}.how-to p{font-size:9px}.start-panel h2{font-size:14px}.start-panel>p{margin-bottom:4px}}

.how-to{width:100%;max-width:460px;text-align:left;margin:12px 0 18px;border-top:1px solid #323232;border-bottom:1px solid #323232;padding:12px 4px}.how-to ol{list-style:none;counter-reset:guide;margin:0;padding:0;display:grid;gap:12px}.how-to li{position:relative;padding-left:34px;counter-increment:guide}.how-to li::before{content:counter(guide);position:absolute;left:0;top:1px;width:23px;height:23px;display:grid;place-items:center;background:#222222;border:1px solid #ffe000;color:#ffe000;font-weight:bold}.how-to li b,.how-to li span{display:block}.how-to li b{font-size:12px;color:#ffffff;margin-bottom:2px}.how-to li span{font-size:10px;color:#bdbdbd;line-height:1.5}.how-to #guide-footer{font-size:10px;margin:12px 0 0!important;color:#ffe000}.item-guide{display:grid;gap:8px;margin:12px 0}.item-guide span{display:block;font-size:11px;color:#cfcfcf}.item-guide b{display:inline-block;min-width:120px;color:#ffe000}.start-panel>h2{margin-bottom:6px}.start-panel>p{max-width:400px;line-height:1.5;margin-bottom:0}@media(max-height:700px){.how-to{padding:8px 4px;margin:8px 0 12px}.how-to ol{gap:7px}.how-to li b{font-size:11px}.how-to li span{font-size:9px}.start-avatar{display:none}}

/* Keep native modal hit testing independent of the decorative pixel clip. */
dialog{clip-path:none;isolation:isolate}

.shop-label{color:#ffe000;font-size:10px;white-space:nowrap}.power-controls{border-top:2px solid #ffe000;background:#181818;gap:8px}.power-controls button{min-height:34px;flex:1;white-space:nowrap}.shortcut-strip{display:flex;gap:12px;flex-wrap:wrap;padding:7px 10px;background:#0c0c0c;border-top:1px solid #2d2d2d;color:#c9c9c9;font-size:9px;line-height:1.7}.shortcut-strip kbd{color:#ffffff;font-weight:bold}.game-shell{grid-template-rows:32px 42px minmax(0,1fr) auto auto 48px}@media(max-width:700px){.game-shell{grid-template-rows:28px 36px minmax(0,1fr) auto auto 42px}.power-controls{gap:5px}.power-controls button{font-size:8px;min-height:32px;padding:5px}.shortcut-strip{gap:5px 10px;font-size:8px;padding:5px}.shop-label{width:100%}}

.story-card{flex:none;display:flex;gap:12px;align-items:center;padding:12px;background:#181818;border:2px solid #ffe000;box-shadow:3px 3px #000}.story-copy{flex:1;min-width:0}.story-copy>strong{display:block;font-size:11px;color:#ffe000}.story-copy>span{display:block;font-size:8px;color:#ffe000;margin:4px 0}.story-copy p{font-size:10px;line-height:1.4;color:#ffffff}.story-copy small{display:block;font-size:8px;line-height:1.4;color:#bbbbbb;margin-top:5px}.story-progress{height:6px;background:#0d0d0d;margin:6px 0}.story-progress i{display:block;height:100%;background:#ffe000;transition:width .3s}.hunter-scene{position:relative;flex:none;width:54px;height:68px;display:flex;align-items:center;justify-content:center}.hunter-scene img{width:45px;height:58px;image-rendering:pixelated;position:relative;z-index:1}.story-card[data-act="0"] .hunter-scene img{transform:rotate(-5deg) translateY(3px);filter:saturate(.6)}.story-card[data-act="1"] .hunter-scene img{filter:drop-shadow(0 0 4px #ffe0005c)}.pixel-chair,.pixel-cup{display:none}.story-card[data-act="2"] .pixel-chair{display:block;position:absolute;bottom:3px;left:4px;width:43px;height:24px;border:6px solid #ffe000;border-top:0;box-shadow:-5px -15px #ffe000}.story-card[data-act="2"] .hunter-scene img{transform:translateY(4px) rotate(6deg)}.story-card[data-act="2"] .pixel-cup{display:block;position:absolute;right:-2px;bottom:14px;z-index:2;font-size:18px}.story-modal{max-width:560px;width:calc(100vw - 32px);padding:28px;border:3px solid #ffe000;background:#151515}.story-modal h2{font-size:clamp(22px,4vw,30px);line-height:1.2;color:#ffe000}.story-modal p{font-size:13px;line-height:1.6;margin:10px 0;color:#eaeaea}.story-modal small{display:block;font-size:9px;line-height:1.5;color:#b9b9b9;margin-top:16px}.intro-scene{display:flex;align-items:center;justify-content:center;gap:35px;height:96px;border-bottom:1px solid #3a3a3a;margin:8px 0 16px}.intro-scene img{height:82px;image-rendering:pixelated}.pixel-house{font-size:70px;color:#ffe000;line-height:1;text-shadow:5px 5px #0b0b0b}.pixel-mouse{font-size:27px;color:#ffe000}.story-tagline{color:#ffe000!important;font-weight:bold}.intro-actions{display:flex;gap:10px;margin-top:18px}.intro-actions button{flex:1;min-height:48px}.story-ending{border:2px solid #ffe000;padding:12px;margin-top:12px;background:#1e1e1e}.story-ending strong{font-size:13px;color:#ffe000}.story-ending p{font-size:11px;line-height:1.5;margin:8px 0}.story-ending small{font-size:10px;display:block;color:#ffe000}.story-ending button{width:100%;margin-top:12px}.story-ai-note{display:block;font-size:8px;line-height:1.4;color:#b7b7b7;margin-bottom:8px}.sidebar{overflow-y:auto}.story-copy #story-notice{color:#ffe000;font-size:9px;padding-top:5px;border-top:1px solid #3b3b3b}@media(max-height:750px){.story-card{padding:8px}.story-copy small#story-hint{display:none}.hunter-scene{height:54px}.hunter-scene img{height:46px}.story-modal{padding:18px}.intro-scene{height:66px}.intro-scene img{height:60px}}@media(max-width:500px){.story-card{grid-column:1/-1}.story-copy #story-hint,.story-copy #story-catches{display:none}.story-card{padding:7px}.story-copy p{font-size:9px}.sidebar{display:flex;flex-direction:column}.story-modal p{font-size:12px}.intro-actions{flex-direction:column}}

.story-copy p{font-size:11px}.story-copy small{font-size:10px}.story-copy>strong{font-size:12px}.story-copy>span{font-size:9px}.story-modal p{font-size:14px}@media(prefers-reduced-motion:reduce){.story-progress i{transition:none}}

.shortcut-strip button{min-height:30px;padding:3px 8px;font-size:9px;box-shadow:none;background:#1f1f1f;border:1px solid #ffe000;color:#ffe000}.shortcut-strip{align-items:center}@media(pointer:coarse){.power-controls button{min-height:48px}.shortcut-strip button{min-height:44px;padding:8px}.color-swatches button{min-height:48px}}

.level-story{font-style:italic;color:#ffe000!important;max-width:440px;font-size:11px!important;margin:8px 0!important;line-height:1.5}.investment-modal{max-width:680px}.investment-items{display:grid;gap:12px;margin:18px 0}.investment-items section{border:1px solid #444444;background:#1d1d1d;padding:12px}.investment-items strong{color:#ffe000;font-size:13px}.investment-items p{font-size:12px;margin:6px 0 0;line-height:1.5}.summary-modal{max-width:760px}.summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}.summary-grid>div{padding:12px 8px;background:#1e1e1e;border:1px solid #3e3e3e}.summary-grid span{display:block;font-size:9px;color:#d3d3d3;min-height:22px}.summary-grid strong{font-size:25px;color:#ffe000}.summary-table-wrap{overflow:auto}.summary-table-wrap table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.summary-table-wrap th{color:#ffe000;font-size:9px}.summary-table-wrap td,.summary-table-wrap th{padding:10px 7px;border-bottom:1px solid #333333}#summary-attempt-note,#summary-mode-note{font-size:11px;line-height:1.5;color:#cdcdcd}#summary-close{width:100%;margin-top:14px}#run-overview{width:100%;margin:8px 0}@media(max-width:600px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid strong{font-size:23px}.investment-items{gap:8px}.investment-items section{padding:10px}}

/* Illustrated story beats: one caption at a time, no reading wall. */
#intro-dialog{max-width:620px;text-align:center}#intro-dialog h2{font-size:clamp(20px,4vw,28px);margin:12px 0}.intro-scene{position:relative;display:block;height:auto;aspect-ratio:240/112;overflow:hidden;border:2px solid #3a3a3a;margin:18px 0}.intro-scene .story-picture{display:block;width:100%;height:100%;image-rendering:pixelated}.intro-scene .scene-hunter{position:absolute;left:36%;bottom:22%;height:46%;width:auto;image-rendering:pixelated;filter:drop-shadow(4px 4px #0b0b0b)}#intro-dialog[data-step="0"] .scene-hunter{display:none}#intro-dialog[data-step="2"] .scene-hunter{left:22%}#intro-lines{font-size:clamp(16px,3vw,20px);line-height:1.5;color:#ffffff;min-height:3em;display:flex;align-items:center;justify-content:center}.story-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.story-navigation button{min-height:44px}.story-navigation span{font-size:11px;color:#bbbbbb}#intro-dialog .intro-actions{margin-top:10px}#intro-dialog #intro-fiction{font-size:8px;color:#a5a5a5}#story-tagline{font-size:11px;margin:8px 0}.investment-modal{text-align:center;max-width:780px}.investment-modal h2{margin:12px 0}#investment-lines p{font-size:16px;color:#ffe000}.investment-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.investment-items section{padding:10px;text-align:left;border:2px solid #393939;box-shadow:3px 3px #0b0b0b}.investment-items img{display:block;width:100%;aspect-ratio:240/112;image-rendering:pixelated;margin-bottom:12px}.investment-items strong{font-size:12px}.investment-items p{font-size:12px;line-height:1.5}.investment-items small{font-size:9px;color:#ffe000;margin-top:12px}#investment-footer{font-size:11px;color:#bbbbbb}.achievement-picture{display:block;width:100%;max-height:170px;image-rendering:pixelated}.summary-details{border-top:1px solid #3a3a3a;margin-top:16px;padding-top:12px}.summary-details summary{cursor:pointer;color:#ffe000;font-size:11px;min-height:36px;display:list-item;align-content:center}.story-modal [hidden]{display:none!important}@media(max-width:600px){.investment-items{grid-template-columns:1fr}.investment-items section{display:grid;grid-template-columns:90px 1fr;column-gap:12px}.investment-items img{grid-row:1/4;align-self:center;margin:0}.investment-items p{margin:4px 0}.investment-items small{margin:4px 0 0}.investment-modal{padding:16px}.intro-actions{flex-direction:row}}@media(prefers-reduced-motion:no-preference){#intro-picture{animation:story-reveal .2s ease-out}@keyframes story-reveal{from{opacity:.3}to{opacity:1}}}
.guide-symbol{display:block!important;font-size:28px!important;line-height:1.2;color:#ffe000!important;margin-bottom:8px}.coin-symbol{color:#ffe000!important}.shop-items img{display:block;width:100%;max-height:95px;image-rendering:pixelated;margin-bottom:8px}#shop-dialog details{font-size:11px;color:#cbcbcb}#shop-dialog summary{cursor:pointer;padding:10px 0;color:#ffe000}#tracking-guide li{padding:8px}#tracking-guide b{font-size:11px}#tracking-guide span:not(.guide-symbol){font-size:11px}
#tracking-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}#tracking-guide li::before{display:none}.shop-items{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-items button{min-width:0;padding:10px 6px;font-size:10px}@media(max-width:400px){#tracking-guide{gap:3px}#tracking-guide li{padding:4px}#tracking-guide b{font-size:9px}#tracking-guide span:not(.guide-symbol){font-size:10px}}

/* A quiet opening: one landscape, a short passage, one primary action. */
#intro-prologue{max-width:440px;margin:26px auto 30px;text-align:left}
#intro-prologue p{font-family:system-ui,sans-serif;font-size:16px;line-height:1.7;color:#d2d2d2;margin:0 0 15px}
#intro-prologue #prologue-role{color:#f5f5f5}
#intro-prologue #prologue-call{font-size:14px;color:#bbbbbb;margin:22px 0 0}
#intro-dialog[data-step="-1"]{padding:32px;max-width:640px;background:#131313;border-color:#373737;box-shadow:0 18px 70px #0008}
#intro-dialog[data-step="-1"] #intro-eyebrow{font-size:9px;line-height:1.7;letter-spacing:1.3px;color:#b5b5b5}
#intro-dialog[data-step="-1"] h2{max-width:470px;margin:18px auto 24px;font-size:clamp(24px,4.5vw,36px);line-height:1.25;color:#f4f4f4}
#intro-dialog[data-step="-1"] .intro-scene{border:0;margin:0;background:#151515}
#intro-dialog[data-step="-1"] .scene-hunter{display:none}
#intro-dialog[data-step="-1"] .story-navigation{display:block;margin:0}
#intro-dialog[data-step="-1"] #intro-step{display:none}
#intro-dialog[data-step="-1"] #intro-next{width:100%;min-height:50px;background:#dcdcdc;border-color:#dcdcdc;color:#161616;box-shadow:none;font-size:12px}
#intro-dialog[data-step="-1"] .intro-actions{justify-content:center;margin-top:12px}
#intro-dialog[data-step="-1"] #intro-skip{flex:0 1 auto;min-height:36px;padding:8px 16px;border:0;box-shadow:none;background:transparent;color:#bbbbbb;font-size:10px}
#intro-dialog[data-step="-1"] #intro-fiction{max-width:440px;margin:18px auto 0;line-height:1.6;color:#9a9a9a}
#intro-scene[hidden],#intro-lines[hidden]{display:none}
#debug-skip{border-color:#ffe000;color:#ffe000}
@media(max-width:600px){#intro-dialog[data-step="-1"]{padding:24px 20px}#intro-prologue{margin:20px auto 24px}#intro-prologue p{font-size:15px}}

.mice-hud{display:flex;flex-direction:column;gap:2px;color:#eaeaea}.mice-hud span{font-size:8px;line-height:1}.mice-hud strong{font-size:16px;line-height:1;color:#ffe000}
.cobwebs{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}.cobwebs[hidden]{display:none}.cobwebs img{position:absolute;left:0;top:12%;--web-size:40%;width:var(--web-size);height:auto;image-rendering:pixelated;opacity:1;transform:none}.cobwebs img:nth-child(2){left:30%;right:auto;top:0;transform:none;animation-delay:-3s;--web-size:28%}.cobwebs img:nth-child(3){top:auto;bottom:0;transform:scaleY(-1);animation-delay:-6s;--web-size:28%}
@media(prefers-reduced-motion:no-preference){.cobwebs.active img{animation:web-drift 8s ease-in-out infinite alternate}.cobwebs.active img:nth-child(2){animation-delay:-3s}.cobwebs.active img:nth-child(3){animation-delay:-6s}@keyframes web-drift{from{width:calc(var(--web-size) * .7)}to{width:var(--web-size)}}}
/* One illustrated story beat before the cobweb patrol. */
.web-story{max-width:620px;text-align:center}.web-story h2{font-size:clamp(20px,4vw,28px);margin:12px 0}.web-story .story-caption{font-size:clamp(16px,3vw,20px);line-height:1.5;color:#ffffff;min-height:3em;margin:16px 0}.web-story .intro-scene .web-story-silk{position:absolute;left:0;top:0;width:48%;height:auto;image-rendering:pixelated}.web-story .intro-scene .web-story-silk:last-child{left:auto;right:0;width:42%;transform:scaleX(-1)}
.cobwebs img:nth-child(4){left:auto;right:0;top:0;transform:scaleX(-1);animation-delay:-4.5s;--web-size:44%}
@media(prefers-reduced-motion:no-preference){.cobwebs.active img:nth-child(4){animation-delay:-4.5s}}

.result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.summary-grid>div[data-stat="mice"]{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:16px;border-color:#ffe000;background:#1f1f1f}.summary-grid>div[data-stat="mice"] span{font-size:12px;min-height:0;color:#ebebeb}.summary-grid>div[data-stat="mice"] strong{font-size:36px;color:#ffe000}

@media(max-width:700px){.mice-hud{gap:1px}.mice-hud span{font-size:7px}.mice-hud strong{font-size:12px}}

/* The partner mark belongs to the cabinet, beneath the compact score panel. */
.sidebar .score-card{flex:0 1 auto;min-height:0;padding:14px;overflow-y:auto;scrollbar-color:#444444 #101010}
#round-brief h2{font-size:26px;line-height:1.2;margin:10px 0}#round-brief p{margin:8px 0 0;line-height:1.5}
.game-partner{flex:0 0 82px;min-width:0;display:flex;justify-content:flex-end;align-items:center;margin-top:auto;padding:10px 6px 0;border-top:1px solid #363636}
.game-partner img{display:block;width:min(100%,236px);height:70px;object-fit:contain;image-rendering:pixelated;filter:invert(1) hue-rotate(180deg)}
@media(max-width:700px){.sidebar .score-card{padding:10px}.game-partner{flex-basis:64px;padding-top:6px}.game-partner img{width:min(100%,200px);height:56px}#round-brief h2{font-size:22px}}
@media(max-width:500px){.game-partner{flex-basis:54px;grid-column:1/-1}.game-partner img{width:168px;height:48px}}
