/* The garage keeps every choice in view; imagery must yield space to controls. */
body[data-mode=garage] #app{display:grid;grid-template-rows:55px 44px minmax(180px,1fr) 139px 78px 24px;height:100svh;min-height:540px;padding:0 20px;gap:0}
body[data-mode=garage] .masthead{position:relative;inset:auto;height:auto;padding:0;background:none}
body[data-mode=garage] .mode-nav{position:relative;inset:auto;height:44px;justify-content:space-between;overflow:visible;gap:4px}
body[data-mode=garage] .mode-nav button{flex:1;min-width:0;padding:0 6px;font-size:12px;height:39px}
body[data-mode=garage] .stage{position:relative;inset:auto;height:auto!important;min-height:0;width:100%;border-radius:0;border-block:1px solid #e8f3e21c}
body[data-mode=garage] .scene-heading{left:37%;top:15px;max-width:63%}
body[data-mode=garage] .scene-heading h1{font-size:21px;margin:7px 0 0}
body[data-mode=garage] .scene-heading p{display:none}
body[data-mode=garage] .vehicle-art{right:0;bottom:-2%;width:62%;height:93%}
body[data-mode=garage] .gauge-shell{left:1%;top:50%;bottom:auto;transform:translateY(-50%);width:min(30vw,250px);height:auto;aspect-ratio:1}
body[data-mode=garage] .speed-readout strong{font-size:32px}
body[data-mode=garage] .render-status{top:12px;right:12px}
body[data-mode=garage] .stage-bottom{left:16px;right:15px;bottom:10px}
body[data-mode=garage] .stage-bottom>span{max-width:38%;font-size:9px}
body[data-mode=garage] .special-button{height:32px;font-size:12px;margin:0}
body[data-mode=garage] #garage-options{position:relative;inset:auto;padding:8px 0 0;margin:0;display:block;background:transparent;border:0;backdrop-filter:none}
body[data-mode=garage] .car-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:0 0 5px;overflow:visible}
body[data-mode=garage] .car-option{height:86px;min-width:0;padding:0 9px 7px}
body[data-mode=garage] .car-thumb{height:61px;top:-6px}
body[data-mode=garage] .car-option strong{font-size:12px}
body[data-mode=garage] .car-option small{font-size:7px}
body[data-mode=garage] .dashboard-row{padding:0;gap:8px}
body[data-mode=garage] .dashboard-row>span{font-size:9px;display:block}
body[data-mode=garage] .segments button{height:29px;min-width:100px;font-size:11px}
body[data-mode=garage] .drive-controls{position:relative;inset:auto;transform:none;width:100%;max-width:none;height:auto;margin:7px 0 5px;padding:9px 12px;border-radius:15px;grid-template-columns:1.05fr .95fr .95fr 1.4fr;gap:8px;box-shadow:none}
body[data-mode=garage] .drive-controls .primary{min-height:43px;font-size:13px;padding:0 8px;border-radius:11px}
body[data-mode=garage] .drive-controls .secondary{height:43px;font-size:12px;padding:0 5px}
body[data-mode=garage] footer{position:relative;inset:auto;padding:3px 0 5px;line-height:1.3;font-size:9px}
body[data-mode=garage] .stage[data-dashboard=digital] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=hud] .gauge-shell{left:3%;top:50%;width:29%;height:82%;transform:translateY(-50%)}
body[data-mode=garage] .stage[data-dashboard=digital] .speed-readout strong,body[data-mode=garage] .stage[data-dashboard=hud] .speed-readout strong{font-size:56px}
.gps-notice{position:absolute;z-index:49;top:114px;right:24px;width:min(360px,calc(100% - 40px));padding:18px 20px;border:1px solid #d5e5f470;border-radius:14px;background:#0d1926f2;box-shadow:0 14px 50px #0007;color:#fff;backdrop-filter:blur(18px)}
.gps-notice strong{font-size:18px;line-height:1.3}.gps-notice p{font-size:13px;line-height:1.65;color:#d9e6ef;margin:9px 0 14px}.gps-notice>div{display:flex;gap:8px;flex-wrap:wrap}.gps-notice button{min-height:40px;padding:0 12px;font-size:12px;border:1px solid #a4bfd15c;background:#21364a}.gps-notice button:first-child{background:#d9e8ee;color:#102337}.gps-notice button:disabled{display:none}#gps-diagnostics{white-space:pre-line;font-size:12px}body[data-mode=garage] .gps-notice{top:12px;right:15px}
@media(max-width:700px){
 body[data-mode=garage] #app{padding:0 12px;grid-template-rows:51px 43px minmax(170px,1fr) 136px 78px 24px}
 body[data-mode=garage] .mode-nav{gap:0}.mode-nav{scrollbar-width:thin}body[data-mode=garage] .mode-nav button{font-size:10px;padding:0 1px}
 body[data-mode=garage] .car-option{padding:0 4px 7px}body[data-mode=garage] .car-option strong{font-size:10px}body[data-mode=garage] .car-option small{font-size:6px}body[data-mode=garage] .car-strip{gap:4px}
 body[data-mode=garage] .dashboard-row>span{display:none}body[data-mode=garage] .segments{width:100%}body[data-mode=garage] .segments button{flex:1;min-width:0}
 body[data-mode=garage] .drive-controls .secondary{font-size:10px}body[data-mode=garage] .drive-controls .primary{font-size:11px}body[data-mode=garage] .drive-controls{gap:3px;padding:8px}.gps-notice{right:15px}
}
@media(max-width:480px){
 body[data-mode=garage]{overflow-y:auto}body[data-mode=garage] #app{height:auto;min-height:100svh;grid-template-rows:51px 44px minmax(245px,1fr) 218px 119px 28px}
 body[data-mode=garage] .mode-nav button{font-size:10px}
 body[data-mode=garage] .scene-heading{left:12px;top:15px;max-width:none}body[data-mode=garage] .scene-heading h1{font-size:19px}body[data-mode=garage] .scene-heading>span{font-size:7px}
 body[data-mode=garage] .gauge-shell{width:45%;left:-1%;top:60%}body[data-mode=garage] .speed-readout strong{font-size:23px}body[data-mode=garage] .vehicle-art{width:73%;right:-6%;height:82%;bottom:3%}
 body[data-mode=garage] .car-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}body[data-mode=garage] .car-option{height:80px;padding:0 8px 7px}body[data-mode=garage] .car-option strong{font-size:12px}body[data-mode=garage] .car-option small{font-size:7px}body[data-mode=garage] .car-thumb{height:58px}body[data-mode=garage] .dashboard-row{margin-top:4px}
 body[data-mode=garage] .drive-controls{grid-template-columns:1fr 1fr 1fr;margin:6px 0;padding:8px 10px}body[data-mode=garage] .throttle{grid-column:1/-1;padding:0 4px}body[data-mode=garage] .stage-bottom{left:10px;right:10px;bottom:6px}body[data-mode=garage] .special-button{height:29px;font-size:10px}body[data-mode=garage] .stage-bottom>span{font-size:7px}body[data-mode=garage] .render-status{top:10px;right:10px;font-size:7px}
 body[data-mode=garage] .stage[data-dashboard=digital] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=hud] .gauge-shell{left:2%;top:57%;width:43%;height:65%}body[data-mode=garage] .stage[data-dashboard=digital] .speed-readout strong,body[data-mode=garage] .stage[data-dashboard=hud] .speed-readout strong{font-size:44px}
 .gps-notice{top:143px;padding:14px 16px;right:15px}.gps-notice strong{font-size:16px}.gps-notice p{font-size:12px}body[data-mode=garage] .gps-notice{top:10px;right:10px;width:calc(100% - 20px)}
}

