.rv-garage{padding:0;border:1px solid #6aeaff88;border-radius:24px;background:#0a1323;color:#edfaff;width:min(1140px,96vw);max-width:none;max-height:94dvh;box-shadow:0 24px 120px #000c;font-family:system-ui,sans-serif;user-select:none;-webkit-user-select:none;touch-action:manipulation}.rv-garage::backdrop{background:#030817de;backdrop-filter:blur(10px)}.rv-garage *{box-sizing:border-box}.rv-garage button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit}.rv-garage button:focus-visible{outline:3px solid #fff;outline-offset:3px}.garage-top{position:sticky;top:0;z-index:3;display:flex!important;align-items:center;justify-content:space-between;padding:17px 24px!important;background:#101e34ee;border-bottom:1px solid #548ca755;gap:14px}.garage-top>div:first-child{display:flex;align-items:center;gap:12px}.garage-top img{width:48px;height:48px}.garage-top small{font-size:10px;letter-spacing:2px;color:#8ec4da}.garage-top h2{font-size:27px;margin:0;color:#fff}.garage-wallet{display:flex;align-items:center;gap:7px}.garage-wallet span{display:flex;flex-direction:column}.garage-wallet b{font-size:25px;color:#ffe77a}.garage-close{background:#263a52;border:1px solid #729bb0;border-radius:50%;width:40px;height:40px;font-size:28px!important}.garage-body{display:grid;grid-template-columns:38% 62%}.garage-showroom{padding:22px;background:radial-gradient(ellipse at 50% 38%,#20455d,#101a2b 70%);border-right:1px solid #548ca744;text-align:center}.garage-car-tabs{display:flex;gap:8px}.garage-car-tabs button{width:25%;height:64px;border:1px solid #49748c;background:#0a1525;border-radius:12px;padding:0;overflow:hidden}.garage-car-tabs button[aria-pressed=true]{border-color:var(--car-color);box-shadow:0 0 16px color-mix(in srgb,var(--car-color),transparent 65%);background:#253849}.garage-car-tabs span{display:block;width:100%;height:100%;background-size:300% 100%;background-position:left center;background-repeat:no-repeat}.garage-preview{height:245px;position:relative;overflow:hidden;margin-top:18px;border-radius:18px;background:linear-gradient(#091221,#192e42);perspective:500px}.garage-ceiling{position:absolute;top:15%;left:12%;right:12%;height:3px;background:#a2f2ff;box-shadow:0 0 20px #67e6ff,0 45px 85px 25px #40d9ff33}.garage-platform{position:absolute;bottom:-16%;width:150%;left:-25%;height:65%;transform:rotateX(62deg);background:repeating-linear-gradient(90deg,transparent 0 39px,#5787a333 40px),repeating-linear-gradient(0deg,#142b3d 0 39px,#5787a344 40px);border-radius:50%;border:3px solid #42d9f3;box-shadow:0 0 40px #3df9ff44}.garage-car-image{position:absolute;left:7%;bottom:10%;width:86%;height:86%;background-size:300% 100%;background-repeat:no-repeat;background-position:left center;filter:drop-shadow(0 16px 9px #0009);z-index:1}.garage-preview[data-car=motorcycle] .garage-car-image{left:21%;width:58%;height:95%;bottom:1%;background-size:300% 100%}.garage-preview-label{position:absolute;bottom:8px;text-align:center;width:100%;font-size:9px;letter-spacing:2px;color:#9ad0dd;z-index:3}.garage-fitted{position:absolute;inset:0;z-index:2;pointer-events:none}.garage-fitted span{position:absolute;width:42px;bottom:29%;left:43%;filter:drop-shadow(0 0 9px #62e7ff)}.garage-fitted img{width:100%}.garage-fitted .fit-rocket{left:24%;bottom:23%;transform:rotate(180deg)}.garage-fitted .fit-hover{left:57%;bottom:16%}.garage-fitted .fit-magnet{left:43%;bottom:46%}.garage-fitted .fit-titan{left:65%;bottom:34%;width:52px}.garage-fitted .fit-stealth{left:44%;bottom:29%;width:30px}.garage-fitted .fit-fireworks{left:65%;bottom:26%;width:28px}.is-neon .garage-car-image{filter:drop-shadow(0 9px 8px #ff31cf)}.is-prismatic .garage-car-image{filter:hue-rotate(55deg) drop-shadow(0 8px 8px #96ffea)}.is-stealth .garage-car-image{filter:brightness(.65) drop-shadow(0 8px 8px #a947ff)}.garage-showroom h3{font-size:21px;margin:15px 0 5px}.garage-trait{font-size:12px;line-height:1.5;color:#a7c5d8;margin:0 0 14px}.garage-loadout{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.garage-loadout button{display:flex;align-items:center;gap:4px;padding:5px 7px;background:#23374d;border:1px solid #537e93;border-radius:8px;font-size:10px}.garage-loadout img{width:22px;height:25px}.garage-loadout b{margin-left:4px;color:#a3c0cc}.garage-stock{font-size:10px;letter-spacing:1px;color:#729aaf}.garage-note{font-size:10px;line-height:1.5;color:#90a8b9;margin:20px 10px 0}.garage-shop{padding:18px}.garage-filters{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.garage-filters button{flex:1;min-width:65px;display:flex;flex-direction:column;align-items:center;padding:6px;border:1px solid #38526d;border-radius:10px;background:#18273c;font-size:10px;white-space:nowrap}.garage-filters img{height:30px;width:32px}.garage-filters button[aria-pressed=true]{border-color:#77edff;background:#22475a;color:#fff}.garage-status{min-height:30px;font-size:12px;color:#a8f4df;padding:7px 2px;line-height:1.4}.garage-items{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:53dvh;overflow:auto;padding:2px 4px 10px 2px}.garage-part{display:flex;align-items:flex-start;gap:8px;padding:12px 10px;background:linear-gradient(145deg,#21354e,#142236);border:1px solid #3d5b75;border-radius:14px;min-width:0}.garage-part.equipped{border-color:#89efab;box-shadow:inset 0 0 20px #67ff8b0c}.garage-part.dream-part{background:linear-gradient(145deg,#402c5a,#192b47);border-color:#966fc6}.part-preview{border:0;background:transparent;flex:0 0 58px;padding:0}.part-preview img{width:58px;height:67px}.part-copy{min-width:0;flex:1}.part-copy>small{font-size:8px;letter-spacing:1px;color:#91bad3}.part-copy h4{font-size:14px;line-height:1.2;margin:3px 0 6px}.part-copy p{font-size:11px;line-height:1.45;color:#c1d2df;margin:0 0 10px}.part-action{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;border:1px solid #71d3f2;background:linear-gradient(#1d6683,#19445e);border-radius:8px;padding:5px 7px;font-size:11px!important;font-weight:700!important}.part-action img{height:22px;width:22px}.part-action:disabled{cursor:default;opacity:.55}.equipped .part-action{border-color:#93e8a4;background:#224c40}.part-gap{display:block;margin-top:5px;color:#c9aacd!important;letter-spacing:0!important;font-size:9px!important}.garage-footer{text-align:center;color:#91adbf;font-size:10px;line-height:1.5;padding:13px 0 0}@media(max-width:740px){.rv-garage{width:97vw;max-height:96dvh;border-radius:18px}.garage-top{padding:12px!important;gap:8px}.garage-top h2{font-size:21px}.garage-top img{width:32px;height:36px}.garage-top small{font-size:8px;letter-spacing:1px}.garage-wallet b{font-size:19px}.garage-close{width:32px;height:32px;font-size:22px!important}.garage-body{display:block}.garage-showroom{padding:14px;border-right:0;border-bottom:1px solid #38526d}.garage-car-tabs{max-width:420px;margin:auto}.garage-car-tabs button{height:53px}.garage-preview{height:170px;max-width:330px;margin:12px auto}.garage-showroom h3{margin:8px 0 3px}.garage-trait{margin-bottom:8px}.garage-note{margin:10px 0 0}.garage-shop{padding:12px}.garage-items{max-height:none}.garage-part{gap:6px;padding:10px 8px}.part-preview{flex-basis:42px}.part-preview img{width:42px;height:50px}.part-copy h4{font-size:12px}.part-copy p{font-size:10px}.part-action{font-size:10px!important}.garage-filters{position:sticky;top:-1px;z-index:4;background:#0a1323;padding-top:6px}.garage-filters button{min-width:53px;font-size:9px}.garage-filters img{height:26px}.garage-loadout{max-width:440px;margin:auto}}@media(max-width:360px){.garage-items{grid-template-columns:1fr}.garage-wallet small{display:none}.garage-top>div:first-child>img{display:none}}
.garage-entry{display:flex;align-items:center;justify-content:center;gap:13px;width:min(500px,100%);margin:18px auto 12px!important;padding:13px 18px!important;border:2px solid #73f1ed!important;border-radius:15px!important;background:linear-gradient(110deg,#123a51,#275c67)!important;box-shadow:0 4px 0 #061f32,0 0 25px #63e6ff30!important;color:white!important;text-align:left!important;touch-action:manipulation}.garage-entry::before{content:'';display:block;width:49px;height:49px;background:url('./assets/garage/garage.svg') center/contain no-repeat}.garage-entry>span:first-child{display:none}.garage-entry strong{font-size:18px;letter-spacing:1px}.garage-entry small{display:block;font-size:11px;color:#b7f5eb;font-weight:500;margin-top:3px}.garage-entry:hover{filter:brightness(1.15)}#garageSuper{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:190px;z-index:15;width:76px;min-height:86px;padding:5px;background:linear-gradient(#553983,#172a46);border:2px solid #bb92ff;border-radius:18px;color:#fff;box-shadow:0 0 25px #b46eff44;touch-action:none;user-select:none;-webkit-user-select:none}#garageSuper[hidden]{display:none}#garageSuperIcon{display:block;width:55px;height:55px;margin:auto;pointer-events:none}#garageSuperStatus{display:block;font-size:9px;font-weight:800;letter-spacing:.7px;text-align:center}#garageSuper:disabled{filter:saturate(.3);opacity:.65}#driveGarage{background-image:url('./assets/garage/garage.svg');background-size:27px;background-repeat:no-repeat;background-position:center}#driveGarage svg{visibility:hidden}@media(max-height:500px){#garageSuper{right:20px;bottom:138px;width:60px;min-height:67px}#garageSuperIcon{width:39px;height:39px}}@media(prefers-reduced-motion:reduce){.rv-garage *{animation:none!important;transition:none!important}}
.garage-fitted>img{position:absolute;object-fit:contain}.garage-fitted .fit-pod{width:12%;height:18%;bottom:27%;filter:drop-shadow(0 2px 3px #0009)}.garage-fitted .left{left:23%}.garage-fitted .right{right:23%}.garage-fitted .fit-flame{width:10%;height:22%;bottom:8%;filter:drop-shadow(0 0 7px #ffbc59)}.garage-fitted .fit-hover-glow{width:76%;height:18%;bottom:19%;left:12%}.garage-fitted .fit-real-magnet{width:17%;height:24%;left:41.5%;bottom:36%}.garage-fitted .fit-real-shield{width:86%;height:90%;left:7%;top:5%;opacity:.65}.garage-fitted .fit-tire{width:7%;height:14%;bottom:23%;z-index:-1}.garage-preview[data-car=motorcycle] .garage-fitted .left{left:37%}.garage-preview[data-car=motorcycle] .garage-fitted .right{right:37%}.garage-preview[data-car=motorcycle] .fit-real-shield{width:60%;left:20%}.garage-entry{flex-wrap:wrap;column-gap:10px;row-gap:0}.garage-entry small{flex-basis:100%;text-align:center;margin-top:-8px;margin-left:45px}
/* Responsive garage: keep close/wallet reachable and every category visible. */
.rv-garage .garage-top{isolation:isolate}
.rv-garage .garage-top>div:first-child{min-width:0}
.rv-garage .garage-close{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0!important;line-height:1}
.rv-garage .garage-wallet{min-width:0;flex-shrink:0}
.rv-garage .garage-wallet b{overflow-wrap:anywhere}
.rv-garage .part-action{min-height:44px}
@media(max-width:740px){
 .rv-garage .garage-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px;padding:10px!important;gap:8px}
 .rv-garage .garage-top>div:first-child>img{display:none}
 .rv-garage .garage-top h2{font-size:20px;white-space:nowrap}
 .rv-garage .garage-top small{font-size:8px;letter-spacing:.4px}
 .rv-garage .garage-wallet img{width:24px;height:28px}
 .rv-garage .garage-wallet b{font-size:18px;max-width:110px}
 .rv-garage .garage-filters{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px}
 .rv-garage .garage-filters button{min-width:0;min-height:54px;white-space:normal;font-size:10px}
 .rv-garage .garage-items{grid-template-columns:1fr}
 .rv-garage .garage-part{padding:12px;gap:12px}
 .rv-garage .part-preview{flex-basis:54px}
 .rv-garage .part-preview img{width:54px;height:62px}
 .rv-garage .part-copy h4{font-size:15px}
 .rv-garage .part-copy p{font-size:12px}
 .rv-garage .part-action{font-size:12px!important}
}
@media(max-width:360px){.rv-garage .garage-top small{display:none}.rv-garage .garage-wallet img{display:none}.rv-garage .garage-wallet b{font-size:16px;max-width:80px}}
@media(max-height:500px) and (min-width:741px){
 .rv-garage .garage-top{padding:8px 18px!important}
 .rv-garage .garage-top h2{font-size:22px}
 .rv-garage .garage-top img{width:32px;height:32px}
 .rv-garage .garage-preview{height:150px}
}

.rv-garage .garage-top{background:#101e34}

/* Dedicated lighting layer stays independent of paint and visible on phone previews. */
.garage-fitted .fit-neon{width:98%;height:30%;left:1%;bottom:9%;filter:drop-shadow(0 0 8px #12eeff);opacity:1}
.garage-preview[data-car=motorcycle] .fit-neon{width:64%;left:18%;bottom:3%}
.garage-fitted .fit-armor{width:78%;height:65%;left:11%;bottom:15%;opacity:.35}
.is-neon .garage-car-image{filter:drop-shadow(0 8px 7px #00eaff)}

/* v34: stable icon/sign/badge grid, no wrapping or negative-margin labels. */
#openGarage.garage-entry{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 12px;max-width:500px;padding:12px 18px!important;overflow:visible}
#openGarage.garage-entry::before{display:none}
#openGarage .shop-icon-wrap{display:block;position:relative;grid-column:1;grid-row:1 / 3;width:58px;height:58px;align-self:center}
#openGarage .shop-icon-wrap img{display:block;width:100%;height:100%;pointer-events:none}
#openGarage .shop-sign{display:block;width:100%;height:auto;max-height:58px;object-fit:contain;grid-column:2;grid-row:1;pointer-events:none}
#openGarage .shop-count,#driveGarage .shop-count{position:absolute;top:-7px;right:-8px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border:2px solid #fff3b3;border-radius:18px;background:linear-gradient(#ffdf60,#f59a25);box-shadow:0 2px 0 #7b4810,0 0 12px #ffd45765;color:#182131;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1;box-sizing:border-box}
#openGarage #shopAffordableNote{grid-column:2;grid-row:2;display:block;margin:1px 0 0;min-width:0;text-align:center;line-height:1.3;font-size:11px;letter-spacing:0;color:#d6fff6}
@media(max-width:370px){#openGarage.garage-entry{grid-template-columns:45px minmax(0,1fr);gap:3px 10px;padding:10px 11px!important}#openGarage .shop-icon-wrap{width:45px;height:45px}#openGarage #shopAffordableNote{font-size:10px}}
.garage-affordable{margin:2px 0 8px;color:#baffdc;font-size:12px;line-height:1.4;min-height:18px}

#openGarage .shop-count[hidden],#driveGarage .shop-count[hidden]{display:none}

/* Affordable is not locked: retain legibility and explain the wallet shortfall. */
.part-action:disabled{opacity:1;background:#293c51;border-color:#90a6bd;color:#edf3fa;cursor:not-allowed}
.part-gap{color:#ffe095!important;font-size:12px!important}
.garage-part.owned .part-action{background:#174d65;border-color:#69e6ff}
#driveGarage{position:relative;overflow:visible}
#driveGarage .shop-count{top:-4px;right:-4px;min-width:20px;height:20px;font-size:11px;padding:0 4px;pointer-events:none}

body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:4;opacity:0;transition:opacity .25s;background:radial-gradient(ellipse at 50% 65%,transparent 48%,#19bfff30 78%,#ff913a55 100%);}body.rocket-active::after{opacity:1;}

.mach-badge,#machRecord{display:block;font-size:10px;line-height:1.3;color:#8defff;white-space:nowrap;}

#weatherBadge{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:7;pointer-events:none;text-align:center;color:#dfffff;text-shadow:0 2px 5px #001b38;}#weatherBadge img{display:block;width:46px;height:52px;margin:auto;filter:drop-shadow(0 0 7px #5fdcff);}#weatherBadge small{font:bold 11px system-ui;}#weatherBadge[hidden]{display:none;}

#rivalBadge{position:fixed;top:15%;left:50%;transform:translateX(-50%);z-index:8;pointer-events:none;text-align:center;width:clamp(170px,26vw,300px);}#rivalBadge img{width:100%;filter:drop-shadow(0 4px 12px #0008);}#rivalBadge small{display:block;color:white;font:bold 20px system-ui;text-shadow:0 2px 5px #000;}#rivalBadge[hidden]{display:none;}

#rivalGap{position:relative;height:10px;width:70%;margin:8px auto;border-radius:10px;background:linear-gradient(90deg,#e48656,#537ca6,#8cff9d);box-shadow:0 1px 5px #001;}#rivalGap i{position:absolute;left:50%;height:14px;top:-2px;width:2px;background:white;}#rivalGap b{position:absolute;left:var(--race-position,50%);top:-5px;width:16px;height:16px;transform:translateX(-50%);border:2px solid white;border-radius:50%;background:#54ddff;box-shadow:0 0 6px #7deaff;}#rivalGap[hidden]{display:none;}
