/* Garage composition uses the saved car sprite for both the body and reflection. */
.garage-page{--garage-border:#35424b;--garage-surface:#121a20}
.garage-overview{border:1px solid var(--garage-border);border-radius:16px;overflow:hidden;background:var(--garage-surface);box-shadow:0 18px 55px #0003}
.garage-showcase{--garage-car-height:210px;height:440px;position:relative;isolation:isolate;overflow:hidden;background:#10191d}
.garage-showcase:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#080f15b0 0%,#07101718 52%,#101a205c 100%),url('/assets/garage-bay.webp') 50% 62%/cover;filter:saturate(.58)}
.garage-showcase:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(90deg,#080e1535,transparent 35%,transparent 70%,#080e1535);box-shadow:inset 0 -1px #ffffff12}
.garage-showcase-heading{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:start;gap:16px;padding:26px 30px;pointer-events:none}
.garage-showcase-heading>div{min-width:0}
.garage-kicker{font-size:10px;font-weight:700;letter-spacing:2px;color:#b2c4cd}
.garage-showcase-heading h2{font:500 clamp(32px,4vw,50px)/1.13 Oswald;margin:10px 0 9px;text-transform:uppercase;letter-spacing:.3px;text-shadow:0 2px 15px #0009}
.garage-showcase-heading p{font-size:12px;line-height:1.5;margin:0;color:#b7c6cd;max-width:400px}
.garage-showcase-heading .class-badge{margin-top:2px;background:#101c22bb;border-color:#78939d70;color:#c4e9ee}
.garage-light{position:absolute;inset:0;z-index:-1;pointer-events:none;animation:garage-light-breathe 9s ease-in-out infinite alternate;contain:paint}
.garage-light-warm{background:radial-gradient(ellipse at 26% 0%,#ffc98129,transparent 54%),linear-gradient(114deg,transparent 12%,#ffd3a010 32%,transparent 47%);opacity:.7}
.garage-light-cool{background:radial-gradient(ellipse at 84% 12%,#8bdaef27,transparent 56%);animation-delay:-4.5s;opacity:.6}
.garage-floor{position:absolute;inset:54% 0 0;z-index:-1;background:radial-gradient(ellipse at 50% 55%,#9ec1cc15,transparent 65%),linear-gradient(180deg,transparent,#070f1640);pointer-events:none}
.garage-car-rig{position:absolute;z-index:2;left:50%;bottom:76px;width:88%;max-width:min(900px,calc(var(--garage-car-height) * var(--car-aspect)));transform:translate(-50%,var(--ground-offset));animation:garage-arrive .32s ease-out both;pointer-events:none}
.garage-car{position:relative;z-index:3;display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 2px 1px #0004)}
.garage-reflection{position:absolute;z-index:1;left:0;top:var(--reflection-top);width:100%;height:auto;transform:scaleY(-.45);transform-origin:50% 0;opacity:.24;filter:blur(.7px);mask-image:linear-gradient(to bottom,transparent 18%,#0008 65%,#000 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 18%,#0008 65%,#000 100%);pointer-events:none}
.garage-ground-shadow{position:absolute;z-index:2;top:var(--ground);left:4%;width:92%;height:9%;border-radius:50%;transform:translateY(-45%);background:radial-gradient(ellipse,#000b,transparent 70%)}
.garage-wheel-shadows{position:absolute;inset:0;z-index:2}
.garage-tyre-shadow{position:absolute;display:block;height:5%;border-radius:50%;transform:translate(-50%,-40%);background:radial-gradient(ellipse,#000e 5%,#0006 40%,transparent 73%)}
.garage-scene-footer{position:absolute;z-index:4;left:30px;right:30px;bottom:18px;display:flex;justify-content:space-between;gap:12px;color:#a0b3bc;font-size:10px;letter-spacing:1px}
.garage-ready{display:inline-flex;align-items:center;gap:8px;color:#c2d9dd}
.garage-ready i{width:5px;height:5px;border-radius:50%;background:#95e1db;box-shadow:0 0 8px #7ae9dc70}
.garage-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;padding:20px 24px 18px;border-bottom:1px solid #2c3942}
.garage-actions button{min-height:52px;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;padding:12px;font-size:13px}
.garage-actions .secondary{background:#1b272f;border-color:#3b4b56;color:#d2dee4}
.garage-actions .secondary:hover{background:#273944;border-color:#718893}
.garage-actions .primary{box-shadow:0 3px 12px #f96f4322}
.garage-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:24px}
.garage-specs>div{padding:0 22px;border-right:1px solid #33414b;min-width:0}
.garage-specs>div:first-child{padding-left:0}.garage-specs>div:last-child{border:0;padding-right:0}
.garage-specs dt{display:flex;align-items:center;gap:8px;color:#b0c0c9;font-size:12px}
.garage-specs dt svg{width:16px;height:16px;color:#9abac8}
.garage-specs dd{font:500 31px/1.2 Oswald;margin:10px 0 0;color:#edf4f5;white-space:nowrap}
.garage-specs dd small{font:11px Manrope;color:#a2b4bf;margin-left:3px}
.garage-specs-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px 14px;padding:0 24px 19px;font-size:11px;color:#92a7b4;line-height:1.5}
.garage-page .career-card{margin-top:22px;background:#131d25;border-color:#354650}
.garage-page .lower-grid{margin-top:26px;gap:24px}
.garage-page .section-head{gap:12px;min-height:44px;margin-bottom:12px}
.garage-page .section-head h2{line-height:1.5;font-size:14px}.garage-page .section-head h2 span{display:inline-block;font-weight:400;margin-left:3px}
.garage-page .text-button{min-height:44px;min-width:44px;font-size:12px}
.garage-page .owned-row{border-radius:10px;background:#131c24;padding:12px;gap:12px;min-height:84px}
.garage-page .owned-row.chosen{background:#16252c;border-color:#7698a1}
.garage-page .owned-row img{width:100px;height:54px;object-fit:contain;border-radius:0}
.garage-page .owned-row>span:not(.chosen-label){min-width:0}
.garage-page .owned-row strong{font-size:13px;line-height:1.4}
.garage-page .owned-row small{font-size:11px;line-height:1.5;margin-top:4px}
.garage-page .chosen-label{font-size:9px;color:#a4d4df;flex-shrink:0}
.garage-page .empty-slot{min-height:72px;line-height:1.6;padding:14px;color:#a8bac6;border-color:#40505b}
.garage-page .event-card{border-radius:10px;min-height:215px}
.garage-page .event-card p{font-size:12px;line-height:1.6}
.garage-page .arrow-button{width:46px;height:46px}
.garage-page .account-link{margin-top:26px;background:#101a22;border-color:#2f414d}
.garage-page .save-note{font-size:11px;line-height:1.6}
body:has(.garage-page) .page-heading .tag,body:has(.garage-page) .balance button,body:has(.garage-page) .driver-button{min-height:44px;min-width:44px}
body:has(.garage-page) .balance button{display:grid;place-items:center;margin:0 -6px 0 0}
body:has(.garage-page) .balances .balance{min-height:44px}
body:has(.garage-page) .desktop-footer .text-button{min-height:44px;min-width:44px}
@keyframes garage-light-breathe{from{opacity:.48}to{opacity:.78}}
@keyframes garage-arrive{from{opacity:0}to{opacity:1}}
.garage-showcase{--garage-car-height:205px;height:420px}.garage-car-rig{width:90%;bottom:70px}.garage-actions{padding:18px;gap:8px}.garage-specs{padding:22px 18px}.garage-specs>div{padding:0 16px}.garage-specs-caption{padding-inline:18px}.garage-specs dd small{display:block;margin:4px 0 0}.garage-page .lower-grid{grid-template-columns:1fr}
.garage-showcase{--garage-car-height:114px;height:300px}.garage-showcase-heading{padding:20px}.garage-showcase-heading h2{font-size:34px;margin:9px 0 7px}.garage-showcase-heading p{font-size:11px;max-width:235px}.garage-kicker{font-size:8px;letter-spacing:1.5px}.garage-showcase-heading .class-badge{font-size:9px;padding:5px 7px;white-space:nowrap}.garage-car-rig{width:93%;bottom:62px}.garage-scene-footer{left:18px;right:18px;bottom:16px;font-size:8px;letter-spacing:.7px}.garage-actions{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:9px}.garage-actions .primary{grid-column:1/-1;min-height:52px}.garage-actions .secondary{min-height:48px;font-size:12px;gap:7px;padding:10px 6px}.garage-actions svg{width:17px;height:17px}.garage-specs{padding:19px 14px}.garage-specs>div{padding:0 12px}.garage-specs dt{font-size:10px;gap:5px}.garage-specs dt svg{display:none}.garage-specs dd{font-size:28px;margin-top:9px}.garage-specs dd small{font-size:10px;line-height:1.5;margin-top:3px}.garage-specs-caption{padding:0 14px 16px;font-size:10px}.garage-page .owned-row img{width:84px}.garage-page .section-head h2{font-size:13px}.garage-page .section-head{gap:8px}.garage-page .account-link{padding:16px}.garage-page .save-note{font-size:10px}.garage-page .lower-grid{gap:20px}.garage-page .career-card{margin-top:18px}
@media(max-width:360px){.garage-showcase{height:280px}.garage-showcase-heading{padding:18px 14px}.garage-showcase-heading h2{font-size:30px}.garage-showcase-heading p{max-width:210px;font-size:10px}.garage-showcase-heading .class-badge{font-size:8px;padding:5px}.garage-actions{padding:12px}.garage-specs{padding:17px 12px}.garage-specs>div{padding:0 8px}.garage-specs-caption{padding-inline:12px}.garage-specs dd{font-size:26px}.garage-specs dd small{font-size:9px}.garage-page .owned-row{gap:8px;padding:10px}.garage-page .owned-row img{width:70px}.garage-page .owned-row strong{font-size:12px}.garage-page .owned-row small{font-size:10px}.garage-page .chosen-label{font-size:8px}.garage-page .section-head h2 span{font-size:9px}.garage-page .section-head .text-button{font-size:11px}body:has(.garage-page) .topbar{height:auto;min-height:100px;padding-block:15px;gap:12px 6px}body:has(.garage-page) .balances{margin-left:auto}body:has(.garage-page) .balance{padding-inline:6px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.garage-light,.garage-car-rig{animation:none!important}.garage-light{opacity:.6}.garage-page *{transition:none!important;scroll-behavior:auto!important}}

body:has(.garage-page) #navigation{grid-template-columns:repeat(6,minmax(0,1fr))}