body[data-render3d=true][data-mode=garage] .vehicle-art,body[data-render3d=true][data-mode=horse] .character-art,body[data-render3d=true][data-mode=tiger] .character-art{visibility:hidden}
body[data-render3d=true][data-mode=garage] .scene-haze,body[data-render3d=true][data-mode=garage] .studio-lines,body[data-render3d=true][data-mode=horse] .scene-haze,body[data-render3d=true][data-mode=tiger] .scene-haze{display:none}
body[data-render3d=true][data-mode=garage] .stage:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#071017d9,transparent 43%)}
body[data-mode=rocket] .flight-route{display:none}
body[data-mode=rocket] .scene-options{display:none}
body[data-mode=garage] .car-thumb{height:auto;aspect-ratio:1;top:-18px}
@media(max-width:700px){body[data-mode=garage] .car-thumb{top:-5px}}

#gear-indicator{position:absolute;z-index:9;right:16px;top:43px;min-width:100px;text-align:center;padding:8px 13px;border:1px solid #c5d4df42;border-radius:9px;background:#101c28ce;color:#e6edf3;font-size:15px;font-variant-numeric:tabular-nums;transition:background .08s,border-color .08s;pointer-events:none}#gear-indicator[data-shifting=true]{background:#3b3021ee;color:#ffe5af;border-color:#e6b86e}#gear-indicator[hidden]{display:none}@media(max-width:480px){#gear-indicator{top:72px;right:10px;font-size:12px;min-width:80px;padding:6px 9px}}
#audio-notice{position:fixed;z-index:80;top:72px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;max-width:calc(100% - 24px);padding:10px 14px;background:#182029f5;border:1px solid #d5c199;border-radius:14px;box-shadow:0 8px 32px #0007;color:#fff;font:14px/1.4 system-ui}
#audio-notice[hidden]{display:none}
#audio-notice button{flex-shrink:0;min-height:44px;padding:8px 18px;border:1px solid #e8c78a;border-radius:9px;background:#e8c78a;color:#17202a;font:600 15px system-ui;cursor:pointer}

