*{box-sizing:border-box}html{background:#121717;color:#dff1f2;font-family:Arial,sans-serif}body{margin:0;background:radial-gradient(ellipse at 50% 0,#2b3737,transparent 70%);min-height:100vh}main{width:min(100% - 28px,500px);margin:24px auto;padding-bottom:24px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.eyebrow{font:10px monospace;letter-spacing:2px;color:#9db3b4}h1{font-size:48px;letter-spacing:-3px;margin:5px 0 0;line-height:1}h1 em{color:#86e9ec;font-style:normal}button{font:12px monospace;color:inherit;background:none;border:1px solid #647a72;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}button:focus-visible{outline:3px solid #86e9ec;outline-offset:2px}#sound{padding:10px;font-size:10px}.machine{background:#1e2727;border:1px solid #5b7576;border-radius:16px;padding:13px;box-shadow:0 18px 50px #0008}.dash{display:flex;justify-content:space-between;padding:4px 8px 15px;font:10px monospace;letter-spacing:2px;color:#97ada5}.dash strong{display:block;color:#dcf2f3;font-size:27px;letter-spacing:1px;margin-top:5px}.dash small{font-size:9px}.screen{position:relative;background:#040707;border:5px solid #0e1212;border-radius:9px;overflow:hidden;aspect-ratio:420/560}canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.scanlines{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0 3px,#0002 3px 4px)}#overlay{position:absolute;inset:0;background:#060b0bcf;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}h2{font-size:clamp(25px,7vw,38px);line-height:1.05;letter-spacing:-1.5px;margin:20px 0 12px}p{font-size:12px;line-height:1.6;color:#aabdbe}.modes{display:flex;gap:8px;margin:10px 0 14px}.modes button{padding:9px 15px}.selected{background:#cdebec;color:#0e1a1a}.start{background:#86e9ec;color:#041f20;padding:15px 24px;font-weight:bold;letter-spacing:1px;border:0}.instruction{font:10px/1.7 monospace}#pause{position:absolute;right:8px;top:8px;background:#0c1515;padding:10px;font-size:17px}#flash{position:absolute;top:36%;left:0;right:0;text-align:center;font:bold 25px monospace;text-shadow:2px 2px #000;pointer-events:none}.controls{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:10px;margin:15px 0}.controls button{height:64px;border-radius:6px;font-size:23px;background:#2b3838;box-shadow:0 4px 0 #0b1313}.controls button.active{background:#cfeced;color:#081f20;transform:translateY(3px);box-shadow:0 1px 0 #0b1313}#gas{background:#86e9ec;color:#081f20;font-weight:bold;font-size:22px}#gas span{display:block;font-size:8px;letter-spacing:1px;margin-top:5px}.footer{display:flex;justify-content:space-between;font:8px monospace;color:#91a9aa;padding:5px 2px;letter-spacing:1px}.footer b{color:#cdeaeb}details{margin-top:20px;color:#9db2ab;font:11px monospace}details summary{cursor:pointer}details p{font-size:11px}@media(max-height:780px){main{margin:12px auto;max-width:400px}header{margin-bottom:10px}h1{font-size:37px}.screen{max-height:52vh;aspect-ratio:auto}canvas{object-fit:contain}.controls button{height:55px}h2{font-size:27px;margin:12px 0 8px}#overlay p{margin:6px 0}.modes{margin:7px 0}.dash{padding-bottom:9px}.dash strong{font-size:23px}}
.screen canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}@media(max-height:780px){.screen{height:52vh;min-height:300px}}
/* Large thumb controls on opposite sides of the racing screen. */
.side-steer{position:absolute;bottom:18px;width:62px;height:72px;border:1px solid #72e4e888;border-radius:8px;background:#042627cf;color:#96fcff;font-size:29px;z-index:2;box-shadow:0 0 16px #57faff20}
#left{left:9px}#right{right:9px}.side-steer.active{background:#87fbff;color:#052122;box-shadow:0 0 24px #67faff88}.controls{grid-template-columns:1fr;width:52%;margin:15px auto}.controls #gas{width:100%}#overlay{z-index:3;background:#021314de}#pause{z-index:2}.screen{background:#021a1b;border-color:#09191a;box-shadow:inset 0 0 30px #3df9ff22}.screen canvas{filter:drop-shadow(0 0 2px #6dfbff66)}.scanlines{z-index:1;background:repeating-linear-gradient(transparent 0 3px,#00191a40 3px 4px);box-shadow:inset 0 0 42px #001516bb}.dash strong{color:#92fcff;text-shadow:0 0 8px #63e9ed40}
@media(max-width:380px){.side-steer{width:53px;height:65px;bottom:14px}.footer{font-size:7px;letter-spacing:.5px}}
/* Arthur's final control order: left / accelerator / right. */
.controls{width:100%;grid-template-columns:1fr 1.25fr 1fr;gap:12px}.controls #left,.controls #right{position:static;color:#96fcff;border-color:#72e4e888;background:#173a3b}.controls #left.active,.controls #right.active{background:#87fbff;color:#052122}.controls #gas{background:#8bf2f5;color:#092021}
/* Reference-matched fluorescent green road and compact arcade HUD. */
.dash{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 13px;gap:8px;font:bold italic clamp(12px,3.5vw,19px) monospace;letter-spacing:-.7px;color:#20e0e6;text-shadow:0 0 5px #24f8ff88}.dash>div{white-space:nowrap}.dash strong{display:inline;font-size:inherit;letter-spacing:0;color:inherit;text-shadow:inherit;margin:0}.screen canvas{filter:drop-shadow(0 0 2px #28f8ff66)}.screen{background:#001415;box-shadow:0 0 14px #19f8ff15}.scanlines{background:repeating-linear-gradient(transparent 0 2px,#00141530 2px 3px);box-shadow:inset 0 0 30px #00151699}.screen:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at center,transparent 55%,#0007 100%)}
/* One reference-green lettering palette throughout every game state. */
:root{--phosphor:#20e0e6;--phosphor-shadow:0 0 6px #24f8ff55}
html,body,header,h1,h1 em,h2,p,small,strong,b,span,button,details,summary,.eyebrow,.instruction,.footer,.footer b,.dash,.dash strong,#flash,#pause,.controls button,.controls #gas,.controls #left,.controls #right,.selected{color:var(--phosphor)!important;text-shadow:var(--phosphor-shadow)}
.start,.selected,.controls #gas,.controls #left.active,.controls #right.active,.controls button.active{background:#103637;border:1px solid var(--phosphor);box-shadow:0 0 12px #19f8ff33}
.start:hover,.modes button:hover,#sound:hover{background:#174749}.modes .selected{box-shadow:inset 0 -3px 0 var(--phosphor)}
#flash{font:bold 25px monospace;text-shadow:0 0 8px #24f8ff88,2px 2px #001010}#pause{background:#081f20;border-color:#20e0e688}
/* Original block-matrix lettering with the reference's phosphor haze. */
@font-face{font-family:RoadPhosphor;src:url('road-phosphor.woff') format('woff');font-style:normal;font-weight:400 900;font-display:swap}
:root{--phosphor-shadow:0 0 1px #95fcff,0 0 4px #20e0e699,0 0 10px #24f8ff66}
.dash,.dash strong,#flash,#overlay h2,#overlay .eyebrow,#overlay p,.modes button,.start,#sound,.controls button,.controls #gas,.controls #gas span,.footer,.footer b,#pause{font-family:RoadPhosphor,monospace!important;font-style:normal;font-weight:400!important;text-transform:uppercase;letter-spacing:0;line-height:1.4;text-shadow:var(--phosphor-shadow)}
.dash{font-size:clamp(15px,4.5vw,21px);padding:7px 3px 12px}.dash strong{font-size:inherit}#flash{font-size:30px;text-shadow:0 0 2px #90fcff,0 0 6px #20e0e6aa,0 0 15px #24f8ff77}#overlay h2{font-size:clamp(22px,6vw,32px);line-height:1.15;letter-spacing:-.5px}#overlay p{font-size:12px;line-height:1.6}#overlay .instruction{font-size:10px;line-height:1.6}.footer{font-size:10px;letter-spacing:0}#sound{font-size:11px}.start{font-size:14px}.modes button{font-size:13px}.controls #gas span{font-size:9px}.controls #gas{font-size:25px}
@media(max-width:360px){.dash{font-size:15px}.footer{font-size:9px}#overlay p{font-size:11px}.modes button{padding:8px 11px}}
#overlay .instruction,#overlay .eyebrow,.footer,#sound,.controls #gas span{ text-shadow:0 0 2px #20e0e666;font-size:11px}#overlay .instruction{font-size:10px}
h1,h1 em{font-family:RoadPhosphor,monospace;font-weight:400;font-size:clamp(30px,8vw,44px);line-height:1.2;letter-spacing:-1px;text-shadow:var(--phosphor-shadow)}
.ad-mobile,.ad-rail{border:1px dashed #20e0e638;background:#091a1b88;text-align:center;color:#20e0e6;pointer-events:none}.ad-mobile span,.ad-rail span{font:9px monospace;letter-spacing:1.8px}.ad-mobile small,.ad-rail small{font:10px/1.7 monospace;color:#20e0e6}.ad-mobile{height:60px;margin:0 0 18px;display:flex;flex-direction:column;justify-content:center;gap:5px}.ad-rail{display:none}.story{margin:24px 0 0;padding:20px 0;border-top:1px solid #20e0e638}.story h2{font:20px/1.4 RoadPhosphor,monospace;text-transform:uppercase;letter-spacing:0;margin:10px 0 14px;text-shadow:var(--phosphor-shadow)}.story p{font:14px/1.7 Arial,sans-serif;text-shadow:none;max-width:46ch}.story .eyebrow{font-size:10px;text-shadow:none}
@media(min-width:960px){.ad-mobile{display:none}.ad-rail{display:flex;position:fixed;top:90px;width:160px;height:600px;max-height:calc(100vh - 120px);align-items:center;justify-content:center;flex-direction:column;gap:18px}.ad-left{left:calc(50% - 450px)}.ad-right{right:calc(50% - 450px)}}
@media(max-width:380px){header{gap:8px}#sound{font-size:9px;padding:8px}.story h2{font-size:18px}.ad-mobile{height:50px;margin-bottom:14px}}
.controls #gas{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1}.controls #gas span{margin:0;line-height:1.2}
/* Two vertical placements on EACH desktop side; one mobile placement above. */
.ad-stack{display:none}
@media(min-width:960px){body{position:relative;min-height:100vh}.ad-stack{display:flex;position:absolute;top:90px;flex-direction:column;gap:20px;width:160px}.ad-stack-left{left:calc(50% - 450px)}.ad-stack-right{right:calc(50% - 450px)}.ad-stack .ad-rail{position:static;flex:none;width:160px;height:600px;max-height:none}}
@media(min-width:1440px){body{min-height:100vh}.ad-stack{width:160px;flex-direction:column;gap:0}.ad-stack-left{left:calc(50% - 630px)}.ad-stack-right{right:calc(50% - 630px)}}
/* Fit ad + header + playfield + thumb controls inside the mobile viewport. */
@media(max-width:959px){
main{width:min(calc(100% - 16px),500px);margin:6px auto;padding-bottom:16px}
.ad-mobile{height:42px;margin:0 0 6px;gap:2px}.ad-mobile span{font-size:8px}.ad-mobile small{font-size:9px}
header{height:50px;margin:0 0 6px;gap:8px}header .eyebrow{font-size:8px;letter-spacing:1px}h1,h1 em{font-size:30px;line-height:1.1}h1{margin-top:3px}#sound{font-size:9px;padding:8px}
.machine{height:calc(100svh - 126px - env(safe-area-inset-bottom,0px));height:calc(100dvh - 126px - env(safe-area-inset-bottom,0px));min-height:300px;max-height:780px;padding:8px;display:grid;grid-template-rows:28px minmax(0,1fr) 52px 14px;gap:6px}
.dash{padding:0 2px;line-height:1;font-size:clamp(14px,4.3vw,19px)}.screen{height:100%;max-height:none;min-height:0;aspect-ratio:auto;margin:0;align-self:stretch;border-width:3px}.screen canvas{object-fit:contain;background:#001415}.controls{height:52px;margin:0;gap:10px}.controls button{height:52px}.controls #gas{font-size:23px}.controls #gas span{font-size:9px}.footer{margin:0;padding:0 2px;font-size:9px;line-height:1;align-items:center}
#overlay{padding:10px;gap:4px}#overlay .eyebrow{font-size:9px}#overlay h2{font-size:clamp(20px,5.7vw,27px);margin:5px 0;line-height:1.15}#overlay p{font-size:10px;line-height:1.4;margin:3px 0}.modes{margin:4px 0;gap:8px}.modes button{padding:7px 12px;font-size:11px}.start{font-size:12px;padding:11px 16px}#overlay .instruction{font-size:9px;line-height:1.5}
.story{margin-top:20px}
}
@media(max-width:959px) and (max-height:700px){#overlay>p:not(.instruction):not(.mission-copy):not(#award):not(#run-rank){display:none}#overlay .instruction{font-size:8px}#overlay h2{font-size:22px}.machine{min-height:270px}}

/* Gentle phosphor breathing only while paused; never strobes. */
#flash.paused-pulse{animation:paused-phosphor 3s ease-in-out infinite}
@keyframes paused-phosphor{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){#flash.paused-pulse{animation:none;opacity:1}}

/* BUMP pulses faster than PAUSED without hard on/off flashes. */
#flash.bump-pulse{animation:bump-phosphor .7s ease-in-out infinite}
@keyframes bump-phosphor{0%,100%{opacity:1}50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){#flash.bump-pulse{animation:none;opacity:1}}

/* Three deliberate, readable mission lines; controls remain in view. */
#overlay .mission-copy{display:block;font-size:clamp(11px,2.8vw,14px);line-height:1.6;margin:12px 0}
#overlay .mission-copy span{display:block;white-space:nowrap}
@media(max-width:959px){#overlay .mission-copy{font-size:clamp(10.5px,2.8vw,13px);line-height:1.45;margin:5px 0}}

@media(max-width:959px){.machine{scroll-margin-top:8px;scroll-margin-bottom:8px}}

/* Welcome/results use content height instead of an empty full racing viewport. */
@media(max-width:959px){
.machine.welcome{height:auto!important;min-height:0;max-height:none;grid-template-rows:28px auto 52px 14px}
.machine.welcome .screen{height:auto;min-height:0;overflow:hidden}
.machine.welcome canvas{position:absolute;inset:0;width:100%;height:100%}
.machine.welcome #overlay{position:relative;inset:auto;padding:12px 8px;gap:4px}
.machine.welcome #overlay h2{margin:4px 0}
.machine.welcome #overlay .mission-copy{margin:4px 0}
}

.dash-title{display:none}
@media(max-width:959px){
#topbar.playing{height:0;margin:0;position:relative}
#topbar.playing>div{display:none}

.machine:not(.welcome) .dash{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5px}
.machine:not(.welcome) .dash>div:last-child{text-align:right}
.machine:not(.welcome) .dash-title{display:block;font-size:clamp(11px,3.2vw,15px);white-space:nowrap;text-align:center}
}

/* Icon-only sound control below SCORE, opposite the pause control. */
.screen #sound{position:absolute;top:8px;left:8px;z-index:4;width:40px;height:40px;padding:8px;background:#081f20;display:flex;align-items:center;justify-content:center}
#sound svg{display:block;flex:none;filter:drop-shadow(0 0 3px #20e0e680)}

/* Fullscreen contains only the race, HUD and thumb controls, not advertisements. */
.machine:is(:fullscreen,:-webkit-full-screen){width:100%;height:100dvh!important;min-height:0;max-height:none;margin:0;border:0;border-radius:0;display:grid;grid-template-rows:28px minmax(0,1fr) 52px 14px;gap:6px;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#021a1b}
.machine:is(:fullscreen,:-webkit-full-screen) .screen{height:100%;min-height:0;max-height:none;aspect-ratio:auto;margin:0}
.machine:is(:fullscreen,:-webkit-full-screen) .dash{display:grid;grid-template-columns:1fr auto 1fr;padding:0 2px;align-items:center;gap:5px;font-size:clamp(14px,4.3vw,19px)}
.machine:is(:fullscreen,:-webkit-full-screen) .dash>div:last-child{text-align:right}
.machine:is(:fullscreen,:-webkit-full-screen) .dash-title{display:block;font-size:clamp(11px,3.2vw,15px);white-space:nowrap;text-align:center}
.machine:is(:fullscreen,:-webkit-full-screen) .controls{width:100%;height:52px;margin:0}
.machine:is(:fullscreen,:-webkit-full-screen) .controls button{height:52px}
.machine:is(:fullscreen,:-webkit-full-screen) .footer{margin:0;padding:0 2px;font-size:9px;line-height:1;align-items:center}
.machine:is(:fullscreen,:-webkit-full-screen).welcome #overlay{position:absolute;inset:0}
.machine::backdrop{background:#021a1b}
/* Arthur's control order: pause on the left, speaker on the right. */
.screen #pause{left:8px;right:auto}
.screen #sound{left:auto;right:8px}

/* Compact heading: two native disclosures beside the title, no extra eyebrow row. */
#topbar{position:relative;height:48px;gap:10px;margin-bottom:6px}
#topbar h1{margin:0;white-space:nowrap;font-size:36px;line-height:1.1}
#topbar h1 em{font-size:inherit}
.header-info{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}
.header-info details{margin:0;font:12px/1.6 Arial,sans-serif;color:var(--phosphor)}
.header-info summary{list-style:none;white-space:nowrap;cursor:pointer;padding:1px 0}
.header-info summary::-webkit-details-marker{display:none}
.header-info summary::after{content:'▾';display:inline-block;margin-left:6px}
.header-info details[open] summary::after{content:'▴'}
.header-info summary:focus-visible{outline:2px solid var(--phosphor);outline-offset:3px}
.info-panel{position:absolute;right:0;top:100%;width:min(440px,100%);z-index:10;background:#082425;border:1px solid #20e0e680;border-radius:8px;padding:14px 16px;box-shadow:0 10px 30px #0009;max-height:min(65dvh,460px);overflow:auto;text-align:left}
.info-panel h2{font:20px/1.3 RoadPhosphor,monospace;margin:0 0 12px}
.info-panel p{font:14px/1.5 Arial,sans-serif;text-shadow:none;margin:9px 0}
@media(min-width:960px){
main{margin:8px auto;padding-bottom:8px}
.machine{height:calc(100dvh - 78px);min-height:300px;max-height:780px;padding:8px;display:grid;grid-template-rows:28px minmax(0,1fr) 52px 14px;gap:6px}
.machine .dash{padding:0 2px;line-height:1}
.machine .screen{height:100%;min-height:0;max-height:none;aspect-ratio:auto;margin:0;border-width:3px}
.machine .screen canvas{object-fit:contain}
.machine .controls{height:52px;margin:0;gap:10px}
.machine .controls button{height:52px}
.machine .footer{margin:0;padding:0 2px;font-size:9px;line-height:1;align-items:center}
}
@media(max-width:959px){
#topbar{height:42px;margin-bottom:6px;gap:8px}
#topbar h1{font-size:29px}
.header-info details{font-size:11px;line-height:1.5}
.header-info{gap:2px}
#topbar.playing .header-info{display:none}
}
@media(max-width:340px){#topbar h1{font-size:27px}.header-info details{font-size:10px}}

/* Hide an unfit placement before ad loading; never shrink or clip a creative. */
html.narrow-ad-space .ad-mobile{display:none!important}
@media(max-width:959px){html.narrow-ad-space .machine{height:calc(100dvh - 78px - env(safe-area-inset-bottom,0px))}}
.info-panel h3{font:16px/1.4 RoadPhosphor,monospace;margin:18px 0 6px}
.info-panel .hall-note{font-size:12px}
#hall-list{padding-left:23px;font:13px/1.6 Arial,sans-serif;text-shadow:none}
#hall-list li{margin:5px 0}
#overlay #award{color:#ffe28a!important;font-size:12px;line-height:1.3;margin:4px 0;text-shadow:0 0 5px #b88a2266}
#overlay #run-rank{font:10px/1.4 Arial,sans-serif;text-shadow:none;margin:2px 0}
#overlay [hidden]{display:none!important}

/* Five earned local awards above the thumb controls; never cover the race. */
#golden-awards{display:none;min-width:0;height:44px;text-align:center}
.machine.welcome #golden-awards{display:block}
#golden-title{font:10px/12px Arial,sans-serif;letter-spacing:1px;margin:0 0 2px;color:#ffe28a;text-shadow:none}
#golden-awards #hall-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;list-style:none;padding:0;margin:0;height:30px;font:11px/13px Arial,sans-serif;text-shadow:none}
#golden-awards #hall-list li{margin:0;min-width:0;border:1px solid #20e0e640;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#golden-awards .tape-icon{font:13px/13px Arial,sans-serif;text-shadow:none}
#golden-awards .earned .tape-icon{color:#ffe28a!important}
#golden-awards .unearned{opacity:.45}
#golden-awards .award-score{font:10px/12px Arial,sans-serif;text-shadow:none;white-space:nowrap}
.machine.welcome{grid-template-rows:28px minmax(0,1fr) 44px 52px 14px}
@media(max-width:959px){.machine.welcome{grid-template-rows:28px auto 44px 52px 14px}}
@media(min-width:960px) and (max-height:700px){.machine.welcome #overlay{padding:8px}.machine.welcome #overlay h2{font-size:26px;margin:4px 0}.machine.welcome #overlay .mission-copy{font-size:11px;margin:4px 0}.machine.welcome #overlay .instruction{font-size:8px}.machine.welcome .modes{margin:4px 0}}

/* Local preview: match SteelFactor workflow-icon teal; earned tape remains gold. */
#golden-title{color:var(--phosphor);text-shadow:none}
#golden-awards .tape-icon{display:block;width:22px;height:22px;line-height:1}
#golden-awards .tape-icon svg{display:block;width:100%;height:100%}
#golden-awards{height:50px}
#golden-awards #hall-list{height:36px}
.machine.welcome{grid-template-rows:28px minmax(0,1fr) 50px 52px 14px}
@media(max-width:959px){.machine.welcome{grid-template-rows:28px auto 50px 52px 14px}}

/* Local top-five scores: ordinary results remain teal, earned award tapes gold. */
#golden-awards{height:76px}
#golden-awards .score-board-note{font:9px/12px Arial,sans-serif;margin:0 0 2px;text-shadow:none}
#golden-awards #hall-list{height:48px}
#golden-awards .score-name{display:block;max-width:100%;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:10px/12px Arial,sans-serif;text-shadow:none}
.machine.welcome{grid-template-rows:28px minmax(0,1fr) 76px 52px 14px}
@media(max-width:959px){.machine.welcome{grid-template-rows:28px auto 76px 52px 14px}}
#score-name-form{width:100%;max-width:360px;margin:4px 0;font:11px/1.3 Arial,sans-serif;text-shadow:none}
#score-name-form label{display:block;margin-bottom:4px}
.score-name-row{display:flex;gap:4px;align-items:center}
#score-name{min-width:0;width:100%;flex:1;background:#08282a;color:#20e0e6;border:1px solid #20e0e680;border-radius:3px;padding:6px;font:12px Arial,sans-serif}
#score-name-form button{font:11px Arial,sans-serif;padding:6px 7px;white-space:nowrap}
#score-name-form small{display:block;font:9px/1.3 Arial,sans-serif;margin-top:3px;text-shadow:none}
#score-name-form :focus-visible{outline:2px solid #20e0e6;outline-offset:2px}
@media(min-width:960px) and (max-height:700px){.machine.welcome #overlay h2{font-size:24px}.machine.welcome #overlay .instruction{font-size:8px;margin:2px 0}.machine.welcome #overlay .modes button{padding:6px 12px}.machine.welcome #overlay .start{padding:10px 18px}}

/* Results make room for optional name entry without pushing thumb controls away. */
.machine.results #overlay .instruction{display:none}
.machine.results #overlay{gap:2px;padding:8px}
.machine.results #overlay h2{font-size:22px;margin:2px 0}
.machine.results #overlay .modes{margin:3px 0}
.machine.results #overlay .mission-copy{margin:2px 0}
.machine.results #overlay .start{padding:9px 14px}
.machine.results #overlay .eyebrow{display:none}

/* Dedicated name-entry strip between result screen and score tapes. */
.machine.welcome:has(> #score-name-form:not([hidden])){grid-template-rows:28px minmax(0,1fr) auto 76px 52px 14px}
.machine > #score-name-form{max-width:none;margin:0;padding:8px;background:#091c1d;border:1px solid #20e0e680;border-radius:5px;color:#20e0e6;text-align:left;scroll-margin:12px}
.machine > #score-name-form label{font-weight:bold}
.machine > #score-name-form button{min-height:32px}
.machine > #score-name-form input{font-size:16px}
@media(max-width:959px){.machine.welcome:has(> #score-name-form:not([hidden])){grid-template-rows:28px auto auto 76px 52px 14px}}

/* Fullscreen results: only the road/result screen absorbs surplus height. */
.machine > #score-name-form{align-self:end;height:max-content}
.machine:is(:fullscreen,:-webkit-full-screen).welcome{grid-template-rows:28px minmax(0,1fr) 76px 52px 14px}
.machine:is(:fullscreen,:-webkit-full-screen).welcome:has(> #score-name-form:not([hidden])){grid-template-rows:28px minmax(0,1fr) max-content 76px 52px 14px}
