@font-face{font-family:system;src:local('Arial')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#292639;color:#fff7dc;font-family:system-ui,Arial,sans-serif}button{font:inherit;font-weight:800;cursor:pointer;min-width:44px;min-height:44px;border:2px solid #292639;border-radius:12px;background:#fff7dc;color:#292639;padding:10px 15px;box-shadow:0 4px 0 #292639;transition:background .1s,transform .1s}button:focus-visible{outline:4px solid #ffce55;outline-offset:3px}button:active,button.held{transform:translateY(3px);box-shadow:0 1px 0 #292639;background:#ffce55}button.primary{background:#ffce55;width:100%;font-size:19px;text-align:left;display:flex;justify-content:space-between}button[hidden],[hidden]{display:none!important}#game{display:block;width:100%;height:100%;outline:none}#panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(90deg,#242132bd,#24213200)}.card{width:min(500px,94vw);max-height:calc(100dvh - 28px);overflow:auto;background:#fff7dc;color:#292639;border:3px solid #292639;border-radius:24px;box-shadow:8px 9px 0 #292639bb;padding:26px;transform:rotate(-1deg)}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:900;color:#5e6470;margin:0 0 12px}h1{font-size:clamp(42px,7vw,72px);line-height:.86;letter-spacing:-3px;text-transform:uppercase;margin:20px 0 24px;position:relative}h1 em{color:#956ed0;font-style:normal;-webkit-text-stroke:1px #292639}.stamp{position:absolute;right:0;top:9px;transform:rotate(12deg);font-size:10px;line-height:1.3;letter-spacing:0;background:#9ee4c8;border:2px solid #292639;border-radius:50%;padding:15px 9px;text-align:center}#subtitle{font-weight:700;font-size:15px}.row{display:flex;gap:8px;margin-top:10px}.row>*{flex:1}.footer{margin:20px 0 0;font-size:9px;letter-spacing:1.6px;font-weight:900;color:#797482}#details{font-size:13px;line-height:1.5}#details ul{padding-left:18px}.mint{color:#25755b}.lilac{color:#8458b4}.coral{color:#c94c4c}#utility{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;gap:8px;z-index:5}#utility button{font-size:12px;padding:8px 12px;background:#fff7dcee}#hud{position:absolute;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));display:flex;gap:22px;align-items:center;text-shadow:1px 2px #292639}.brand{font-size:21px;line-height:.85;font-weight:1000;letter-spacing:-1px;transform:rotate(-4deg);color:#ffce55}.brand span{display:block;font-size:8px;letter-spacing:1px;color:white;margin-top:8px}.readout{display:flex;flex-direction:column}.readout span{font-size:34px;font-weight:950}.readout small{font-size:9px;font-weight:800;letter-spacing:2px}.health{display:flex;flex-direction:column;width:190px;gap:4px}.health label{font-size:10px;font-weight:800;display:flex;justify-content:space-between}.health progress{appearance:none;height:15px;width:100%;border:2px solid #292639;border-radius:8px;overflow:hidden;background:#292639}.health progress::-webkit-progress-bar{background:#292639}.health progress::-webkit-progress-value{background:#a7edbe}.health small{font-size:10px;font-weight:800}#toast{position:absolute;top:23%;left:50%;transform:translate(-50%,-10px) rotate(-2deg);max-width:90%;text-align:center;background:#ffce55;color:#292639;border:2px solid #292639;border-radius:9px;padding:10px 16px;font-size:15px;font-weight:950;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translate(-50%,0) rotate(-2deg)}#touch{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:end;pointer-events:none}#touch>div{display:flex;gap:8px;pointer-events:auto}#touch button{touch-action:none;user-select:none;-webkit-user-select:none;width:64px;height:62px;background:#fff7dcd9;font-size:15px;padding:5px}#touch .actions button{background:#bda2e6e6}#touch button.gas{background:#a7edbee6;font-size:22px}#touch small{font-size:9px}#desktop-help{position:absolute;bottom:90px;width:100%;text-align:center;font-size:11px;text-shadow:0 2px 2px #292639}.scoreboard{display:flex;gap:12px;padding:10px 0}.scoreboard>div{background:#ebe2f1;border:2px solid #292639;border-radius:12px;flex:1;padding:12px}.scoreboard small{display:block;font-size:10px;font-weight:900}.scoreboard strong{font-size:32px}dl{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:7px}dd{font-weight:900;margin:0}.fine{font-size:10px;color:#64606b}#pause-actions{display:grid;gap:10px}
@media(max-width:650px){#hud{top:12px;left:12px;gap:10px}.brand{display:none}.health{width:125px}.readout span{font-size:26px}#utility{right:10px;top:12px;gap:5px}#utility button{padding:6px;font-size:10px}#touch{left:8px;right:8px;bottom:max(14px,env(safe-area-inset-bottom))}#touch>div{gap:5px}#touch button{width:50px;height:56px;font-size:12px}.card{padding:20px}#desktop-help{font-size:9px}#toast{font-size:12px;padding:8px;width:max-content;max-width:90%}.stamp{font-size:8px;padding:12px 8px}}
@media(max-width:400px){#touch button{width:48px}.health{width:106px}#hud{gap:8px}#utility button{font-size:9px}.card{padding:18px}h1{font-size:48px}.row button{font-size:12px;padding:8px}}
@media(max-height:440px){#panel{padding:8px}.card{max-height:calc(100dvh - 16px);padding:16px;width:490px}h1{font-size:38px;line-height:.9;margin:8px 0 10px}h1 br{display:none}h1 em{margin-left:9px}.stamp,.footer{display:none}#subtitle{font-size:12px;margin:8px 0}#menu-actions .row{margin-top:7px}.eyebrow{font-size:8px;margin-bottom:5px}#touch{bottom:8px}#touch button{height:48px;width:55px}#desktop-help{bottom:65px}#toast{top:28%;font-size:12px}.scoreboard{padding:5px 0}.scoreboard>div{padding:5px}.scoreboard strong{font-size:23px}dl{font-size:11px;gap:3px;margin:6px 0}.fine{margin:6px 0}.brand{font-size:18px}}
body[data-phase="RESULTS"] .card>h1,body[data-phase="RESULTS"] .card>.eyebrow,body[data-phase="RESULTS"] .card>.footer{display:none}
@media(max-width:650px) and (max-height:440px){#touch button{width:48px;height:48px}#touch{left:8px;right:8px}#touch>div{gap:5px}}
@media(max-height:260px){.card h1{font-size:28px;margin:4px 0}.card>.eyebrow,.card>.footer{display:none}.card{padding:10px}#subtitle{font-size:10px;margin:5px 0}#utility button{font-size:9px}.card .row{margin-top:5px}.scoreboard strong{font-size:20px}.scoreboard small,.fine{font-size:8px}body[data-phase="MENU"] #utility,body[data-phase="RESULTS"] #utility{display:none}}
@media(pointer:coarse){#desktop-help{display:none!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.card,#toast,.brand{transform:none}#toast{left:10%;width:80%}}
#mute{white-space:pre-line}#storage-status{font-size:13px;line-height:1.35;border-left:3px solid #845ab5;padding-left:9px}
/* Keep the central chase/contact corridor clear, including short iframes.
   Secondary actions sit above the outside thumb clusters, never over the car. */
#touch .actions{display:contents}
#touch .actions button{position:absolute;bottom:74px}
#touch [data-action="horn"]{left:0}
#touch [data-action="drift"]{right:0}
@media(max-width:650px){#touch .actions button{bottom:68px}}
@media(max-height:440px){#touch .actions button{bottom:60px}}
