/* Dedicated arcade shell; the approved website stylesheet is unchanged. */
html{height:100%;overflow:hidden;scroll-behavior:auto}
body.arcade-page{margin:0;height:100%;overflow:hidden;background:#303429;color:#f1e5ca;overscroll-behavior:none}
.arcade-page [hidden]{display:none!important}
.arcade-app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#303429}
.arcade-head{flex-shrink:0;min-height:58px;padding:7px 18px;display:flex;align-items:center;gap:17px;background:#29231e;border-bottom:1px solid #66583e}
.arcade-head .back-site{font:10px Body,sans-serif;color:#d5bf95;white-space:nowrap;min-height:40px;display:flex;align-items:center;gap:10px}.arcade-head .back-site:before{content:'←';font-size:20px}.arcade-head img{display:block;width:120px;height:44px;object-fit:contain}
.arcade-head .arcade-label{font:12px Sign,sans-serif;letter-spacing:1.8px;color:#bda77d;margin-left:7px}
.arcade-tools{display:flex;align-items:center;gap:7px;margin-left:auto}.arcade-tools button,.arcade-tools a{display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px 11px;border:1px solid #7b694c;border-radius:3px;background:#3c3429;color:#e5d3ad;font:9px Body,sans-serif;letter-spacing:.4px;white-space:nowrap}.arcade-tools a{background:transparent}
.drive-host{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.drive-hud{display:flex;align-items:center;gap:22px;flex-shrink:0;padding:10px 20px;background:#373b2e;border-bottom:1px solid #65694e}
.hud-condition{min-width:70px}.drive-hud small,.drive-hud .stat-label{display:block;font:7px Body,sans-serif;letter-spacing:1px;color:#c2b697;margin-bottom:3px}
#condition{display:flex;gap:5px;align-items:center;min-height:25px;color:#d88c6c}#condition svg{width:19px;height:19px}#condition svg.lost{color:#74765d}
.speed-stat{min-width:61px;display:flex;align-items:baseline;gap:5px}.speed-stat #speed{font:29px/1 Sign,sans-serif;color:#ead7a4}.speed-stat small{font-size:6px;max-width:20px;line-height:1.5;letter-spacing:.3px;margin:0}
.route-stat{flex:1;min-width:0}.route-stat #district{font:18px/1.2 Sign,sans-serif;letter-spacing:.6px;color:#efddb6;display:block}.route-stat #road-hint{font:8px/1.4 Body,sans-serif;color:#b9bb91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.35px;display:block;margin-top:3px}
.score-stat{display:flex;gap:20px;text-align:right}.score-stat b{font:22px/1 Sign,sans-serif}.hud-actions{display:flex;gap:7px}.hud-actions button{min-height:39px;min-width:42px;border:1px solid #93815c;border-radius:4px;background:#4d4c35;color:#ecdaae;padding:7px;font:10px Sign,sans-serif;letter-spacing:.5px}.hud-actions #pause{font:17px Body,sans-serif}.hud-actions #restart{font-size:25px;line-height:1}
.drive-track{height:3px;background:#686b4b;flex-shrink:0}#route-progress{height:100%;width:0;background:#d1ad69}
.arcade-page .stage{flex:1;min-height:0;aspect-ratio:auto;position:relative;overflow:hidden;background:#c6d9ce;isolation:isolate}.arcade-page .stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.arcade-page .game-overlay{background:#39483b2b;backdrop-filter:blur(1px);padding:16px}.arcade-page .game-overlay[hidden]{display:none}
.arcade-page .game-card{width:440px;max-height:100%;overflow-y:auto;padding:24px 28px 20px;transform:rotate(-.6deg)}
.arcade-page .game-card h1{font:65px/.94 Sign,sans-serif;margin:14px 0 13px;letter-spacing:-.8px;color:#3d392d}.arcade-page .game-card h1 em{color:#994b3b;font-style:normal}
.arcade-page .title-scooter{display:block;width:71%;height:115px;object-fit:contain;margin:12px auto 0}.arcade-page .game-card p{font-size:12px;line-height:1.65;margin:12px 0 18px}.arcade-page .game-card small{display:block;font-size:8px;line-height:1.6;margin-top:16px;color:#8b7655;letter-spacing:.4px}
.quick-guide{display:flex;justify-content:center;gap:12px;font:10px Sign,sans-serif;color:#786445;margin-bottom:19px}.quick-guide kbd{border:1px solid #b49c76;border-bottom-width:2px;padding:3px 5px;border-radius:2px;font:9px Body,sans-serif;letter-spacing:.2px;margin-right:3px}
.help-copy{text-align:left;max-width:350px;margin:auto}.arcade-page .help-copy p{font-size:11px;margin:11px 0}.help-copy strong{color:#934c3c}.arcade-page .game-card .secondary{display:block;background:none;border:0;font-size:10px;color:#886344;text-decoration:underline;text-underline-offset:3px;margin:14px auto 0}.card-link{display:block;font-size:9px;color:#826046;margin-top:17px;text-decoration:underline;text-underline-offset:3px}
.ride-results{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:18px 0 22px}.ride-results span{font-size:7px;letter-spacing:1px}.ride-results b{display:block;font:34px/1.25 Sign,sans-serif;color:#994b3b}
.drive-stage-note{position:absolute;right:16px;bottom:13px;font:9px Body,sans-serif;letter-spacing:1px;background:#304333d9;color:#ebdbb8;border:1px solid #b5b18c44;padding:6px 9px;pointer-events:none}.drive-stage-note b{font-weight:normal;color:#dfbb76}
#drive-controls{display:none;flex-shrink:0;gap:12px;padding:12px 20px;background:#363b2c;border-top:1px solid #6b6c4d;touch-action:none;align-items:stretch}
.steer-pedals,.speed-pedals{display:flex;gap:10px;flex:1}.speed-pedals{justify-content:flex-end}
#drive-controls button{flex:1;max-width:150px;min-height:63px;border:1px solid #9d8963;border-bottom:4px solid #212a20;background:#5e6046;color:#f1e0b5;border-radius:5px;font:23px/1 Sign,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;display:flex;align-items:center;justify-content:center;gap:9px}
#drive-controls button span{font-size:13px;letter-spacing:.7px}#drive-controls [data-drive="brake"]{background:#6b5743}#drive-controls [data-drive="throttle"]{background:#7a4436;border-color:#b17a58}#drive-controls button.pressed{background:#a68046;transform:translateY(2px);border-bottom-width:2px}#drive-controls [data-drive="throttle"].pressed{background:#a75e45}
.desktop-drive-guide{font:9px Body,sans-serif;text-align:center;color:#b7aa8a;background:#363b2c;padding:9px 12px;letter-spacing:.4px;flex-shrink:0}.desktop-drive-guide kbd{font:10px Body,sans-serif;color:#ead6a6;margin:0 3px}
.arcade-page #toast{top:13px;font-size:11px;padding:9px 14px}
.classic-page .drive-host #cabinet{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}.classic-page #arcade .stage{aspect-ratio:auto;flex:1;min-height:0}.classic-page #arcade .game-bottom{flex-shrink:0}.classic-page .arcade-head{min-height:48px}.classic-page #arcade .hud{flex-shrink:0}.classic-page .drive-host .touch-controls{flex-shrink:0}
@media(pointer:coarse){#drive-controls{display:flex}.desktop-drive-guide{display:none}}
@media(max-width:850px){.arcade-label{display:none}.score-stat>div:last-child{display:none}.arcade-head{gap:12px;padding:6px 12px}.drive-hud{gap:13px;padding:8px 12px}.route-stat #district{font-size:15px}.score-stat{gap:0}}
@media(max-width:600px){
 .arcade-head{min-height:49px;padding:5px 8px;gap:9px}.arcade-head img{width:91px;height:36px}.arcade-head .back-site{font-size:8px;gap:5px;min-height:36px}.arcade-head .back-site:before{font-size:18px}.arcade-tools{gap:5px}.arcade-tools button,.arcade-tools a{font-size:6.5px;padding:5px 6px;min-height:33px;letter-spacing:.1px}.arcade-head .arcade-label{display:none}
 .drive-hud{gap:9px;padding:8px}.hud-condition{min-width:47px}.drive-hud small,.drive-hud .stat-label{font-size:5.5px;letter-spacing:.5px;margin-bottom:3px}#condition{gap:2px;min-height:22px}#condition svg{width:13px;height:13px}
 .speed-stat{min-width:34px;gap:3px}.speed-stat #speed{font-size:24px}.speed-stat small{font-size:5px;max-width:17px}.route-stat #district{font-size:12px;letter-spacing:.2px}.route-stat #road-hint{font-size:5.5px;letter-spacing:.1px}.score-stat{display:none}.hud-actions{gap:5px}.hud-actions button{min-height:35px;min-width:32px;padding:4px;font-size:9px}.hud-actions #pause{font-size:15px}.hud-actions #restart{font-size:23px}
 #drive-controls{display:flex;padding:10px 8px 9px;gap:12px}.steer-pedals,.speed-pedals{gap:6px}.speed-pedals{flex:1.3}#drive-controls button{min-height:62px;font-size:23px;gap:5px;flex-direction:column}#drive-controls button span{font-size:8px;letter-spacing:.6px}
 .desktop-drive-guide{display:none}.arcade-page .game-card{width:315px;padding:19px 18px 18px}.arcade-page .game-card h1{font-size:51px}.arcade-page .title-scooter{height:91px;width:75%}.arcade-page .game-card p{font-size:10.5px;margin:10px 0 15px}.arcade-page .game-card .help-copy p{font-size:10px}.arcade-page .game-card .button{font-size:10px;min-height:44px;padding:12px 18px}.arcade-page .game-card small{font-size:6.5px;margin-top:13px}.quick-guide{font-size:8px;gap:8px;margin-bottom:16px}.quick-guide kbd{font-size:7px;padding:2px 3px;margin-right:2px}.game-kicker{font-size:6.5px!important}.arcade-page .game-overlay{padding:14px}.ride-results{gap:9px;margin:15px 0 19px}.ride-results b{font-size:30px}.ride-results span{font-size:6px}.drive-stage-note{bottom:11px;right:10px;font-size:7px;padding:5px 7px}.arcade-page #toast{font-size:9px;top:11px;padding:8px 10px}
}
@media(max-width:359px){.arcade-head img{width:73px}.arcade-head{gap:6px}.arcade-tools{gap:3px}.arcade-tools button,.arcade-tools a{padding:5px;font-size:6px}.route-stat #district{font-size:10px}.hud-actions button{min-width:28px}.drive-hud{gap:6px}}
@media(max-height:530px) and (orientation:landscape){
 .arcade-head{min-height:36px;height:36px;padding:3px 12px}.arcade-head img{height:29px;width:91px}.arcade-head .back-site{min-height:29px;font-size:8px}.arcade-tools button,.arcade-tools a{min-height:28px;padding:4px 8px;font-size:7px}.drive-hud{padding:5px 12px;gap:16px}.speed-stat #speed{font-size:23px}#condition svg{width:14px;height:14px}#condition{min-height:19px}.route-stat #district{font-size:13px}.route-stat #road-hint{font-size:6px}.hud-actions button{min-height:29px;min-width:38px;padding:4px}.hud-condition{min-width:58px}.score-stat{display:none}
 #drive-controls{display:flex;padding:5px 20px;gap:30px}#drive-controls button{min-height:46px;max-width:145px;font-size:22px;flex-direction:row}#drive-controls button span{font-size:9px}.speed-pedals{flex:1}.desktop-drive-guide{display:none}.arcade-page .game-card{width:420px;padding:13px 24px}.arcade-page .game-card h1{font-size:39px;line-height:.94;margin:10px 0}.arcade-page .game-card h1 br{display:none}.arcade-page .title-scooter{display:none}.arcade-page .game-card p{font-size:10px;margin:8px 0 12px}.arcade-page .game-card small{font-size:6px;margin-top:10px}.quick-guide{margin:9px 0 13px;font-size:8px}.arcade-page .game-card .button{min-height:37px;font-size:9px;padding:9px 18px}.ride-results{margin:11px 0 13px;gap:10px}.ride-results b{font-size:26px}.ride-results span{font-size:6px}.drive-stage-note{font-size:7px;padding:4px 7px;bottom:9px}.arcade-page .game-card .help-copy p{font-size:10px}.classic-page #arcade .touch-controls{padding:4px 12px}.classic-page #arcade .touch-controls button{min-height:39px;height:39px}.classic-page #arcade .game-bottom{min-height:29px;padding:3px 12px}
}
@media(prefers-reduced-motion:reduce){.arcade-page .game-card{transform:none}}

/* Floating sign lettering: the joke belongs to the arcade, without an alert panel. */
.drive-commentary{position:absolute;z-index:4;left:50%;top:auto;bottom:38%;transform:translateX(-50%) rotate(-1deg);box-sizing:border-box;width:max-content;max-width:min(420px,calc(100% - 32px));padding:2px 8px;border:0;background:none;color:#f1e0b5;box-shadow:none;font:24px/1.18 Sign,sans-serif;letter-spacing:.4px;-webkit-text-stroke:1px #784336;paint-order:stroke fill;text-shadow:0 2px 0 #784336,1px 3px 2px #303429a6;text-align:center;text-wrap:balance;overflow-wrap:break-word;opacity:0;pointer-events:none}
.drive-commentary.show{animation:commentary-pop 2.3s both}
@keyframes commentary-pop{0%{opacity:0;transform:translate(-50%,-3px) scale(.94) rotate(-3deg)}10%{opacity:1;transform:translate(-50%,0) scale(1.03) rotate(1deg)}22%,78%{opacity:1;transform:translate(-50%,0) scale(1) rotate(-1deg)}100%{opacity:0;transform:translate(-50%,-2px) rotate(-1deg)}}
.arcade-page .game-card .game-kicker.result-intro{display:block;max-width:340px;margin:0 auto;font-family:Sign,sans-serif;font-size:18px!important;line-height:1.25;letter-spacing:.7px;color:#784336}
.arcade-page .game-card .result-quip{font:clamp(25px,3.2vw,34px)/1.16 Sign,sans-serif;color:#784336;margin:18px 0 22px;text-wrap:balance}
.arcade-page .game-card .result-aside{font:15px/1.35 Sign,sans-serif;color:#786445;letter-spacing:.2px;max-width:340px;margin:14px auto 0}
.ride-results b{font-size:24px;color:#786445}.ride-results span{font-size:8px}
@media(max-width:600px){.drive-commentary{font-size:20px;padding:2px 6px;top:auto;bottom:38%}.arcade-page .game-card .result-quip{font-size:27px}.arcade-page .game-card .result-aside{font-size:14px}.ride-results b{font-size:22px}}
@media(max-height:530px) and (orientation:landscape){.drive-commentary{font-size:18px;padding:1px 6px;top:auto;bottom:36%}.arcade-page .game-card .result-quip{font-size:24px;margin:12px 0}.arcade-page .game-card .result-aside{font-size:13px}.ride-results b{font-size:21px}}
@media(prefers-reduced-motion:reduce){.drive-commentary{transform:translateX(-50%)}.drive-commentary.show{animation:commentary-fade 2.3s both}@keyframes commentary-fade{0%,78%{opacity:1}100%{opacity:0}}}

.drive-commentary{font-weight:700}

@media(max-width:600px){.arcade-page .game-card .game-kicker.result-intro{font-size:16px!important}}
@media(max-height:530px) and (orientation:landscape){.arcade-page .game-card .game-kicker.result-intro{font-size:15px!important}}

/* Instruments belong to the viewport; the existing navigation and action strip stay usable. */
.viewport-hud{position:absolute;z-index:1;top:14px;left:18px;right:18px;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:16px;pointer-events:none;color:#f1e0b5;text-shadow:0 2px 2px #303429,1px 0 1px #303429,-1px 0 1px #303429}
.viewport-hud small{display:block;font:12px/1.2 Sign,sans-serif;letter-spacing:1px;margin:0 0 5px}
.viewport-hud .hud-condition{min-width:0}.viewport-hud #condition{gap:6px;min-height:30px;color:#e4a084;filter:drop-shadow(0 1px 1px #303429)}.viewport-hud #condition svg{width:26px;height:26px}.viewport-hud #condition svg.lost{color:#89917b;opacity:.9}.heart-crack{display:none}.lost .heart-crack{display:block}
.viewport-hud .speed-stat{justify-self:end;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px}.viewport-hud .speed-stat #speed{font:44px/1 Sign,sans-serif;color:#f1e0b5}.viewport-hud .speed-stat small{font:14px/1.2 Sign,sans-serif;max-width:none;letter-spacing:.7px;margin:0}
.elapsed-stat{text-align:center;font-variant-numeric:tabular-nums}.elapsed-stat>b{display:block;font:32px/1 Sign,sans-serif}.elapsed-stat>span{display:block;font:11px/1.3 Sign,sans-serif;letter-spacing:.4px;margin-top:4px}.elapsed-stat>span b{font-weight:normal}
.result-time{display:flex;justify-content:center;align-items:baseline;gap:10px;flex-wrap:wrap;font:13px/1.3 Sign,sans-serif;color:#786445}.result-time>b{font:27px/1 Sign,sans-serif;color:#784336}.finish-bonuses{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:12px 0;font:11px/1.3 Sign,sans-serif;color:#786445}.finish-bonuses b{display:block;font-size:18px;color:#784336}
@media(max-width:600px){.viewport-hud{top:10px;left:12px;right:12px;gap:10px}.viewport-hud small{font-size:11px}.viewport-hud #condition{gap:4px}.viewport-hud #condition svg{width:22px;height:22px}.viewport-hud .speed-stat #speed{font-size:36px}.viewport-hud .speed-stat small{font-size:12px}.elapsed-stat>b{font-size:28px}.elapsed-stat>span{font-size:10px}.drive-hud .score-stat{display:flex}.drive-hud .score-stat b{font-size:18px}.drive-hud .score-stat small{font-size:8px}.route-stat #road-hint{font-size:8px}.route-stat #district{font-size:13px}.finish-bonuses{gap:12px}}
@media(max-height:530px) and (orientation:landscape){.viewport-hud{top:7px}.viewport-hud small{font-size:10px;margin-bottom:3px}.viewport-hud #condition svg{width:20px;height:20px}.viewport-hud .speed-stat #speed{font-size:30px}.viewport-hud .speed-stat small{font-size:11px}.elapsed-stat>b{font-size:24px}.elapsed-stat>span{font-size:9px}.result-time>b{font-size:23px}.finish-bonuses{margin:8px 0}}

.arcade-page #toast{top:88px}
@media(max-width:600px){.arcade-page #toast{top:76px}}
@media(max-height:530px) and (orientation:landscape){.arcade-page #toast{top:62px}}
/* The button faces retain their existing geometry; only portrait hit areas grow. */
.viewport-horn{position:absolute;z-index:1;right:14px;bottom:16px;width:72px;height:72px;padding:0;border:0;background:transparent;color:#f1e0b5;display:grid;place-items:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:pointer}
.viewport-horn::before{content:'';position:absolute;inset:9px;border-radius:50%;border:2px solid #c27861;background:radial-gradient(circle at 35% 25%,#b95847,#893d34 75%);box-shadow:0 4px 0 #532d27,0 5px 7px #30342980}
.viewport-horn svg{position:relative;width:30px;height:30px;pointer-events:none;filter:drop-shadow(0 1px 0 #532d27)}
.viewport-horn:active::before{transform:translateY(3px);box-shadow:0 1px 0 #532d27}.viewport-horn:active svg{transform:translateY(3px)}.viewport-horn:focus-visible{outline:2px solid #f1e0b5;outline-offset:-3px;border-radius:50%}.viewport-horn:disabled{pointer-events:none;opacity:.45}
#drive-controls button{-webkit-tap-highlight-color:transparent}
@media(orientation:portrait) and (max-width:700px),(orientation:portrait) and (pointer:coarse){
 #drive-controls{position:relative;z-index:2;overflow:visible}
 #drive-controls button{position:relative}
 #drive-controls button::before{content:'';position:absolute;inset:-34px -2px -6px;background:transparent}
 /* Expanded regions must never intercept start/pause/results card actions. */
 .drive-host:has(.game-overlay:not([hidden])) #drive-controls button::before{pointer-events:none}
 .viewport-horn{bottom:44px;right:18px}
}
