/* In-game HUD follows the original racing concept; values come from the simulation. */
:root{--cyan:#62dcff;--amber:#ffc078;--magenta:#c35cff}
body{background:#252435}main{background:#51475f}
header{position:absolute;inset:0 0 auto;height:90px;padding:0;border:0;background:transparent;pointer-events:none;z-index:4}
header button{pointer-events:auto}header .brand{display:none}
header .stats{position:absolute;left:28px;top:20px;margin:0;display:grid;grid-template-columns:auto auto;column-gap:24px;row-gap:5px;padding:8px 28px 15px 14px;background:linear-gradient(100deg,#161825d9,#25233488 80%,transparent);border-bottom:2px solid #af54f3;transform:skew(-6deg)}
.stats>div{transform:skew(6deg)}.stats>div:first-child{grid-column:1 / -1;display:flex;align-items:baseline;gap:16px}.stats small{font-style:italic;font-weight:800;color:#e1e1f0;font-size:11px;margin:0;letter-spacing:1px}.stats>div:first-child small{font-size:18px}.stats b{font-weight:800;font-style:italic;font-size:20px;color:#f9f8fc;line-height:1.12}.stats>div:first-child b{font-size:48px}.stats em{font-size:24px;color:#ddd5ed;font-weight:700}.stats .best{display:block}.stats .best b{color:#ffdf85}
header .tool{position:absolute;right:22px;top:18px;background:#232334c9;border:1px solid #ffffff45;border-radius:6px;font-size:20px;width:34px;height:34px}header #pause{right:64px}
.map-menu{top:156px;left:30px;background:#242334d9;border-color:#afa4c14d;border-radius:2px}.route-hud{top:202px;left:30px;color:#f7e2c8;background:#242334c9;padding:3px 5px}
.views{top:22px;background:#242334bf;border-color:#b3b4d746;border-radius:3px}.views button{border-radius:2px;font-size:11px}.views button[aria-pressed=true]{background:#50d3ef;color:#142330}
.team-hud{top:70px;right:28px;background:linear-gradient(270deg,#242334cf,transparent);border:0;border-top:2px solid #bb60f3;border-radius:0;text-align:right;gap:4px;padding:8px 10px 10px 24px;max-width:245px}.team-hud b{color:#fff;font-size:28px;font-style:italic;line-height:1.2}.team-hud span{color:#f8d0a2;font-size:11px}.team-hud small{color:#e1dbea;font-size:10px}.team-hud small:last-child{color:#79dcff}
.speed{top:auto;bottom:132px;right:28px;width:185px;height:130px;padding:30px 14px 0;text-align:center;color:#fff!important;text-shadow:0 2px 9px #292331;isolation:isolate}.speed::before{content:"";position:absolute;inset:-8px -3px -12px;z-index:-1;border-radius:50%;background:conic-gradient(from 220deg,#38d8ff 0deg,#7291ff 110deg,#d469ed 200deg,#ffffff1c 270deg,transparent 271deg);mask:radial-gradient(ellipse,transparent 64%,#000 65%,#000 69%,transparent 70%);transform:rotate(8deg)}.speed::after{content:"";position:absolute;bottom:0;left:14%;width:72%;height:4px;background:linear-gradient(90deg,#38d8ff calc(var(--speed-ratio,0)*100%),#ffffff24 0);border:1px solid #57dfff7d;transform:skew(-16deg)}.speed strong{font-size:63px;font-weight:850;font-style:italic;letter-spacing:-3px}.speed span{font-size:11px;font-weight:700;font-style:italic;letter-spacing:1px;margin-left:5px}.speed small{font-size:10px;color:#ded8ed;margin-top:5px}
.presentation-settings{right:30px;bottom:102px}.presentation-settings button{background:#252334dd;border-color:#9793ad5e;color:#e4e0f0;border-radius:2px}.presentation-settings button[aria-pressed=true]{border-color:#42d1fa;color:#8fe8ff}
.controls button{background:#282537c9;border-color:#dad3ec55;border-radius:8px;box-shadow:0 3px 0 #15152366}.controls .pedals .gas{background:#5cd8f4;color:#172334}.controls .pedals .brake{background:#ece7f1e0;color:#3e354c}.controls .recover{background:#282537c9;border-radius:4px}
.race-progress:after{background:linear-gradient(90deg,#53d8ff,#b464ff)}
.overlay{background:linear-gradient(90deg,#171624ee,#252234b8 50%,#33264115)}.eyebrow{color:#83e2ff}.primary{background:#6addfa;color:#1d2135}.keys span{color:#78dfff}h1{font-style:italic}.overlay p{color:#ddd1e1}.map-picker button{border-radius:2px}.map-picker button[aria-pressed=true]{background:#55cfee;border-color:#55cfee;color:#152737}#toast{border-color:#62ddff;color:#a3edff;background:#242235ed}.feedback{background:#322637eb}
#drive-moment{position:absolute;left:50%;top:22%;transform:translateX(-50%) skew(-8deg);padding:9px 25px;border-top:2px solid #b77fff;border-bottom:2px solid #54dcff;background:linear-gradient(90deg,transparent,#252137d9,transparent);color:#a8efff;font-weight:850;font-style:italic;letter-spacing:2px;pointer-events:none;font-size:clamp(14px,2vw,26px);text-shadow:0 2px 7px #242033}#drive-moment[hidden]{display:none}
@media(max-height:500px){header .stats{left:16px;top:10px;padding:3px 20px 8px 7px;gap:3px 18px}.stats>div:first-child b{font-size:33px}.stats>div:first-child small{font-size:12px}.stats em{font-size:18px}.stats b{font-size:14px}.stats small{font-size:8px}.map-menu{top:102px;left:18px}.route-hud{top:135px;left:19px}.views{top:12px}.views button{font-size:10px;padding:7px 10px}.team-hud{top:58px;right:18px;max-width:210px;padding:5px 8px 7px 20px}.team-hud b{font-size:20px}.team-hud small{font-size:8px}.team-hud span{font-size:9px}.speed{bottom:103px;right:22px;width:145px;height:95px;padding:15px 7px 0}.speed strong{font-size:48px}.speed small{font-size:9px}.speed span{font-size:9px}.presentation-settings{bottom:81px;right:20px}.controls{bottom:14px}.controls .steering button{width:65px}.controls .pedals .gas{width:94px}#drive-moment{top:26%}}
@media(max-width:600px) and (min-height:501px){header .stats{left:10px;top:12px;padding:5px 20px 9px 7px;gap:4px 14px}.stats>div:first-child b{font-size:37px}.stats>div:first-child small{font-size:12px}.stats em{font-size:20px}.stats b{font-size:15px}.stats small{font-size:8px}header .tool{right:12px;top:17px;width:30px;height:30px}header #pause{right:49px}.team-hud{right:12px;top:65px;max-width:168px;padding:6px 6px 7px 12px}.team-hud b{font-size:21px}.team-hud small,.team-hud span{font-size:8px}.map-menu{top:144px;left:13px;max-width:220px}.route-hud{top:178px;left:15px}.views{top:213px}.views button{padding:7px 12px}.speed{bottom:126px;right:14px;width:150px;height:109px;padding:25px 5px 0}.speed strong{font-size:52px}.presentation-settings{bottom:97px;right:16px}#drive-moment{top:34%;font-size:16px;padding:9px 16px}}
@media(max-width:360px){.stats .best{display:none}.team-hud{max-width:155px}.team-hud b{font-size:19px}.team-hud small{font-size:7px}.speed{width:135px}.speed strong{font-size:46px}.views{top:208px}.views button{padding:7px 9px}.controls .steering button{width:48px}.controls .pedals .gas{width:66px}}
body:has(#overlay:not([hidden])) :is(.stats,.map-menu,.route-hud,.views,.speed,.presentation-settings,.controls,.race-progress,.feedback,#toast){visibility:hidden}
