/* Keep the road and car readable; show detail when the player asks for it. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#loading-retry{margin-top:20px;min-height:44px;min-width:150px}
.course-details{margin:4px 0 8px}
.course-details summary{font-size:12px;color:#b9cbd4;cursor:pointer;min-height:32px;display:flex;align-items:center;gap:8px}
.course-details summary::before,.pit-settings summary::after{content:'+';font-size:16px}
.course-details[open] summary::before,.pit-settings[open] summary::after{content:'−'}
.course-details .course-features{margin:0 0 6px;font-size:12px}
#profile-info:empty{display:none}
.lobby .key-guide{display:none}
.boost-stages{display:none}
.speed-panel{width:240px;padding:14px 18px}
.speed-number strong{font-size:64px}

#boost-label{font-size:11px;letter-spacing:0;min-height:16px}
.boost-charges{margin-top:6px}
.condition-panel:not(.has-warning) #tire-fit{display:none}
.condition-panel.has-warning #tire-fit{color:#ffd27f}
#forecast:empty{display:none}
.pit-settings{margin:8px 0}
.pit-settings summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;font-size:12px;border:1px solid var(--line);padding:6px 10px;border-radius:4px}
.pit-settings summary:focus-visible,.course-details summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.pit-settings .pit-choice{margin:8px 0 0}
.pit-settings select{width:100%;min-height:44px}
.mobile-boost .boost-action-label{font-size:12px;font-weight:700;letter-spacing:0}
.mobile-steer small,.mobile-brake small{display:none}
.mobile-steer>span{line-height:1}
@media(pointer:coarse),(max-width:900px){
 .mobile-driving .speed-panel{width:116px;padding:8px}
 .mobile-driving #boost-label{font-size:10px;min-height:14px}
 .mobile-driving .speed-number strong{font-size:36px;letter-spacing:-2px}
 .mobile-driving .boost-charges{font-size:10px;margin-top:4px}
 .mobile-driving .condition-panel{width:128px;padding:8px}
 .mobile-driving .condition-panel .weather{margin-bottom:4px;display:block}
 .mobile-driving .condition-panel .weather strong{font-size:12px}
 .mobile-driving .condition-panel .weather span:not(:empty){display:block;font-size:11px;margin-top:4px;color:#f3cc72}
 .mobile-driving .tire-state{margin-bottom:0}
 .mobile-driving .tire-state span{font-size:11px}
 .mobile-driving .tire-icon{display:none}
 .mobile-driving .pit-settings{margin:6px 0 0}
 .mobile-driving .pit-settings summary{font-size:11px;padding:6px;min-height:44px}
 .mobile-driving .pit-settings .pit-choice{margin-top:6px}
 .mobile-driving .timing span{margin-bottom:0}
 .mobile-driving .timing span+span{margin-top:6px}
 .mobile-driving .timing small:not(.hidden){display:block;margin-top:6px}
 .mobile-driving .map-panel small{display:none}
}
@media(max-width:640px){
 .course-details summary{min-height:44px;font-size:13px}
 .lobby .course-description{margin-bottom:0}
}
@media(max-height:540px) and (orientation:landscape){
 .mobile-driving .condition-panel{width:128px;top:calc(60px + env(safe-area-inset-top))}
 .mobile-driving .pit-settings[open]{max-height:calc(100dvh - 160px);overflow:auto}
}
/* Mobile HUD uses display:contents; hide its descendants without an opacity box. */
.boost-cinematic #hud,.boost-cinematic .mobile-drive-controls{visibility:hidden}
/* The boarding animation speaks for itself; keep only a compact skip action. */
#intro-caption{left:auto;right:20px;bottom:calc(24px + env(safe-area-inset-bottom));transform:none;width:auto;min-width:0;padding:0;border:0;background:none}
#intro-caption button{min-height:44px;padding:10px 18px;background:#111c28d9}

/* Leave the central vehicle visible while the selected course rotates. */
.course-preview{position:fixed;z-index:6;left:auto;top:auto;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));transform:none;width:min(360px,calc(100vw - 465px));padding:14px;background:#111d2bea;border:1px solid #70869780;border-radius:10px;box-shadow:0 12px 36px #0005;color:#f1f0e5}
.course-preview-head,.course-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.course-preview-head small{color:#e4bd57;font-size:9px;letter-spacing:2px}.course-preview h2{margin:6px 0 0;font-size:15px}.course-preview button{font-size:11px;white-space:nowrap}.course-preview canvas{display:block;width:100%;height:200px;pointer-events:none}.course-preview-foot{font-size:10px;color:#bbcbd5}
@media(max-width:800px){.course-preview{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:min(320px,calc(100vw - 24px));padding:12px}.course-preview canvas{height:170px}.course-preview button{min-height:44px}}
@media(max-height:600px){.course-preview canvas{height:130px}.course-preview{padding:10px}}

.machine-card[hidden]{display:none!important}

/* Boost callout: a short blue line for stage one, a large gold one for stage two. */
#boost-banner{position:fixed;left:50%;top:24%;transform:translate(-50%,-50%);pointer-events:none;z-index:7;font-weight:900;letter-spacing:-.5px;white-space:nowrap;opacity:0}
#boost-banner.stage-1{font-size:clamp(22px,3vw,34px);color:#caeaff;text-shadow:0 2px 0 #0b2233}
#boost-banner.stage-2{font-size:clamp(34px,5.4vw,72px);color:#ffcf4a;font-style:italic;text-shadow:0 3px 0 #5a3700,0 0 18px #ffb32066}
#boost-banner.show{animation:boost-banner 1.4s ease-out forwards}
@keyframes boost-banner{0%{opacity:0;transform:translate(-50%,-50%) scale(1.6)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-62%) scale(.96)}}
@media (prefers-reduced-motion:reduce){#boost-banner.show{animation:boost-banner-fade 1.4s linear forwards}@keyframes boost-banner-fade{0%,80%{opacity:1}100%{opacity:0}}}
