.difficulty-picker{display:flex;gap:14px;align-items:center;font-size:12px;color:#e8efff;margin:14px 0}.difficulty-picker select{background:#162745;color:white;border:1px solid #82a8dd66;border-radius:11px;padding:9px 13px;min-width:0;width:100%;font:inherit}.asset-game-status{font-size:10px!important;color:#d3dcea!important;line-height:1.5!important;margin:10px 0!important;max-width:500px}.asset-racer-label{font-size:14px;color:#e6f1ff;border:1px solid #99b9ff66;padding:12px;border-radius:12px}.game-tools .game-icon{flex-shrink:0}.controls-dialog{background:#12243c;color:#e8f1ff;border:1px solid #597aac;border-radius:22px;padding:26px;width:min(540px,calc(100% - 32px));max-height:85dvh;overflow:auto;box-shadow:0 25px 100px #001126aa}.controls-dialog::backdrop{background:#001126bb;backdrop-filter:blur(5px)}.controls-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px}.controls-dialog h2{font-size:22px;margin:0;color:white}.controls-dialog header button{background:#ffffff11;color:white;border:1px solid #ffffff33;border-radius:9px;font-size:28px;line-height:1;width:36px;height:36px}.controls-dialog dl>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #ffffff18}.controls-dialog dd{font-size:12px;margin:0;align-self:center;text-align:right}.controls-dialog kbd{font:700 11px system-ui;background:#284565;border:1px solid #6e8dad;border-bottom-width:3px;padding:5px 8px;border-radius:6px;display:inline-block}.controls-dialog p{font-size:12px;line-height:1.75;color:#c1d1e8}.controls-dialog:not([open]){display:none}#hud-difficulty{font-size:9px;color:#bed4ef}.racer-option:not(.selected)>span{visibility:hidden}.game-page .keyboard-help{display:block!important;opacity:.95;color:#d5e5fa}.game-page .intro-card{max-height:calc(100dvh - 94px);overflow:auto;scrollbar-width:thin}.game-page .racer-options{gap:7px}.game-page .racer-option{width:54px;min-width:0}.game-page .intro-message{max-width:480px}
@media(pointer:fine){.game-page .desktop-help{display:block!important;font-size:11px;background:#0d2447c9;border:1px solid #83b7f14d;border-radius:10px;padding:9px 16px;color:#d8e9ff;letter-spacing:.2px}.game-page #race-bottom{padding-bottom:18px}.game-page .touch-help{display:none}}
@media(max-width:680px){.game-page .game-top{padding-top:max(10px,env(safe-area-inset-top));padding-left:12px;padding-right:12px;gap:9px}.game-page .game-tools{gap:5px}.game-page .game-icon{width:34px;height:34px;font-size:16px}.game-page .game-wordmark{width:86px}.game-page .game-wordmark img{max-width:86px}.game-page .intro-overlay{padding:84px 16px 18px;align-items:flex-start}.game-page .intro-card{padding:20px;max-height:calc(100dvh - 108px);width:100%;background:#122849d9;backdrop-filter:blur(12px);border:1px solid #abcfff44;border-radius:19px}.game-page .intro-card h1{font-size:30px;line-height:1.1}.game-page .intro-message{font-size:12px;line-height:1.55}.game-page .racer-option{width:44px}.game-page .racer-choice{margin:13px 0}.game-page .game-eyebrow{font-size:9px}.game-page .game-button{min-height:44px;font-size:13px}.game-page .keyboard-help{font-size:9px;margin-top:12px;line-height:1.6}.game-page .difficulty-picker{font-size:10px}.game-page .difficulty-picker select{font-size:11px;padding:9px}.game-page .touch-controls{padding:4px max(9px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));gap:12px;align-items:flex-end;display:flex;justify-content:space-between}.game-page .direction-pad{gap:6px;display:flex}.game-page .direction-pad button{width:50px;height:56px}.game-page .action-pad{display:grid;grid-template-columns:repeat(2,53px);gap:7px}.game-page .action-pad button{width:53px;height:52px}.game-page .action-pad small,.game-page .direction-pad small{font-size:7px;letter-spacing:.2px}.game-page .action-pad span,.game-page .direction-pad span{font-size:23px}.game-page .turbo-display{width:180px;margin-left:12px;margin-bottom:8px}.game-page .race-progress{font-size:8px;margin-bottom:7px}.game-page .hud-chip{padding:6px 8px}.game-page .heart-chip strong{font-size:20px}.game-page .time-chip{display:none}.game-page .position-chip strong{font-size:20px}.game-page #minimap{max-width:98px;max-height:82px;right:10px;top:110px}.game-page .next-stop{left:12px;top:85px;max-width:200px;font-size:10px}.game-page .district-badge{top:150px;left:12px;font-size:9px}}
@media(max-height:500px) and (orientation:landscape){.game-page .intro-overlay{padding-top:58px}.game-page .intro-card{max-height:calc(100dvh - 75px);width:390px;padding:16px}.game-page .intro-card h1{font-size:25px}.game-page .action-pad{display:flex}.game-page .touch-controls button{width:48px;height:48px}.game-page .game-top{padding-top:8px}.game-page .district-badge{top:66px}.game-page #minimap{top:68px;max-width:96px}.game-page .next-stop{top:100px}}

/* Mobile cockpit: steering stays under the left thumb; driving actions form a stable right-hand grid. */
@media(max-width:680px) and (pointer:coarse){
  .game-page #race-bottom{padding:0 max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .game-page .touch-controls{padding:0;align-items:end;gap:16px}
  .game-page .direction-pad{display:grid;grid-template-columns:repeat(2,58px);gap:9px;align-items:end}
  .game-page .direction-pad button{width:58px;height:62px;border-radius:19px}
  .game-page .action-pad{display:grid;grid-template-columns:50px 68px;grid-template-rows:50px 68px;grid-template-areas:"brake jump" "turbo drive";gap:8px;align-items:end}
  .game-page .action-pad button{position:static!important;margin:0;width:100%;height:100%;align-self:stretch}
  .game-page .reverse-control{grid-area:brake;border-radius:16px}
  .game-page .jump-control{grid-area:jump;border-radius:16px;opacity:1}
  .game-page .turbo-control{grid-area:turbo;border-radius:18px}
  .game-page .accelerate-control{grid-area:drive;border-radius:22px;border-width:2px}
  .game-page .action-pad .accelerate-control>span{font-size:36px}
  .game-page .action-pad .turbo-control>span{font-size:34px}
  .game-page .action-pad small,.game-page .direction-pad small{font-size:7px;bottom:7px}
  .game-page .turbo-display{margin:0 auto 9px;width:min(210px,58vw)}
}
@media(max-width:390px) and (pointer:coarse){
  .game-page .direction-pad{grid-template-columns:repeat(2,52px);gap:7px}
  .game-page .direction-pad button{width:52px;height:58px}
  .game-page .action-pad{grid-template-columns:46px 62px;grid-template-rows:46px 62px;gap:7px}
}
@media(max-height:500px) and (orientation:landscape) and (pointer:coarse){
  .game-page #race-bottom{padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  .game-page .direction-pad{display:grid;grid-template-columns:repeat(2,52px);gap:7px}
  .game-page .direction-pad button{width:52px;height:52px;border-radius:16px}
  .game-page .action-pad{display:grid;grid-template-columns:44px 58px;grid-template-rows:44px 58px;grid-template-areas:"brake jump" "turbo drive";gap:6px}
  .game-page .touch-controls button{width:100%;height:100%}
  .game-page .turbo-display{width:190px;max-width:34vw;margin:0 auto -28px}
}

/* Stable six-button cockpit, independent of pointer detection in mobile previews. */
.game-page .loading-screen{background:#12335b}.game-page .loading-track span{background:#ff7900}
.game-page .game-wordmark,.game-page .game-wordmark img{width:150px;max-width:150px;height:auto}
.game-page .intro-card{background:#102d50ed;border-color:#ff960080}.game-page .game-button:not(.secondary){background:linear-gradient(120deg,#ff9b00,#ff6800);color:#102946;font-weight:850}
.game-page .hud-chip,.game-page .next-stop,.game-page .district-badge{background:#102d50ed;border:1px solid #2d6594;color:#fff}
.game-page .heart-chip strong,.game-page .position-chip strong{color:#ffe329}
.game-page .asset-game-status{display:none}
@media(max-width:900px),(pointer:coarse){
 .game-page #race-bottom{padding:0 12px calc(10px + env(safe-area-inset-bottom))}
 .game-page .touch-controls{display:flex!important;position:relative;justify-content:space-between;align-items:end;gap:12px;padding:0;width:100%}
 .game-page .direction-pad{display:grid!important;grid-template-columns:repeat(2,clamp(46px,13vw,62px));gap:8px}
 .game-page .action-pad{display:grid!important;grid-template-columns:repeat(2,clamp(48px,14vw,68px));grid-template-rows:repeat(2,56px);grid-template-areas:"brake jump" "turbo drive";gap:8px}
 .game-page .touch-controls button{position:static!important;inset:auto!important;transform:none!important;margin:0!important;min-width:0!important;width:100%!important;height:56px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:14px!important;background:#12335bf2;border:2px solid #438ac0;box-shadow:0 3px 0 #06162b;touch-action:none;opacity:1}
 .game-page .reverse-control{grid-area:brake}.game-page .jump-control{grid-area:jump}.game-page .turbo-control{grid-area:turbo;background:#ffe329!important;color:#102d50!important}.game-page .accelerate-control{grid-area:drive;background:#ff7900!important;color:#102d50!important;border-color:#ffbc58!important}
 .game-page .touch-controls button span{position:static!important;font-size:25px!important;line-height:26px}
 .game-page .touch-controls button small{position:static!important;font-size:7px!important;line-height:13px;letter-spacing:.2px;color:inherit}
 .game-page .touch-controls button:active,.game-page .touch-controls button.pressed{filter:brightness(1.3);box-shadow:none}
 .game-page .desktop-help{display:none!important}.game-page .turbo-display{margin:0 auto 8px!important;width:170px;max-width:48vw}
 .game-page .game-top{display:flex;flex-wrap:wrap;padding:10px 12px;gap:8px;align-items:center}
 .game-page .game-wordmark,.game-page .game-wordmark img{width:108px;max-width:108px}
 .game-page .game-tools{margin-left:auto}.game-page .race-hud{order:3;width:100%;justify-content:space-between;gap:8px;margin:0}
 .game-page .next-stop{top:155px;left:12px;max-width:190px}.game-page .district-badge{top:211px;left:12px;max-width:190px}.game-page #minimap{top:125px;right:12px;max-width:85px;max-height:80px}
}
@media(max-height:500px) and (orientation:landscape){
 .game-page .race-hud{position:absolute;top:9px;left:155px;width:calc(100% - 340px);order:0}.game-page .next-stop{top:60px}.game-page .district-badge{top:105px}.game-page #minimap{top:60px}
 .game-page .action-pad{grid-template-rows:repeat(2,44px);grid-template-columns:repeat(2,54px);gap:6px}.game-page .touch-controls button{height:44px!important}.game-page .race-progress{display:none}.game-page .turbo-display{margin:0 auto -20px!important}
}

/* Readable intro and actionable souvenir, all breakpoints. */
.game-page .intro-card{box-sizing:border-box;padding:28px;border:1px solid #ff990055;border-radius:22px;width:min(490px,100%);max-width:490px}
.game-page .finish-postcard{pointer-events:auto}.game-page #download-postcard{grid-column:1/-1;width:100%;min-height:42px;padding:10px;font-size:12px}.game-page #postcard-status{grid-column:1/-1;font-size:10px;text-align:center;color:#304867;line-height:1.4}.game-page .heart-glyph{color:#39a4ff!important}
@media(max-width:720px){.game-page .intro-card{padding:22px}.game-page .intro-overlay{padding-left:16px;padding-right:16px}.game-page .finish-postcard{top:12%;width:min(350px,88vw)}}
@media(max-height:500px) and (orientation:landscape){.game-page .intro-card{padding:18px;width:44vw}.game-page .finish-postcard{top:15%;width:280px}.game-page #postcard-status{font-size:8px}}
/* Night visibility: keep the sky dark without tinting the entire road. */
.game-page.night-race .game-vignette{background:none}