#exhaust-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:46;pointer-events:none;touch-action:auto;mix-blend-mode:screen}body:not([data-mode=garage]) #exhaust-overlay{display:none}

/* One immersive header. Bottom controls retain their original grid tracks. */
body[data-mode=garage] #app{grid-template-rows:minmax(279px,1fr) 139px 78px 24px}
body[data-mode=garage] .masthead{position:absolute;inset:0 0 auto;height:76px;padding:0 26px;background:linear-gradient(#040b12dc,#040b1255,transparent)}
body[data-mode=garage] .mode-nav{position:absolute;top:17px;left:230px;right:230px;height:42px;justify-content:center;overflow-x:auto;gap:3px}
body[data-mode=garage] .mode-nav button{flex:0 0 auto;min-width:90px;padding:0 10px;font-size:12px}
body[data-mode=garage] .stage{grid-row:1;width:calc(100% + 40px);margin-left:-20px;border:0;--scene-header:99px}
body[data-mode=garage] #garage-options{grid-row:2}
body[data-mode=garage] .drive-controls{grid-row:3}
body[data-mode=garage] footer{grid-row:4}
body[data-mode=garage] .scene-heading{top:calc(var(--scene-header) + 15px)}
body[data-mode=garage] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=digital] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=hud] .gauge-shell{top:calc(50% + var(--scene-header)/2)}
body[data-mode=garage] .stage[data-dashboard=digital] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=hud] .gauge-shell{height:calc((100% - var(--scene-header))*.82)}
body[data-mode=garage] .render-status{top:calc(var(--scene-header) + 12px);right:32px}
body[data-mode=garage] #gear-indicator{top:calc(var(--scene-header) + 43px);right:36px}
body[data-mode=garage] .motion-pill{top:calc(var(--scene-header) + 107px)}
body[data-mode=garage] .gps-notice{top:calc(var(--scene-header) + 12px)}
@media(max-width:1100px){body[data-mode=garage] .mode-nav{left:187px;right:125px;justify-content:flex-start}body[data-mode=garage] .masthead{padding:0 21px}}
@media(max-width:700px){body[data-mode=garage] #app{grid-template-rows:minmax(264px,1fr) 136px 78px 24px}body[data-mode=garage] .stage{width:calc(100% + 24px);margin-left:-12px;--scene-header:94px}}
@media(max-width:640px){body[data-mode=garage] .masthead{height:55px;padding:0 16px}body[data-mode=garage] .mode-nav{top:57px;left:10px;right:10px;height:39px;justify-content:flex-start}body[data-mode=garage] .mode-nav button{min-width:76px;font-size:11px;padding:0 8px}}
@media(max-width:480px){
 body[data-mode=garage] #app{grid-template-rows:minmax(340px,1fr) 218px 119px 28px}
 body[data-mode=garage] .stage{--scene-header:95px}
 body[data-mode=garage] .gauge-shell{top:calc(60% + var(--scene-header)*.4)}
 body[data-mode=garage] .stage[data-dashboard=digital] .gauge-shell,body[data-mode=garage] .stage[data-dashboard=hud] .gauge-shell{top:calc(57% + var(--scene-header)*.43);height:calc((100% - var(--scene-header))*.65)}
 body[data-mode=garage] .render-status{right:15px;top:calc(var(--scene-header) + 10px)}
 body[data-mode=garage] #gear-indicator{right:15px;top:calc(var(--scene-header) + 72px)}
}
@media(min-width:481px){body[data-mode=garage] .stage[data-dashboard=analog] .gauge-shell{width:min(30vw,250px,calc(100svh - 352px))}}
body[data-mode=garage] .vehicle-art{height:calc((100% - var(--scene-header))*.93)}
