:root{--cream:#fff2d9;--red:#d3382c;--ink:#1c1717;--muted:#c3b6a6}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#17171c;color:var(--cream);font-family:Arial,Helvetica,sans-serif;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffcf66;outline-offset:5px}button:disabled{opacity:.5;cursor:wait}#game{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden}#world{position:absolute;width:100%;height:100%;inset:0;display:block}.hidden{display:none!important}.vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 40%,transparent 40%,#17131b66)}.topbar{position:absolute;z-index:12;inset:0 0 auto;height:94px;display:flex;align-items:center;justify-content:space-between;padding:16px 4%;gap:16px}.brand{background:#fff3dc;border-radius:5px;padding:5px 12px;line-height:0;box-shadow:0 3px 20px #0002}.brand img{width:155px;height:52px;object-fit:contain}.edition{font-size:10px;font-weight:bold;letter-spacing:2.3px;color:#fff5de}.edition span{margin:0 15px;opacity:.4}.top-actions{display:flex;gap:9px}.icon-button{position:relative;background:#211d23a8;backdrop-filter:blur(12px);border:1px solid #fff3;min-width:42px;height:42px;border-radius:50%;font-size:23px}.sound-off{position:absolute;right:6px;bottom:8px;font-size:14px}.screen{position:absolute;inset:0}.menu{background:linear-gradient(90deg,#171720f5 0%,#171720e6 20%,#17172055 58%,transparent 80%)}.menu-content{position:absolute;left:7.5%;top:clamp(100px,15vh,170px);max-width:470px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;display:flex;align-items:center;gap:10px}.eyebrow i,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f5b55b;box-shadow:0 0 12px #f4b960}h1{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(85px,11.5vw,166px);letter-spacing:-4px;line-height:.84;margin:20px 0 24px;transform:skew(-5deg);font-weight:900}h1 span{color:#ed5142;text-shadow:3px 3px 0 #963229}.tagline{font-size:clamp(20px,2vw,27px);line-height:1.22;font-weight:700;letter-spacing:-.8px;margin:0 0 13px}.intro{font-size:13px;line-height:1.65;color:#c7b9ad;margin:0 0 22px}.race-specs{display:flex;border-top:1px solid #fff2;border-bottom:1px solid #fff2;padding:14px 0;gap:23px;margin-bottom:20px}.race-specs span{font-size:8px;letter-spacing:1px;color:#baa99a}.race-specs strong{display:block;font-size:19px;margin-bottom:5px;color:var(--cream);letter-spacing:0}.control-choice{display:flex;padding:4px;gap:3px;background:#0d0d1599;border:1px solid #fff2;border-radius:8px}.choice{flex:1;padding:11px 10px;background:transparent;font-size:16px;border-radius:5px;color:#b4a798}.choice span{font-size:11px;font-weight:bold;margin-left:5px}.choice.active{background:#f5e9d7;color:#252027;box-shadow:0 2px 12px #0002}.mode-help{font-size:10px;color:#cebcaa;min-height:14px;margin:11px 0 15px}.primary{display:flex;align-items:center;justify-content:space-between;gap:25px;background:var(--red);padding:17px 22px;font-size:12px;font-weight:900;letter-spacing:1.5px;border-radius:5px;box-shadow:0 5px 0 #8d2925,0 10px 25px #0002;transition:background .15s,transform .15s;min-height:51px;width:100%}.primary:hover{background:#ed4b3c;transform:translateY(-1px)}.primary span{font-size:23px;line-height:16px}.small-note{text-align:center;font-size:9px;letter-spacing:.4px;color:#a9988a;margin-top:16px}.scene-label{position:absolute;bottom:16%;right:5%;font-size:10px;font-weight:bold;letter-spacing:2px;text-shadow:0 2px 8px #000}.scene-label .live-dot{margin-right:8px;background:#9cc498}.scene-label div{font-size:8px;font-weight:normal;margin-top:10px;letter-spacing:1px;opacity:.7}.menu-footer{position:absolute;bottom:22px;left:4%;right:4%;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.7px;color:#a89b91}.race-top{position:absolute;top:106px;left:4%;right:4%;display:flex;align-items:center;justify-content:space-between;gap:30px;text-shadow:0 2px 8px #0007}.position small,.timer small{display:block;font-size:9px;letter-spacing:2px;font-weight:bold;color:#ded1c1}.position b{font-size:48px;line-height:1.1;font-style:italic}.position span{font-size:17px;opacity:.7}.progress-wrap{max-width:440px;flex:1}.route-label{display:flex;justify-content:space-between;font-size:9px;font-weight:bold;letter-spacing:1px;margin-bottom:10px}.track{position:relative;height:4px;background:#0004;border-radius:5px}.track i{display:block;background:#ef5743;box-shadow:0 0 10px #fa5c49;height:100%;width:0}.track>span{position:absolute;right:-4px;top:-8px;font-size:18px}.timer{text-align:right}.timer strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;margin-top:10px;font-weight:500}.turn-hint{position:absolute;top:29%;left:50%;transform:translateX(-50%);border:1px solid #fff2;background:#14181e70;backdrop-filter:blur(7px);border-radius:30px;padding:10px 17px;font-size:18px;display:flex;align-items:center;gap:9px;white-space:nowrap}.turn-hint span{font-size:10px;font-weight:bold;letter-spacing:1px}.lower-hud{position:absolute;bottom:28px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:end;pointer-events:none;text-shadow:0 2px 10px #0009}.speed strong{font-size:60px;line-height:1;font-style:italic;font-weight:900;letter-spacing:-4px;font-variant-numeric:tabular-nums}.speed span{display:block;font-size:10px;letter-spacing:3px;margin-top:5px}.slice-count{display:flex;align-items:center;gap:10px;padding-bottom:5px}.slice-count>span{font-size:25px}.slice-count strong{font-size:28px}.slice-count small{font-size:9px;letter-spacing:1px}#map{position:absolute;right:3%;top:34%;width:80px;height:130px;opacity:.85}#controlCaption{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:1.3px;color:#f9e8d4aa;white-space:nowrap}#touchControls{position:absolute;left:4%;right:4%;bottom:125px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}.arrows{display:flex;gap:14px}.arrows button{pointer-events:auto;width:65px;height:65px;background:#161b2488;backdrop-filter:blur(6px);border:1px solid #fff5;border-radius:50%;font-size:46px;line-height:40px;touch-action:none;user-select:none}.arrows button:active,.arrows button.pressed{background:#f6e8d5;color:#2c2525}#boost{pointer-events:auto;width:100px;height:65px;background:#b533288c;backdrop-filter:blur(5px);border:1px solid #ff9a7970;border-radius:13px;touch-action:none;font-size:11px;font-weight:900;letter-spacing:1px}#boost>span{font-size:21px;display:block;margin-bottom:2px}#boost>div{height:3px;background:#0005;margin:6px 12px 0}#boostFill{height:3px;display:block;background:#ffc978;width:100%}#boost:active{background:#df533d}#countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:Impact,Arial,sans-serif;font-size:145px;color:#fff2d9;text-shadow:5px 5px 0 #c73528;pointer-events:none;z-index:14}#toast{position:absolute;top:22%;left:50%;transform:translate(-50%,-8px);border-radius:7px;background:#fff2d9;color:#292024;padding:12px 20px;font-size:12px;font-weight:bold;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;text-align:center;z-index:30}#toast.visible{opacity:1;transform:translate(-50%,0)}#impact{position:absolute;inset:0;pointer-events:none;z-index:2;border:0 solid #f04832;box-shadow:inset 0 0 60px #ef3c2988;opacity:0;transition:opacity .15s}.modal{position:absolute;inset:0;z-index:25;display:grid;place-items:center;background:#171723a8;backdrop-filter:blur(10px);padding:20px}.panel{width:min(420px,100%);background:#211d25;border:1px solid #ffefda22;box-shadow:0 25px 80px #0004;border-radius:15px;padding:32px}.panel h2,.finish-panel h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:900;font-size:62px;line-height:1;margin:17px 0}.panel p{font-size:14px;color:#bdac9c;margin-bottom:25px}.secondary{padding:15px 20px;border:1px solid #fff3;border-radius:5px;background:#ffffff0a;font-size:11px;font-weight:bold;width:100%;margin-top:14px}.sensitivity{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#c7b9ad;margin:26px 0 16px;gap:20px}.sensitivity input{width:110px;accent-color:#d3382c}.text-button{display:block;background:none;color:#c0b4a9;margin:10px auto;padding:7px;font-size:11px}.finish-screen{position:absolute;inset:0;z-index:20;background:linear-gradient(0deg,#18141ce6,transparent 70%);display:flex;align-items:end;justify-content:center;padding:25px}.finish-panel{width:min(600px,100%);text-align:center;background:#211c25ed;border:1px solid #fff3;border-radius:13px;padding:25px 30px;backdrop-filter:blur(10px)}.finish-panel .eyebrow{justify-content:center;font-size:8px}.finish-panel h2{font-size:51px;margin:13px 0}.finish-panel>p{font-size:12px;color:#c8b9a9}.results{display:flex;justify-content:space-evenly;border-block:1px solid #fff2;padding:15px 0;margin:18px 0 0}.results small{display:block;font-size:8px;letter-spacing:2px;color:#c5b5a5;margin-bottom:7px}.results strong{font-size:25px;font-variant-numeric:tabular-nums}.finish-buttons{display:flex;gap:12px;margin-top:18px}.finish-buttons .secondary{margin:0;flex:1}.finish-buttons .primary{flex:1.5}.best-time{font-size:10px!important;margin:12px 0 0}.racing .edition{opacity:.65}
@media(min-width:1000px) and (max-height:850px){.menu-content{top:100px}h1{font-size:110px;margin:15px 0}.intro{display:none}.tagline{font-size:23px}.race-specs{margin-bottom:13px;padding:10px 0}.menu-content{max-width:330px}.race-specs strong{font-size:17px}.small-note{font-size:8px}.mode-help{margin-bottom:10px}}
@media(max-width:700px){.topbar{height:76px;padding:10px 5%}.brand img{width:120px;height:40px}.brand{padding:3px 8px}.edition{display:none}.icon-button{min-width:36px;height:36px;font-size:21px}.top-actions{gap:6px}.menu{background:linear-gradient(90deg,#171720ec, #1717208a 60%,#17172030)}.menu-content{top:105px;left:7%;width:78%;max-width:335px}h1{font-size:100px;line-height:.83;margin:19px 0 20px}.tagline{font-size:23px}.intro{font-size:12px;margin-bottom:18px}.race-specs{padding:12px 0;margin-bottom:17px;gap:22px}.eyebrow{font-size:8px;letter-spacing:1.5px}.scene-label{display:none}.menu-footer{font-size:6px;bottom:max(14px,env(safe-area-inset-bottom))}.race-top{top:90px;gap:18px}.position b{font-size:38px}.position small,.timer small{font-size:7px}.position span{font-size:14px}.timer strong{font-size:17px}.route-label{font-size:7px;gap:10px}.progress-wrap{max-width:44%}.turn-hint{top:26%;font-size:18px;padding:8px 13px}.turn-hint span{font-size:8px}.speed strong{font-size:45px}#touchControls{bottom:110px}.arrows{gap:10px}.arrows button{width:61px;height:61px}#boost{width:83px;height:63px}.lower-hud{bottom:40px}.speed span{font-size:8px}.slice-count small{display:none}#controlCaption{font-size:6px;bottom:15px}.finish-screen{padding:14px}.finish-panel{padding:21px}.finish-panel h2{font-size:42px}.finish-panel>p{font-size:11px}.finish-buttons{flex-direction:column}.finish-buttons .primary{justify-content:center}.finish-buttons .secondary{padding:12px}.results strong{font-size:23px}#map{width:60px;height:105px;top:36%}}
@media(max-height:560px) and (orientation:landscape){.topbar{height:60px;padding:8px 3%}.brand img{width:108px;height:36px}.brand{padding:2px 7px}.icon-button{height:33px;min-width:33px}.menu-content{top:73px;left:5%;width:300px;max-width:45%}.eyebrow{font-size:7px}h1{font-size:71px;margin:12px 0;line-height:.85}h1 br{display:none}h1 span{margin-left:10px}.tagline{font-size:17px;margin-bottom:12px}.intro,.race-specs,.small-note{display:none}.control-choice{padding:2px}.choice{padding:9px}.choice span{font-size:9px}.mode-help{font-size:8px;margin:8px 0 11px}.primary{padding:12px 17px;min-height:43px;font-size:10px}.scene-label{display:block;right:5%;bottom:17%;font-size:8px}.scene-label div{font-size:6px}.menu-footer{bottom:12px}.race-top{top:70px}.position b{font-size:30px}.timer strong{font-size:18px;margin-top:4px}.progress-wrap{max-width:36%}.turn-hint{top:33%;padding:7px 13px}.lower-hud{bottom:15px}.speed strong{font-size:38px}.speed span{font-size:8px}#touchControls{bottom:65px}.arrows button{width:54px;height:54px}#boost{width:80px;height:56px}#map{width:52px;height:90px;top:35%}#controlCaption{bottom:9px;font-size:6px}.slice-count{font-size:20px}.slice-count small{display:none}.panel{padding:20px;width:360px}.panel h2{font-size:38px;margin:10px 0}.panel p{margin:10px 0}.panel .secondary{padding:9px;margin-top:10px}.sensitivity{margin:13px 0 5px}.text-button{display:inline-block;margin:4px 10px;padding:4px}.finish-screen{justify-content:end;padding:17px}.finish-panel{width:320px;padding:18px}.finish-panel h2{font-size:34px;margin:10px 0}.finish-panel>p{font-size:10px}.results{padding:10px 0;margin-top:10px}.results strong{font-size:22px}.finish-buttons{margin-top:10px;gap:8px}.finish-buttons .primary{padding:12px 8px;letter-spacing:.6px}.finish-buttons .secondary{font-size:9px;padding:10px}.finish-panel .best-time{font-size:8px!important}}
@media(max-height:700px) and (orientation:portrait){.menu-content{top:86px}h1{font-size:85px;margin:16px 0}.intro{display:none}.tagline{font-size:21px}.race-specs{padding:10px 0;margin:14px 0}.small-note{margin-top:12px}}

.menu-footer button{background:none;color:#e3cbb4;font-size:8px;letter-spacing:1px;padding:0}.preview-return{position:absolute;z-index:24;bottom:35px;left:50%;transform:translateX(-50%);width:auto;background:#211c25ed;backdrop-filter:blur(10px);padding:15px 24px}.preview-return.hidden{display:none}

.city-chatter{position:absolute;z-index:9;top:47%;right:8%;width:245px;max-width:55%;padding:15px 18px;background:#ffedcc;color:#302425;border:3px solid #302425;border-radius:12px;box-shadow:4px 5px 0 #30242566;transform:rotate(-3deg) scale(.8);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.city-chatter:after{content:"";position:absolute;bottom:-15px;right:32px;border-top:13px solid #302425;border-right:14px solid transparent}.city-chatter.visible{opacity:1;transform:rotate(-3deg) scale(1)}.city-chatter span{display:block;font-size:8px;letter-spacing:1.5px;font-weight:bold;color:#99452c;margin-bottom:7px}.city-chatter strong{font-size:18px;line-height:1.1;display:block;font-style:italic}@media(max-width:700px){.city-chatter{right:5%;top:48%;width:190px;padding:11px 13px}.city-chatter strong{font-size:14px}.city-chatter span{font-size:7px}}@media(max-height:560px){.city-chatter{top:44%;right:13%;width:195px;padding:10px 12px}.city-chatter strong{font-size:14px}}

/* Survival racing HUD. */
.life-hud{position:absolute;left:30px;top:177px;display:flex;align-items:center;gap:10px;padding:12px 17px;border:1px solid #f4d5ac40;background:#171b26b8;border-radius:12px;backdrop-filter:blur(8px)}
.life-hud .heart{font-size:29px;color:#fa765e}.life-hud strong{font-size:32px;font-variant-numeric:tabular-nums;line-height:1}.life-hud>span:last-child{font-size:10px;letter-spacing:1.5px;font-weight:800}.life-hud small{display:block;font-size:8px;letter-spacing:.7px;margin-top:5px;color:#e4c19b}
.life-hud.protected{border-color:#85e4cf}.life-hud.protected .heart,.life-hud.protected small{color:#85e4cf}.life-hud.last-life .heart{color:#ff493d}
#brake{border:1px solid #f8e6cc88;background:#202430aa;color:#fff1d4;border-radius:15px;padding:0 17px;min-height:60px;font-size:11px;letter-spacing:1px;font-weight:800;pointer-events:auto;touch-action:none;align-self:end;margin-left:auto;margin-right:12px}#brake.pressed{background:#b94032}
.crash-notice{position:absolute;z-index:14;top:37%;left:50%;transform:translateX(-50%);text-align:center;width:min(90%,600px);pointer-events:none;text-shadow:0 4px 24px #000}.crash-notice strong{display:block;font-size:clamp(40px,8vw,76px);font-style:italic;letter-spacing:-3px;color:#fff1d4}.crash-notice span{display:block;margin-top:10px;font-size:14px;font-weight:700;background:#20232cd9;padding:12px 16px;border-radius:8px;max-width:380px;margin-inline:auto}
.survival-tip{padding:15px;border:1px solid #dec19b33;border-radius:10px;font-size:13px!important;line-height:1.6!important}#gameOverScreen .secondary{margin-top:12px;width:100%}
@media(max-width:650px){.life-hud{left:18px;top:146px;padding:8px 11px;gap:7px}.life-hud strong{font-size:25px}.life-hud .heart{font-size:24px}.life-hud>span:last-child{font-size:9px}.life-hud small{font-size:7px}#brake{padding:0 12px;min-height:58px;margin-right:8px}.small-note{font-size:9px}.race-specs span{font-size:8px}.race-specs strong{font-size:16px}}
@media(max-height:560px) and (orientation:landscape){.life-hud{top:135px;left:22px;padding:7px 10px}.life-hud strong{font-size:23px}.life-hud .heart{font-size:22px}.life-hud small{font-size:7px}.life-hud>span:last-child{font-size:8px}#brake{min-height:48px;padding:0 13px}.crash-notice{top:32%}.small-note{font-size:8px}}

/* Keep the road clear: speech and pickup feedback live in a small footer strip. */
.city-chatter{top:auto;right:auto;bottom:max(12px,env(safe-area-inset-bottom));left:50%;width:max-content;max-width:min(540px,calc(100% - 32px));padding:5px 10px;border:1px solid #fff2;border-radius:5px;background:#171b26c9;color:#fff2d9;box-shadow:none;transform:translateX(-50%);transition:opacity .15s;backdrop-filter:blur(5px)}
.city-chatter.visible{transform:translateX(-50%)}.city-chatter:after{display:none}.city-chatter span{display:none}.city-chatter strong{font-size:11px;line-height:16px;font-style:normal;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.racing #controlCaption{display:none}.toast-active .city-chatter{opacity:0}
.racing #toast{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-width:min(540px,calc(100% - 32px));padding:5px 10px;font-size:11px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translateX(-50%);border:1px solid #fff2;background:#171b26e6;color:#fff2d9;box-shadow:none}
.turn-hint{top:184px;max-width:calc(100% - 380px);font-size:16px;padding:6px 12px}.turn-hint span{overflow:hidden;text-overflow:ellipsis;font-size:9px}
@media(max-width:700px){
 .racing .topbar{height:62px;padding:8px 4%}.racing .brand img{width:100px;height:33px}.racing .brand{padding:2px 7px}
 .race-top{top:74px;gap:15px}.position b{font-size:30px}.timer strong{font-size:16px;margin-top:5px}.position small,.timer small{font-size:6px;letter-spacing:1.3px}.route-label{font-size:6px;letter-spacing:.5px}
 .life-hud{top:122px;left:4%;max-width:34%;padding:5px 8px;gap:6px;border-radius:7px}.life-hud .heart{font-size:18px}.life-hud strong{font-size:21px}.life-hud>span:last-child{font-size:8px;letter-spacing:.6px}.life-hud small{display:none}.life-hud.protected small{display:block;font-size:6px;letter-spacing:0;margin-top:2px}
 .turn-hint{top:122px;left:auto;right:4%;transform:none;max-width:60%;padding:6px 10px;gap:6px;font-size:15px;border-radius:7px}.turn-hint span{font-size:8px;letter-spacing:.4px}
 .city-chatter strong,.racing #toast{font-size:10px;line-height:15px}.city-chatter,.racing #toast{padding:4px 8px}
 .lower-hud{bottom:calc(40px + env(safe-area-inset-bottom))}#touchControls{bottom:calc(110px + env(safe-area-inset-bottom))}
 #map{width:44px;height:78px;right:2%;opacity:.55}
}
@media(max-height:560px) and (orientation:landscape){
 .race-top{top:66px}.life-hud{top:112px;left:3%;padding:4px 8px;gap:5px}.life-hud .heart{font-size:17px}.life-hud strong{font-size:20px}.life-hud>span:last-child{font-size:7px}.life-hud small{display:none}.life-hud.protected small{display:block;font-size:6px;margin-top:2px}
 .turn-hint{top:112px;left:50%;right:auto;max-width:45%;transform:translateX(-50%);padding:5px 10px;font-size:14px}.turn-hint span{font-size:8px;letter-spacing:.4px}
 .city-chatter,.racing #toast{bottom:max(7px,env(safe-area-inset-bottom));max-width:calc(100% - 220px);padding:3px 8px}.city-chatter strong,.racing #toast{font-size:10px;line-height:14px}
 .lower-hud{bottom:15px}#touchControls{bottom:65px}
}

/* Arcade choices stay in the garage; race feedback stays at the screen edge. */
.garage-actions{display:flex;gap:10px;margin:20px 0}.garage-actions .secondary{flex:1;font-size:10px;padding:13px 9px;margin:0;letter-spacing:.4px}
#arcadeGarage,#leaderboardScreen{z-index:45;overflow:auto;padding:20px;align-items:flex-start;background:#11151deb;backdrop-filter:blur(10px)}
.arcade-panel{margin:auto;width:min(100%,520px);max-height:none;padding:28px;text-align:left}.arcade-panel h2{font-size:40px;margin:12px 0}.arcade-panel>p{font-size:12px;line-height:1.6}.arcade-panel fieldset{border:0;padding:0;margin:20px 0}.arcade-panel legend,.mode-label{font-size:11px;font-weight:bold;margin-bottom:10px;display:block;color:#edcfa8}.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.option-grid button{background:#2d303b;border:1px solid #fff3;border-radius:7px;padding:14px 10px;text-align:left;font-size:12px}.option-grid button[aria-pressed=true]{border:2px solid #f3c36c;background:#443828}.option-grid small{display:block;font-size:9px;line-height:1.5;color:#d7c3ad;margin-top:5px}.option-grid .kart-choice{border-left:6px solid #c7332c}.option-grid .teal{border-left-color:#238c91}.option-grid .gold{border-left-color:#efb92f}.option-grid .purple{border-left-color:#9562cb}.option-grid button:disabled{cursor:not-allowed;opacity:.55}
#raceMode{width:100%;padding:12px 9px;border:1px solid #fff4;background:#252936;color:#fff0d4;border-radius:6px;font-size:13px}.ghost-option{display:flex;align-items:center;gap:10px;font-size:12px;margin:18px 0 8px}.ghost-option input{width:19px;height:19px;accent-color:#dd5940}.garage-tip{background:#ffffff08;border-radius:6px;padding:12px;color:#e0d0b9}.board-note{font-size:10px!important;line-height:1.6!important;color:#d5c3ad}.score-list{white-space:pre-line;padding:12px 0;list-style:none;font-size:13px;line-height:2}.arcade-panel .primary{width:100%}.arcade-status{position:absolute;top:240px;left:30px;max-width:calc(100% - 60px);padding:5px 9px;border-radius:5px;background:#171b26c9;color:#f6d399;font-size:10px;line-height:1.5;pointer-events:none}.arcade-results{font-size:12px!important;line-height:1.6!important;color:#f4c878}#submitRun{width:100%;font-size:11px}#finishScreen{overflow:auto}.finish-panel{max-height:calc(100dvh - 30px);overflow:auto}#brake{font-size:9px;max-width:100px}
@media(max-width:700px){.arcade-status{top:161px;left:4%;font-size:9px;max-width:92%}.arcade-panel{padding:22px}.arcade-panel h2{font-size:33px}.garage-actions{margin:15px 0}.garage-actions .secondary{font-size:9px}.finish-panel{padding:22px}.finish-panel h2{font-size:38px}}
@media(max-height:560px){.arcade-status{top:148px;left:3%;font-size:8px}#arcadeGarage,#leaderboardScreen{padding:12px}.arcade-panel{width:min(100%,620px)}.finish-panel{max-height:calc(100dvh - 24px)}}

/* Keep short screens inside the game viewport; dialogs scroll independently. */
#game{overflow:clip}.menu{overflow-y:auto}.menu-footer a{color:inherit;text-decoration:none}
@media(max-height:440px) and (orientation:landscape){
 .menu-content{top:65px}.menu-content h1{font-size:62px;margin:9px 0}.menu-content .tagline{display:none}
 .garage-actions{margin:10px 0}.garage-actions .secondary{padding:10px 8px;font-size:9px}
 .choice{padding:6px 9px}.mode-help{margin:6px 0 9px}.menu-content .primary{min-height:38px;padding:10px 17px}
}

/* Visible driver selection and a compact camera switch. */
.icon-button svg{display:block;margin:auto}.driver-preview{margin:12px 0 18px;background:#17202b;border:1px solid #f4d5ac2e;border-radius:10px;overflow:hidden}.driver-preview canvas{display:block;width:100%;height:240px}.driver-preview figcaption{text-align:center;font-size:10px;letter-spacing:.7px;color:#edcfa8;padding:9px;background:#111923}.camera-label{margin-top:16px}#cameraMode{width:100%;padding:12px 9px;border:1px solid #fff4;background:#252936;color:#fff0d4;border-radius:6px;font-size:12px}
/* Crash text stays away from the fireball in the middle of the road. */
.crash-notice{top:auto;bottom:190px;left:4%;transform:none;text-align:left;width:230px}.crash-notice strong{font-size:30px;letter-spacing:-1px}.crash-notice span{font-size:11px;line-height:1.4;margin-top:5px;padding:8px 10px}
@media(max-width:700px){.driver-preview canvas{height:210px}.crash-notice{bottom:188px;width:180px}.crash-notice strong{font-size:26px}.racing .top-actions{gap:4px}.racing .icon-button{min-width:33px;width:33px;height:33px}}
@media(max-height:560px) and (orientation:landscape){.crash-notice{bottom:130px;width:200px}.crash-notice strong{font-size:25px}.driver-preview canvas{height:160px}}

#tiltFeedback{position:absolute;bottom:max(42px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;font-size:10px;background:#171b26e8;border:1px solid #fff3;border-radius:6px;padding:5px 8px;pointer-events:auto;white-space:nowrap}#tiltFeedback.hidden{display:none}#centerTilt{background:#fff0d5;color:#222;padding:8px;border-radius:4px;font-size:10px;font-weight:bold}.tilt-meter{width:66px;height:5px;background:#fff3;position:relative;border-radius:3px}.tilt-meter i{position:absolute;left:31px;top:-2px;width:5px;height:9px;background:#ffc94d;border-radius:3px}

#phoneSetup{z-index:70;overflow-y:auto;align-items:start;background:#171723f5}#phoneSetup .setup-panel{margin:auto;width:min(470px,100%);padding:24px}#phoneSetup h2{font-size:38px;margin:14px 0}#phoneSetup h3{font-size:16px;margin:20px 0 10px}#phoneSetup p{font-size:12px;line-height:1.5;margin:10px 0}#phoneSetup .primary{width:100%;font-size:12px;min-height:46px;padding:14px}.setup-row{display:flex;gap:8px}.setup-row .secondary{margin-top:6px;padding:12px 6px}.setup-meter{height:32px;position:relative;display:flex;align-items:center;justify-content:space-between;max-width:180px;margin:8px auto;color:#c6bdaf;font-size:10px;border-bottom:2px solid #fff3}.setup-meter i{position:absolute;left:calc(50% - 3px);width:6px;height:20px;background:#ffc94d;border-radius:3px}.setup-diagnostics{color:#d5c9b8;font-size:10px!important;border-top:1px solid #fff3;padding-top:12px;overflow-wrap:anywhere}#setupStart:disabled{opacity:.45}#setupClose,#setupMuted{min-height:40px}

.leaderboard-form{margin:18px 0 8px;text-align:left}.leaderboard-form label{display:block;font-size:13px;font-weight:700;color:#ffe5b8;margin-bottom:8px}.leaderboard-form input{display:block;width:100%;min-height:48px;border:1px solid #eac78777;border-radius:7px;background:#111923;color:#fff1d4;padding:12px;font:16px Arial,sans-serif;box-sizing:border-box}.leaderboard-form input:focus{outline:2px solid #efbc78;outline-offset:2px}.leaderboard-form p{font-size:11px;line-height:1.5;color:#d5c3ad;margin:8px 0}.leaderboard-form .secondary{margin-top:10px}.leaderboard-form button:disabled{opacity:.5;cursor:wait}

/* Race location is visible before starting; maps load only when selected. */
.route-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:13px 15px;border:1px solid #efbc7855;border-radius:8px;background:#211d28e8;text-align:left;margin:14px 0 3px}.route-launch small{display:block;font-size:8px;letter-spacing:1.3px;color:#e5bd85;margin-bottom:6px}.route-launch strong{font-size:17px}.route-launch>span:last-child{font-size:27px;color:#f0c47c}.route-launch:hover{border-color:#efbc78;background:#37303a}
#routePicker{z-index:40;overflow-y:auto;align-items:start}.routes-panel{width:min(760px,100%);margin:auto}.routes-panel h2{font-size:clamp(30px,5vw,49px);margin-bottom:12px}.routes-panel .route-intro{font-size:13px;line-height:1.5;margin:0 0 20px}.route-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.route-card{--route-accent:#ed6b51;text-align:left;padding:0 16px 15px;overflow:hidden;border-radius:10px;border:1px solid #fff3;background:#1b222c;display:flex;flex-direction:column;gap:7px;min-width:0}.route-card.liberty{--route-accent:#7cdbc6}.route-card.bronx{--route-accent:#a7c7ff}.route-card.broadway{--route-accent:#f5a5d5}.route-card[aria-pressed=true]{border:2px solid var(--route-accent);box-shadow:inset 0 0 0 2px #0003}.route-card:hover{background:#303039;border-color:var(--route-accent)}.route-art{display:block;height:100px;width:calc(100% + 32px);margin:0 -16px 5px;background:linear-gradient(135deg,#ffffff10,#ffffff00);color:var(--route-accent)}.route-art svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}.route-card small{font-size:8px;letter-spacing:1.2px;color:var(--route-accent);font-weight:800}.route-card strong{font-size:19px;line-height:1.2}.route-card>span:not(.route-art){font-size:11px;color:#e1d5c4;line-height:1.4}.route-card em{font-style:normal;font-size:10px;color:#baa995;line-height:1.4;margin-top:auto}.routes-panel .route-note{font-size:11px;line-height:1.6;margin:18px 0 4px}.menu-content{padding-bottom:75px}.menu-footer{position:fixed;pointer-events:none}.menu-footer>*{pointer-events:auto}.menu-content h1{font-size:clamp(80px,9.2vw,130px)}
@media(max-width:700px){.route-launch{padding:11px 13px}.route-launch strong{font-size:16px}.menu-content{top:94px;width:86%;left:7%}.menu-content h1{font-size:82px;margin:15px 0}.menu-content .intro{display:none}.menu-content .tagline{font-size:20px}.routes-panel{padding:21px}.route-grid{gap:9px}.route-card{padding:0 11px 13px}.route-art{height:75px;width:calc(100% + 22px);margin:0 -11px 4px}.route-card strong{font-size:16px}.route-card>span:not(.route-art){font-size:10px}.route-card em{font-size:9px}.routes-panel .eyebrow{font-size:8px}}
@media(max-width:360px){.route-grid{grid-template-columns:1fr}.route-art{height:70px}.route-card strong{font-size:18px}}
@media(max-height:560px) and (orientation:landscape){.menu-content{top:66px}.menu-content h1{font-size:62px}.route-launch{padding:8px 11px;margin-top:6px}.route-launch strong{font-size:14px}.route-launch small{font-size:7px;margin-bottom:3px}.menu-content .tagline{display:none}.route-art{height:70px}}

#retryAssets[hidden]{display:none}#assetStatus:empty{display:none}.primary:disabled{opacity:.65;cursor:wait}
/* Build 24: commerce stays in menus; sponsors occupy the world, never steering controls. */
[hidden]{display:none!important}
.garage-actions{flex-wrap:wrap}
.pack-launch{border-color:#e3bb6c!important;color:#f3cf87!important}
.pack-locked{position:relative}
.route-card.pack-locked:after{content:'CITY PACK · $2.99';display:block;margin-top:10px;color:#f3cf87;font-size:11px;letter-spacing:.08em;font-weight:800}
.option-grid .pack-locked{border-style:dashed;opacity:.82}
.city-pack-panel{text-align:left;max-width:520px}
.pack-price{font-size:46px;font-weight:900;color:#f2c86f;line-height:1.1;margin:20px 0}
.pack-price span{display:inline-block;font-size:14px;font-weight:500;color:#c5b9a8}
.pack-includes{padding:0;list-style:none;border-top:1px solid #fff2}
.pack-includes li{padding:12px 0;border-bottom:1px solid #fff2;font-size:16px}
.pack-includes li:before{content:'✓';color:#f2c86f;margin-right:12px}
.pack-free,.reward-helper{font-size:14px!important;color:#c5b9a8!important}
.revive-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.revive-actions>button{flex:1 1 220px;margin:0!important;font-size:14px;padding:18px 14px}
.reward-test-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reward-test-options button{width:100%;margin:0}
#cityPackScreen{z-index:90}#rewardSimulator{z-index:100}
.sponsor-plaque{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed #b8c4cc65;background:#10212b99;border-radius:8px;padding:10px 14px;margin:14px 0;max-width:440px;text-align:left;color:#d6e3e9}
.sponsor-plaque small{font-size:9px;letter-spacing:.14em;font-weight:700;color:#9eb6c4}
.sponsor-plaque span{font-size:12px}.sponsor-plaque img{max-width:140px;max-height:38px;object-fit:contain}
.track-presented,.track-sponsor-label{font-size:11px;letter-spacing:.09em;color:#b6c8d2;margin:9px 0}
.preview-tools{position:relative;z-index:4;max-width:440px;margin:14px 0;padding:12px;background:#102e39;border:1px solid #3a6a7c;border-radius:8px;font-size:12px;color:#d4e5ec}
.preview-tools summary{cursor:pointer;font-weight:800;letter-spacing:.08em}.preview-tools p{font-size:12px!important;margin:8px 0}.preview-tools button{font-size:12px;padding:10px 12px;margin:4px 0}
@media(max-width:600px){.revive-actions{flex-direction:column}.revive-actions>button{flex:none;width:100%}.pack-price{font-size:40px}.sponsor-plaque{padding:9px 12px;margin:10px 0}.preview-tools{margin:10px 20px;max-width:calc(100% - 40px)}}
.menu-content{position:relative;top:auto;margin-top:110px;padding-bottom:24px}
#cityPackScreen,#rewardSimulator,#gameOverScreen{overflow-y:auto;align-items:start}
#cityPackScreen>.panel,#rewardSimulator>.panel,#gameOverScreen>.panel{margin:auto 0}
.menu-content h1{font-size:clamp(76px,8vw,112px);margin:16px 0 20px}
.menu-footer{position:relative;bottom:auto;left:auto;right:auto;margin:20px 4% 26px;gap:16px;flex-wrap:wrap;pointer-events:auto}
.preview-tools{margin-left:0;margin-right:0;max-width:100%}
@media(max-width:600px){.menu-content{margin-top:94px;left:7%;width:86%}.scene-label{display:none}.menu-footer{font-size:8px;line-height:1.6}}
@media(max-height:520px) and (orientation:landscape){.menu-content{margin-top:72px}.menu-content h1{font-size:62px}}

/* Build 26: short landscape screens keep navigation above the road. */
@media (max-height:560px) and (orientation:landscape){
 .racing{--hud-left:max(12px,env(safe-area-inset-left));--hud-right:max(12px,env(safe-area-inset-right));--hud-bottom:max(8px,env(safe-area-inset-bottom))}
 .racing .topbar{height:52px;padding:4px var(--hud-right) 4px var(--hud-left);gap:8px;pointer-events:none}
 .racing .topbar a,.racing .topbar button{pointer-events:auto}
 .racing .edition{display:none}
 .racing .brand{padding:2px 6px}.racing .brand img{width:84px;height:28px}
 .racing .top-actions{gap:2px}.racing .icon-button{min-width:40px;width:40px;height:40px;font-size:21px}
 .racing .turn-hint{top:8px;left:calc(var(--hud-left) + 110px);right:calc(var(--hud-right) + 180px);transform:none;max-width:none;min-width:0;height:36px;justify-content:center;padding:4px 8px;gap:6px;font-size:17px;border-radius:7px;pointer-events:none;background:#14181ed9}
 .racing .turn-hint span{min-width:0;font-size:9px;letter-spacing:.3px}
 .racing .race-top{top:54px;left:var(--hud-left);right:var(--hud-right);gap:14px;pointer-events:none}
 .racing .position small,.racing .timer small{font-size:6px;letter-spacing:1px}
 .racing .position b{font-size:25px}.racing .position span{font-size:11px}
 .racing .timer strong{font-size:15px;margin-top:2px}
 .racing .progress-wrap{max-width:36%}.racing .route-label{font-size:7px;margin-bottom:5px;gap:8px}
 .racing .life-hud{top:92px;left:var(--hud-left);max-width:none;padding:3px 7px;gap:4px;pointer-events:none}
 .racing .life-hud strong{font-size:18px}.racing .life-hud .heart{font-size:16px}.racing .life-hud>span:last-child{font-size:7px}
 .racing .arcade-status{top:124px;left:var(--hud-left);font-size:8px;padding:3px 6px;max-width:180px}
 .racing #map{top:94px;right:var(--hud-right);width:36px;height:62px;opacity:.5;pointer-events:none}
 .racing #touchControls{left:var(--hud-left);right:var(--hud-right);bottom:calc(54px + var(--hud-bottom))}
 .racing .arrows{gap:8px}.racing .arrows button{width:50px;height:50px;font-size:40px}
 .racing #brake{min-height:48px;padding:0 11px;margin-right:8px;font-size:9px}
 .racing #boost{width:70px;height:50px;font-size:10px}.racing #boost>span{font-size:17px}
 .racing .lower-hud{left:var(--hud-left);right:var(--hud-right);bottom:var(--hud-bottom)}
 .racing .speed strong{font-size:34px}.racing .speed span{font-size:7px;margin-top:2px}.racing .slice-count strong{font-size:24px}
 .racing #tiltFeedback{left:calc(var(--hud-left) + 76px);right:auto;bottom:var(--hud-bottom);transform:none;max-width:220px;height:40px;padding:0 4px;gap:5px;font-size:9px}
 .racing #tiltState{max-width:84px;overflow:hidden;text-overflow:ellipsis}
 .racing #tiltFeedback .tilt-meter{display:none}
 .racing #centerTilt{height:38px;padding:0 8px;font-size:9px}
 .racing .city-chatter{display:none}
 .racing #toast{bottom:var(--hud-bottom);left:calc(var(--hud-left) + 305px);right:calc(var(--hud-right) + 75px);transform:none;max-width:none;width:auto;font-size:9px;line-height:14px}
}
@media (max-height:360px) and (orientation:landscape){
 .racing .arcade-status,.racing #map{display:none}
}

#graphicsQuality{width:100%;min-height:44px;padding:10px;border:1px solid #fff4;border-radius:6px;background:#252936;color:#fff0d4;font:16px Arial,sans-serif}

/* Driving controls are hold gestures, never selectable text or iOS callout targets. */
#hud,#hud *,#world{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#touchControls button{touch-action:none}
#touchControls button *{pointer-events:none}

/* Keep the top-view right thumb controls vertically aligned. */
.top-view #brake{position:absolute;right:0;bottom:calc(100% + 10px);width:100px;margin:0}
@media(max-width:700px){.top-view #brake{width:83px}}
@media(max-height:560px) and (orientation:landscape){.racing.top-view #brake{width:70px;margin:0}}
:root{--gold:#edc575}
.career-launch{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:14px 16px;margin:15px 0;border:1px solid #edc57566;border-radius:8px;background:linear-gradient(120deg,#332a23,#211d25)}
.career-launch small{font-size:8px;letter-spacing:1.7px;color:var(--gold);display:block;margin-bottom:5px}.career-launch strong{font-size:16px;display:block}.career-launch span span{font-size:11px;color:#d3c0a5;display:block;margin-top:5px}.career-launch b{font-size:24px;color:var(--gold)}
#careerScreen{overflow-y:auto;align-items:start;padding:20px}.career-panel{width:min(640px,100%);margin:auto}.career-panel h2{font-size:clamp(34px,6vw,54px);margin:12px 0 22px}.career-panel h3{font-size:21px;margin:12px 0}.career-level{padding:20px;border:1px solid #edc57544;border-radius:10px;background:#fff3d908}.career-level small,.run-report small{display:block;font-size:9px;letter-spacing:1.5px;color:var(--gold)}.career-level strong{font-size:29px;display:block;margin:8px 0}.career-level span{font-size:12px;color:#cfbfaa}.career-level p{font-size:12px!important;margin:10px 0 0!important}.career-meter{height:5px;background:#ffffff12;border-radius:5px;margin-top:16px;overflow:hidden}.career-meter i{display:block;height:100%;background:var(--gold)}
.daily-card{margin:18px 0 24px;padding:20px;border-radius:10px;border:1px solid #dc604b88;background:#8d292522}.daily-card small{font-size:9px;letter-spacing:1px;color:#edb993}.daily-card p{font-size:14px;margin:12px 0!important}.daily-card #dailyState{font-size:11px;color:var(--gold)}.daily-card .primary{margin-top:20px;justify-content:center;min-height:48px}
.medal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.medal-card{padding:14px;background:#ffffff06;border:1px solid #ffffff18;border-radius:8px}.medal-card strong{display:block;font-size:13px}.medal-card span{display:block;margin-top:7px;font-size:12px;color:#edc575}.medal-rules{font-size:12px;margin-top:18px}.medal-rules summary{min-height:44px;padding:12px 0;cursor:pointer}.medal-rules p{font-size:12px!important;line-height:1.7}
.run-report{border:1px solid #edc57544;background:linear-gradient(135deg,#edc57512,#fff0);border-radius:10px;padding:18px;margin:18px 0;text-align:left}.run-report>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 15px}.run-report small{grid-column:1/-1}.run-report strong{font-size:30px;color:var(--gold)}.run-report #runXP{font-size:11px;color:#ecceb0;max-width:160px;text-align:right}.run-report p{font-size:12px!important;line-height:1.6!important;margin:8px 0 0!important;color:#d6c5b4}.run-report #runNext{border-top:1px solid #fff2;padding-top:9px;color:var(--gold)}.run-report strong[data-medal="4"]{color:#b8e9e6}.run-report strong[data-medal="2"]{color:#d4dce5}
#game .menu-content>#start{margin:12px 0 18px;min-height:52px}.finish-buttons{position:sticky;bottom:-1px;padding:12px 0 2px;background:#211c25}.finish-panel{scrollbar-width:thin}
@media(max-width:600px){.career-launch{padding:12px 14px}.career-panel{padding:22px 18px}.career-level,.daily-card{padding:16px}.medal-grid{grid-template-columns:1fr}.run-report{padding:14px}.run-report strong{font-size:26px}.career-panel .secondary{min-height:48px}}
@media(max-height:520px) and (orientation:landscape){.career-panel{max-width:640px}.medal-grid{grid-template-columns:1fr 1fr}.finish-panel{width:min(520px,85vw)}.run-report{padding:12px}.finish-buttons{position:static}}

.turn-hint svg{width:18px;height:18px;flex:none}

/* Thumb controls: tap drift once, then keep your thumb on steering. */
#game #touchControls{gap:12px}
#touchControls .pedals{display:grid;grid-template-columns:82px 102px;gap:8px;align-items:stretch;pointer-events:none}
#game #touchControls .pedals #brake,#game #touchControls .pedals #drift{position:static;inset:auto;width:100%;max-width:none;min-height:52px;height:52px;margin:0;padding:6px;border:1px solid #f8e6cc88;border-radius:12px;background:#202430df;color:#fff1d4;pointer-events:auto;touch-action:none;letter-spacing:.7px;font-size:11px;font-weight:800}
#game #touchControls .pedals #brake.pressed{background:#b94032}
#game #touchControls .pedals #drift{border-color:#edc575;background:#49391feb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#drift strong{font-size:12px}#drift small{font-size:7px;line-height:1.2;letter-spacing:.2px}
#game #touchControls .pedals #drift[aria-pressed=true]{background:#f4cd80;color:#241c11;box-shadow:0 0 0 2px #f4cd8044}
#game #touchControls .pedals #drift.sliding{background:#fff0d0;border-color:#fff0d0}
#game #touchControls .pedals #boost{grid-column:1/-1;width:100%;height:58px}
@media(max-width:700px){#touchControls .pedals{grid-template-columns:70px 90px;gap:7px}#game #touchControls{gap:8px}}
@media(max-width:360px){#game .arrows{gap:6px}#game .arrows button{width:54px;height:58px}#touchControls .pedals{grid-template-columns:62px 82px}}
@media(max-height:560px) and (orientation:landscape){#touchControls .pedals{grid-template-columns:64px 88px;gap:6px}#game #touchControls .pedals #brake,#game #touchControls .pedals #drift{height:48px;min-height:48px}#game #touchControls .pedals #boost{height:48px}#game #touchControls .pedals #boost>span{display:inline;margin-right:4px;font-size:17px}#game #touchControls .pedals #boost>div{margin-top:5px}}
