/* The original race layout and artwork remain intact inside the cabinet. */
.arcade-return{position:fixed;z-index:20;left:max(12px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top));padding:9px 12px;border:1px solid #ffdc6b80;border-radius:12px;background:#0c1625e8;color:#fff1b1;font:700 14px Arial,sans-serif;text-decoration:none;touch-action:manipulation}
body.race-active>.arcade-return,body.in-cabinet>.arcade-return{display:none}
#arcade-leaderboard{z-index:100;max-height:calc(100dvh - 32px);overflow:auto;touch-action:pan-y}
@media(max-width:600px){body:not(.in-cabinet)>.arcade-return{font-size:12px;padding:7px 10px}}
/* Keep Arcade navigation outside the original sound and race controls on phones. */
@media(max-width:949px){
 body:not(.in-cabinet){--arcade-nav-height:calc(48px + env(safe-area-inset-top));padding-top:var(--arcade-nav-height);align-items:flex-start}
 body:not(.in-cabinet)>#game{height:calc(100dvh - var(--arcade-nav-height))}
 body:not(.in-cabinet)>.arcade-return{top:calc(7px + env(safe-area-inset-top));min-height:34px}
}
