*{box-sizing:border-box}html,body{margin:0;background:#091116;color:#f5f7f6;font-family:system-ui,-apple-system,Segoe UI,sans-serif;overscroll-behavior:none}body{min-height:100dvh;display:flex;justify-content:center}.shell{width:min(100%,700px);display:flex;flex-direction:column;height:100dvh;min-height:480px}header{display:flex;align-items:center;justify-content:space-between;padding:10px 17px;background:#121f28;min-height:65px;gap:10px}.brand{font-size:20px;font-weight:950;letter-spacing:-.9px;line-height:1}.brand span{color:#ffd34c}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#a5b5be;margin-top:6px}.stats{display:flex;gap:16px;text-align:right}.stats>div{min-width:48px}.stats small{display:block;color:#9eb0b9;font-size:9px;letter-spacing:1px}.stats strong{font-size:20px;font-variant-numeric:tabular-nums}.stats em{font-style:normal;font-size:9px;color:#9eb0b9}.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#444;touch-action:none}canvas{width:100%;height:100%;display:block}.shade{position:absolute;inset:0;background:linear-gradient(180deg,#07131bdd,#07131be8);display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto}.shade.hidden{display:none}.panel{width:min(100%,520px);max-height:100%;overflow-y:auto;text-align:center;padding:16px 12px}.eyebrow{color:#ffd34c;letter-spacing:4px;font-size:10px;font-weight:800}h1{font-size:clamp(36px,8vw,66px);letter-spacing:-3px;line-height:.94;margin:12px 0}h1 span{color:#ffd34c}p{color:#c3d0d7;font-size:13px;line-height:1.5}.garage-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#d9e2e6;margin:18px 0 8px}.garage-label span{color:#ffd34c}.cars{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;max-height:148px;overflow-y:auto;padding:3px}.car-choice{background:#263743;border:2px solid transparent;border-radius:7px;aspect-ratio: .7;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:2px}.car-choice.selected{border-color:#ffd34c;background:#45515b}.car-choice img{height:100%;max-width:100%;object-fit:contain}.primary{border:0;background:#ffd34c;color:#172028;font-weight:950;font-size:14px;letter-spacing:1px;padding:15px 26px;margin:15px auto 3px;cursor:pointer;border-radius:4px}.primary b{margin-left:18px}.help{font-size:10px;margin:7px 0;color:#92a6b0}footer{height:35px;display:flex;align-items:center;justify-content:space-between;background:#121f28;padding:0 14px;font-size:9px;letter-spacing:1px;color:#91a6af}footer button{border:0;background:transparent;color:#ffd34c;cursor:pointer;font-weight:700}.foglabel,.flashlabel{position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:3px;font-weight:900;color:#fff;opacity:0;pointer-events:none;text-shadow:0 2px 8px #000}.foglabel.visible{opacity:.9}.flashlabel.visible{opacity:1;color:#ffe67b}.mobile-controls{display:none;justify-content:space-around;align-items:center;padding:6px 5px;background:#121f28;gap:7px}.mobile-controls>div{display:flex;gap:5px}.mobile-controls button{background:#2b404d;color:#fff;border:1px solid #5b6b75;border-radius:9px;min-width:54px;min-height:44px;font-size:13px;font-weight:800;touch-action:none;user-select:none}.mobile-controls button:active{background:#e0b940;color:#111}@media(pointer:coarse){.mobile-controls{display:flex}.shell{min-height:0}.stage{min-height:150px}}@media(max-width:390px){.stats{gap:8px}.brand{font-size:17px}.stats strong{font-size:17px}.cars{gap:3px}.panel{padding:4px}.mobile-controls button{min-width:43px;font-size:11px}}

.vehicle-specs{font-size:12px;font-weight:750;color:#ffd34c;margin:10px 0 0;min-height:18px}

.speed-hint,.slow-warning{position:absolute;z-index:5;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none;opacity:0;transition:opacity .18s;box-sizing:border-box;max-width:94%;font-family:inherit;font-weight:900;letter-spacing:.07em}.speed-hint.visible,.slow-warning.visible{opacity:1}.speed-hint{top:14%;width:max-content;background:rgba(12,25,35,.89);color:#fff;border:2px solid #ffce45;border-radius:12px;padding:13px 18px;font-size:clamp(12px,2.5vw,19px);box-shadow:0 6px 22px #0008}.slow-warning{top:24%;min-width:min(320px,88%);background:rgba(82,8,9,.92);color:#fff;border:2px solid #ff5249;border-radius:16px;padding:12px 20px;box-shadow:0 8px 32px #000a}.slow-warning span,.slow-warning small{display:block;font-size:clamp(11px,2.1vw,16px)}.slow-warning strong{display:block;font-size:clamp(52px,12vw,94px);line-height:1.1;color:#fff}.slow-warning small{opacity:.85;font-size:11px}

.car-choice{position:relative}.vehicle-number{position:absolute;bottom:1px;right:2px;background:rgba(10,19,25,.86);color:#fff;font-size:9px;font-weight:800;line-height:1;padding:2px 3px;border-radius:3px;pointer-events:none}

/* ÜBERHOLSPUR */
.brand{flex:0 1 235px;min-width:100px}.brand img{display:block;width:100%;max-height:60px;object-fit:contain;object-position:left center}.stats{flex-shrink:0}
.level-select{margin:12px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:350px}.level-select label{font-size:11px;font-weight:850;letter-spacing:1.4px;color:#e7e9e7}.level-select select{background:#263743;color:#ffd34c;border:1px solid #ffd34c;border-radius:5px;padding:9px 12px;font:800 13px system-ui;min-width:130px}.level-select[hidden]{display:none}.panel h1{font-size:clamp(27px,6vw,48px);letter-spacing:-1px}.foglabel{z-index:4;white-space:nowrap}
@media(max-width:390px){.brand{flex-basis:130px}.brand img{max-height:42px}.stats{gap:6px}.stats strong{font-size:15px}}

/* V10: Countdown stets sichtbar oberhalb der Spielgrafik */
.stage .slow-warning{z-index:30;top:18%;visibility:hidden;opacity:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;pointer-events:none}
.stage .slow-warning.visible{visibility:visible;opacity:1}
.stage .speed-hint{z-index:29}
.stage .shade{z-index:20}
.stage .foglabel,.stage .flashlabel{z-index:10}

/* Vector brand lockup */
.brand{flex-basis:260px}.brand img{max-height:65px}
@media(max-width:390px){.brand{flex-basis:145px}.brand img{max-height:46px}}

.menu-actions{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:12px}.secondary{background:#263743;color:#fff;border:1px solid #8095a0;border-radius:5px;padding:10px 16px;font-weight:800;cursor:pointer}.secondary:hover{border-color:#ffd34c;color:#ffd34c}.menu-actions [hidden],.options-overlay[hidden]{display:none!important}.options-overlay{position:absolute;inset:0;z-index:60;background:#061017ed;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.options-card{background:#172732;border:1px solid #607582;border-radius:12px;width:min(100%,440px);max-height:100%;overflow-y:auto;padding:22px;text-align:center;box-shadow:0 20px 65px #0009}.options-card h2{color:#ffd34c;margin:0 0 20px}.options-card h3{margin:24px 0 12px;color:#ffd34c}.options-card label{display:flex;justify-content:space-between;font-size:12px;font-weight:800}.options-card input[type=range]{width:100%;accent-color:#ffd34c;margin:12px 0}.options-card #musicInfo{font-size:11px}.credits{text-align:left;display:grid;gap:8px}.credits p{margin:0;padding:7px 0;border-bottom:1px solid #334651;color:#fff}.credits b{display:block;color:#9eb4c0;font-size:11px}.options-card .primary{margin-top:20px}

.slow-warning .minimum-line{display:block;white-space:nowrap}
.slow-warning small{letter-spacing:.025em}

/* Compact six-row garage */
.cars{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible;gap:4px;padding:2px}.car-choice{aspect-ratio:auto;height:clamp(26px,5.1dvh,53px);min-width:0}.car-choice img{height:100%;max-width:75%}.vehicle-preview{display:flex;align-items:center;justify-content:center;gap:16px;margin:3px 0 7px;min-height:0}.vehicle-preview img{height:clamp(47px,9dvh,90px);width:60px;object-fit:contain}.vehicle-preview .vehicle-specs{margin:0;text-align:left;max-width:65%;line-height:1.5}.panel:has(#garage:not([hidden])){padding:5px 8px}.garage-label{margin:6px 0 3px}.panel h1{margin:5px 0;font-size:clamp(23px,4vw,36px)}#message{margin:5px 0;font-size:12px;line-height:1.3}.level-select{margin-top:6px}.menu-actions{margin-top:6px}.panel .primary{margin-top:6px;padding:10px 20px}.shade{padding:6px}.help{margin:3px 0}@media(max-height:650px){.car-choice{height:clamp(22px,4.5dvh,34px)}.vehicle-preview img{height:45px}.panel h1{font-size:23px}.level-select select,.menu-actions .secondary{padding:5px 9px}.panel .primary{padding:7px 15px}.help{font-size:9px}}

.effects-options{border-top:1px solid #60758266;margin-top:16px;padding-top:16px}.effects-options p{font-size:11px}

#anniversary{font-size:clamp(10px,1.6vh,16px);font-weight:700;letter-spacing:.08em;color:#e9b76e;text-align:center;margin:0 0 3px} #helpBtn{width:100%;margin:3px 0} #helpOverlay .options-card{max-height:90%;overflow:auto} #helpOverlay[hidden],#helpBtn[hidden],#anniversary[hidden]{display:none!important}

/* V29: consistent main menu section spacing */
.panel:has(#helpBtn:not([hidden])){--menu-gap:clamp(7px,1.25dvh,14px)}
.panel:has(#helpBtn:not([hidden])) #message{margin-bottom:var(--menu-gap)}
.panel:has(#helpBtn:not([hidden])) .garage-label{margin-top:0}
.panel:has(#helpBtn:not([hidden])) .level-select{margin-top:var(--menu-gap)}
.panel:has(#helpBtn:not([hidden])) #helpBtn{display:block;margin:var(--menu-gap) 0 0}
.panel:has(#helpBtn:not([hidden])) .menu-actions,.panel:has(#helpBtn:not([hidden])) #start{margin-top:var(--menu-gap)}

/* Selected vehicle performance compared with the entire garage. */
.vehicle-preview .vehicle-specs{flex:1;min-width:0;max-width:75%;line-height:1.3;display:grid;gap:5px}.performance-row{display:grid;grid-template-columns:38px 76px minmax(36px,1fr);align-items:center;gap:5px;font-size:11px;font-variant-numeric:tabular-nums}.performance-row>span:nth-child(2){white-space:nowrap;text-align:right}.performance-track{height:12px;position:relative;border-radius:3px;background:linear-gradient(90deg,#269b43 0%,#e4c22c 50%,#d42929 100%);overflow:hidden}.performance-track i{position:absolute;left:0;top:3px;height:6px;background:#fff;border-radius:1px;transition:width .2s ease}.vehicle-preview #vehicleName{font-size:12px}@media(max-width:360px){.vehicle-preview{gap:7px}.performance-row{grid-template-columns:32px 65px minmax(24px,1fr);gap:3px;font-size:10px}}

/* V38: main menu layout only */
.panel:has(#helpBtn:not([hidden])) #headline{display:none}
.panel:has(#helpBtn:not([hidden])) #message{margin-bottom:clamp(20px,3.5dvh,36px)}
.panel:has(#helpBtn:not([hidden])) #helpBtn,.panel:has(#helpBtn:not([hidden])) #optionsBtn{width:min(100%,180px);padding:10px 16px}
.panel:has(#helpBtn:not([hidden])) #helpBtn{margin:var(--menu-gap) auto 0}
.panel:has(#helpBtn:not([hidden])) #start{display:block;width:100%}

/* V44 fullscreen, analog thumb steering and copyright */
header{position:relative;padding-right:56px}.fullscreen-toggle{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;background:#243944;border:1px solid #69818b;border-radius:7px;color:white;font-size:27px;cursor:pointer;z-index:65}.fullscreen-toggle:hover{border-color:#ffd34c}
.coongames-copyright{display:flex;align-items:center;flex-direction:column;gap:4px;margin:15px auto 4px}.coongames-copyright img{width:auto;max-width:100px;max-height:38px;object-fit:contain}.coongames-copyright small{font-size:9px;letter-spacing:.015em;color:#a2b4bf}.handedness-options{border-top:1px solid #60758266;margin-top:16px;padding-top:16px}.handedness-options label{justify-content:center;margin-bottom:9px}.handedness-options p{font-size:11px}
.mobile-controls{display:none;position:absolute;left:0;right:0;bottom:12px;z-index:15;padding:0 14px;align-items:end;justify-content:space-between;background:transparent;pointer-events:none;gap:10px}.mobile-controls>*{pointer-events:auto}.thumb-joystick{position:relative;width:clamp(106px,27vw,154px);height:clamp(106px,27vw,154px);border-radius:50%;background:radial-gradient(circle,#273f4bbf 0 28%,#162a37dd 80%);border:3px solid #8ea4b6b0;box-shadow:0 3px 18px #0009,inset 0 0 15px #0007;touch-action:none;user-select:none;flex:none}.joystick-cross{position:absolute;inset:10%;border-radius:50%;background:linear-gradient(90deg,transparent 49.4%,#ffffff30 49.4% 50.6%,transparent 50.6%),linear-gradient(transparent 49.4%,#ffffff30 49.4% 50.6%,transparent 50.6%)}.joystick-knob{position:absolute;left:50%;top:50%;width:34%;height:34%;transform:translate(-50%,-50%);border-radius:50%;background:linear-gradient(145deg,#dbe5eb,#788c9c);border:2px solid white;box-shadow:0 3px 10px #0009;pointer-events:none;transition:transform .06s linear}.flash-touch{width:clamp(88px,23vw,116px);height:clamp(88px,23vw,116px);border-radius:50%!important;min-width:0!important;min-height:0!important;font-size:34px!important;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;background:#2c4554e6!important;border:3px solid #d4c16c!important;box-shadow:0 3px 18px #0009;touch-action:none}.flash-touch small{font-size:10px;letter-spacing:1px}.mobile-controls.left-handed{flex-direction:row-reverse}
@media(pointer:coarse){.mobile-controls{display:flex}.stage .shade{z-index:20}.stage .options-overlay{z-index:60}}@media(max-height:580px) and (pointer:coarse){.thumb-joystick{width:96px;height:96px}.flash-touch{width:80px;height:80px}}

/* V45: clean in-game footer, pause centered at former status position. */
footer{position:relative;justify-content:space-between}
footer #pause{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;letter-spacing:1.2px;border:1px solid #718894;border-radius:5px;padding:5px 16px;background:#263743;color:#ffd34c}
footer #pause[hidden],footer #footerLeft[hidden]{display:none!important}
body.level-running footer #status,body.level-running footer #footerLeft{display:none!important}
body:not(.level-running) footer #pause{display:none!important}
/* Cruise control remains usable via T but is no longer advertised in the HUD. */
#cruiseLabel{display:none!important}
/* Use the same original SVG logo and its proportions on all devices. */
.brand img{width:100%;height:auto;object-fit:contain;object-position:left center}
@media(max-width:600px){header{gap:6px;padding-left:8px;padding-right:48px}.brand{flex:1 1 0;min-width:100px;max-width:260px}.brand img{max-height:65px}.stats{gap:6px}.stats>div{min-width:34px}.stats strong{font-size:clamp(12px,3.2vw,18px)}}
@media(max-width:390px){.brand{flex:1 1 0;min-width:94px}.brand img{max-height:65px}}

/* V47: absolute footer centering and strict hiding of both information labels. */
footer{position:relative;flex:0 0 42px;justify-content:center;align-items:center}
footer #pause{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;white-space:nowrap}
footer #status[hidden],footer #footerLeft[hidden],footer #pause[hidden]{display:none!important}
body.level-running footer #status,body.level-running footer #footerLeft{display:none!important}

/* V48: clearly separated main-menu footer labels. */
body.main-menu footer{gap:0;justify-content:center}
body.main-menu footer #footerLeft,body.main-menu footer #status{display:inline!important;white-space:nowrap}
body.main-menu footer #footerLeft::after{content:"|";display:inline-block;margin:0 clamp(18px,4vw,38px);color:#d7b86a;font-weight:700}
@media(max-width:420px){body.main-menu footer #footerLeft::after{margin:0 14px}body.main-menu footer #footerLeft,body.main-menu footer #status{font-size:clamp(9px,2.7vw,12px)}}

/* V49: remove the footer information area in all states; preserve centered pause control. */
footer #footerLeft,footer #status,body.main-menu footer #footerLeft,body.main-menu footer #status{display:none!important}

/* V50: pause/menu overlay always covers the minimum-speed countdown. */
.stage .shade{z-index:50}
.stage .slow-warning{z-index:30}
