/* Code-native interiors keep the original game sprites in focus. */
#dealership-screen .dealership-showroom{user-select:none;-webkit-user-select:none}
#dealership-screen .dealership-sidebar,#dealership-screen .dealership-specs,#dealership-screen .dealership-description,#dealership-description{display:none}
#dealership-screen .dealership-layout{display:block;height:calc(100dvh - 74px)}
#dealership-screen .dealership-showroom{height:100%;display:block;touch-action:pan-y;container-type:size;background:linear-gradient(180deg,transparent 66%,#19272e 66%,#0b1117),repeating-linear-gradient(90deg,transparent 0 23%,#16242d 23% 24%),linear-gradient(#1b303b,#49636b 65%,#14232d 66%)}
#dealership-screen .showroom-light{position:absolute;inset:6% 14% auto;height:3px;background:#d9f9ff;box-shadow:0 0 20px 5px #8de4ee55;transform:none}
#dealership-screen .showroom-grid{inset:66% 0 0;opacity:.2;background:repeating-linear-gradient(0deg,transparent 0 35px,#8099a6 36px 37px),repeating-linear-gradient(90deg,transparent 0 90px,#8099a6 91px 92px);transform:none}
#dealership-screen .dealership-bike-frame{top:41%;width:min(72%,calc(66cqh * var(--dealership-bike-aspect,1.7)));filter:drop-shadow(0 14px 6px #0009)}
#dealership-screen .showroom-platform{top:65%;left:24%;right:24%;height:7%;border-color:#ff6545}
#dealership-screen .dealership-offer{position:absolute;bottom:0;left:0;right:0;min-height:70px;padding:10px 24px;gap:10px;background:#0a1119ec}
#dealership-screen .dealership-name h2{font-size:clamp(14px,2vw,26px);margin:5px 0}
#dealership-screen .dealership-purchase{display:flex;align-items:center;gap:18px}
#dealership-screen .dealership-purchase>span{display:none}
#dealership-screen .dealership-purchase strong{font-size:clamp(12px,1.8vw,22px)}
#dealership-screen .dealership-purchase button{min-height:44px;margin:0;font-size:11px;padding:10px 16px}
.dealer-swipe-nav{position:absolute;inset:0;pointer-events:none;z-index:6}
.dealer-swipe-nav button{position:absolute;top:36%;width:48px;height:48px;left:20px;background:#14232ddb;border:1px solid #77939f;color:#fff;font-size:22px;cursor:pointer;pointer-events:auto}
.dealer-swipe-nav button:last-child{left:auto;right:20px}
.dealer-swipe-nav span{position:absolute;top:8%;left:0;right:0;text-align:center;font:10px 'Silkscreen',monospace;color:#d2e9ec}
.parts-interior{height:calc(100dvh - 74px);padding:16px 24px 24px;display:flex;flex-direction:column;gap:14px;box-sizing:border-box;background:linear-gradient(0deg,#151e25 0 12%,transparent 12%),radial-gradient(#64748166 1px,transparent 1px) 0 0/12px 12px,#26343e}
.parts-interior[hidden]{display:none}
.parts-interior header{flex:none;border-left:3px solid #ff5533;padding-left:12px}
.parts-interior header>span{color:#ff9a62;font:9px 'Silkscreen',monospace}
.parts-interior h2{font:clamp(12px,1.7vw,22px) 'Silkscreen',monospace;color:#fff;margin:7px 0}
.parts-interior p{font:12px sans-serif;color:#b7cbd5;margin:0}
.parts-shelves{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;min-height:0;flex:1;scroll-snap-type:x proximity;touch-action:pan-x;padding:8px 2px 16px;scrollbar-color:#ff653e #15212b}
.shelf-part{flex:0 0 clamp(155px,23vw,280px);min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:9px;scroll-snap-align:start;position:relative;padding:12px;background:linear-gradient(#ffffff07,#0004);border:1px solid #637b87;border-bottom:9px solid #475c66;color:#fff;cursor:pointer;box-shadow:0 8px 0 #0a141c}
.shelf-part:hover,.shelf-part:focus-visible{outline:2px solid #ff955c;outline-offset:-2px;background:#b07a3033}
.shelf-visual{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border-bottom:4px solid #96a0a0;filter:drop-shadow(2px 5px 3px #0009);overflow:hidden}
.shelf-visual img,.shelf-visual svg{width:90%;height:100%;max-height:210px;object-fit:contain;image-rendering:pixelated}
.shelf-part strong{font:12px 'Silkscreen',monospace}.shelf-part>span{font:10px sans-serif;color:#c9dbe1}
.cvt-display .shelf-visual b{font:clamp(22px,4vw,50px) 'Silkscreen',monospace;background:#a6532e;border:3px solid #e0a069;padding:16px;color:#ffe3b7}
#parts-store-screen.browsing-shelves .store-layout,#parts-store-screen.browsing-shelves .store-tabs{display:none}
.shop-shelves-back{min-height:44px;padding:8px 12px;background:#263b49;color:#fff;border:1px solid #77919e;font:10px 'Silkscreen',monospace;cursor:pointer}
@media(max-height:560px){#dealership-screen .dealership-layout,.parts-interior{height:calc(100dvh - 50px)}#dealership-screen .dealership-topbar,#parts-store-screen .store-topbar{height:50px;min-height:50px}#dealership-screen .dealership-offer{min-height:62px;padding:6px 18px}.parts-interior{padding:10px 16px 18px;gap:6px}.parts-interior h2{margin:4px 0}.parts-shelves{gap:12px}.shelf-part{padding:8px;gap:5px}.shelf-visual img{max-height:150px}}
@media(max-width:600px) and (orientation:portrait){#dealership-screen .dealership-purchase{flex-direction:column;gap:6px}#dealership-screen .dealership-offer{padding:12px}.dealer-swipe-nav button{left:8px}.dealer-swipe-nav button:last-child{right:8px}.parts-interior{padding:12px}.shelf-part{flex-basis:70vw}}
/* Compact room: small hardware on the left pegboard; larger parts on the wall. */
.parts-interior{position:relative;padding:0;gap:0;background:#18232b}
.parts-shelves{display:block;padding:0;overflow:hidden}
.shop-room-wall{position:relative;width:100%;height:100%;background:#26343e url('parts-shop-room-v3.png') center/100% 100% no-repeat}
.shop-room-wall .shelf-part{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);min-height:44px;min-width:44px;padding:0;gap:2px;border:0;background:none;box-shadow:none;align-items:center;justify-content:flex-end;overflow:visible}
.shop-room-wall .shelf-visual{width:100%;border:0;min-height:0;overflow:hidden;filter:drop-shadow(2px 3px 1px #000b)}
.shop-room-wall .shelf-visual img,.shop-room-wall .shelf-visual svg{max-height:100%;width:85%;height:100%;object-fit:contain}
.shop-room-wall .shelf-part strong{background:#10202be8;border:1px solid #9c7957;padding:3px 5px;font-size:clamp(7px,.95vw,12px);white-space:nowrap}
.shop-room-wall .shelf-part>span{display:none}
.shop-room-wall .shelf-part:hover,.shop-room-wall .shelf-part:focus-visible{background:#ffe0a518;outline:2px solid #ffbd72;outline-offset:1px}
.shop-room-wall .shelf-part[data-category=MAGS]{--x:47%;--y:39%;--w:15%;--h:24%}
.shop-room-wall .shelf-part[data-category=BRAKE_CALIPER]{--x:22%;--y:17%;--w:8%;--h:19%}
.shop-room-wall .shelf-part[data-category=PIPE]{--x:72%;--y:29%;--w:23%;--h:26%}
.shop-room-wall .shelf-part[data-category=SUSPENSION]{--x:35%;--y:24%;--w:16%;--h:20%}
.shop-room-wall .shelf-part[data-category=SWING_ARM]{--x:10%;--y:58%;--w:18%;--h:20%}
.shop-room-wall .shelf-part[data-category=BRAKE_ADAPTER]{--x:40%;--y:75%;--w:9%;--h:18%}
.shop-room-wall .shelf-part[data-category=BRAKE_DISC]{--x:9%;--y:14%;--w:12%;--h:23%}
.shop-room-wall .shelf-part[data-category=RADIATOR]{--x:57%;--y:23%;--w:10%;--h:22%}
.shop-room-wall .shelf-part[data-category=ENGINE_SUPPORT]{--x:11%;--y:80%;--w:17%;--h:13%}
.shop-room-wall .shelf-part[data-category=FRONT_SHOCK]{--x:10%;--y:41%;--w:18%;--h:17%}
.shop-room-wall .shelf-part[data-category=TIRES]{--x:73%;--y:74%;--w:12%;--h:20%}
.shop-room-wall .cvt-display{--x:53%;--y:76%;--w:12%;--h:17%}
.shop-room-wall .cvt-display .shelf-visual b{padding:5px 12px;font-size:clamp(16px,2vw,27px)}
/* Orient the display pieces like the reference without editing sprite assets. */
.shop-room-wall [data-category=FRONT_SHOCK] .shelf-visual{overflow:visible}
.shop-room-wall [data-category=FRONT_SHOCK] .shelf-visual img{transform:rotate(-60deg) scale(1.35)}
.shop-room-wall [data-category=SUSPENSION] .shelf-visual img{transform:rotate(-45deg)}
/* Reference placement: unlabeled parts only; cabinet faces remain clear. */
.shop-room-wall .shelf-part strong{display:none}
.shop-room-wall .shelf-part:hover{background:none;outline:none}
.shop-room-wall .shelf-part[data-category=BRAKE_DISC]{--x:9%;--y:18%;--w:9%;--h:15%}
.shop-room-wall .shelf-part[data-category=BRAKE_CALIPER]{--x:22%;--y:19%;--w:5%;--h:13%}
.shop-room-wall .shelf-part[data-category=FRONT_SHOCK]{--x:10%;--y:44%;--w:16%;--h:10%}
.shop-room-wall .shelf-part[data-category=SWING_ARM]{--x:11%;--y:57%;--w:13%;--h:15%}
.shop-room-wall .shelf-part[data-category=ENGINE_SUPPORT]{--x:11%;--y:73%;--w:13%;--h:6%}
.shop-room-wall .shelf-part[data-category=SUSPENSION]{--x:35%;--y:28%;--w:10%;--h:13%}
.shop-room-wall .shelf-part[data-category=RADIATOR]{--x:57%;--y:25%;--w:8%;--h:16%}
.shop-room-wall .shelf-part[data-category=MAGS]{--x:45%;--y:39%;--w:11%;--h:20%}
.shop-room-wall .shelf-part[data-category=PIPE]{--x:71%;--y:25%;--w:23%;--h:16%}
.shop-room-wall .shelf-part[data-category=BRAKE_ADAPTER]{--x:80%;--y:43%;--w:6%;--h:16%}
.shop-cvt-access{min-height:44px;padding:6px 12px;color:#fff;background:#192a35;border:1px solid #647580;font:11px 'Silkscreen',monospace}
.shop-room-wall [data-category=FRONT_SHOCK] .shelf-visual img{transform:rotate(-60deg) scale(2.5)}
.shop-room-wall [data-category=SUSPENSION] .shelf-visual{overflow:visible}
.shop-room-wall [data-category=SUSPENSION] .shelf-visual img{transform:rotate(-45deg) scale(2)}
/* Product results occupy the room width; select aftermarket categories in the shop. */
#parts-store-screen .store-sidebar,#parts-store-screen .store-tabs{display:none}
#parts-store-screen .store-layout{grid-template-columns:minmax(0,1fr)}
#parts-store-screen .store-catalog{min-width:0;width:100%}
#parts-store-screen #store-cvt-filter-wrap:not([hidden]){display:block;padding:6px 12px;border-bottom:1px solid #35434d}
#parts-store-screen #store-cvt-filter-wrap>span{display:none}
#parts-store-screen #store-cvt-buttons{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto}
#parts-store-screen #store-cvt-buttons button{flex:0 0 auto;min-height:44px;width:auto;padding:6px 12px;font-size:10px}
/* Shared CVT artwork: illustrations never replace tuning specifications. */
.cvt-component-image{display:block;object-fit:contain;image-rendering:pixelated;max-width:100%;max-height:100%}
.cvt-product-art{height:105px;display:flex;align-items:center;justify-content:center;background:#090f14;border:1px solid #29333c;margin:6px 0}
.cvt-product-art .cvt-component-image{height:100%;width:100%}
.upgrade-part-preview.cvt-part-preview .cvt-component-image{width:100%;height:100%;object-fit:contain}
@media(max-height:560px){.cvt-product-art{height:72px}}
#parts-store-screen #store-cvt-filter-wrap{display:none!important}
.cvt-category-nav{display:flex;align-items:center;gap:14px;min-width:0;max-width:100%}
.cvt-category-nav[hidden]{display:none}
.cvt-category-nav button{flex:none;width:44px;height:44px;border:1px solid #657681;background:#1b2c36;color:#fff;cursor:pointer;font-size:20px}
.cvt-category-name{min-width:0;text-align:center;color:#fff;font:clamp(10px,1.5vw,18px)/1.4 'Silkscreen',monospace;min-width:160px}
@media(max-width:740px){.cvt-category-nav{gap:6px}.cvt-category-name{min-width:0}.store-result-summary{max-width:24%}}
.store-products[data-category="cvt"] .store-product-card{display:flex;height:auto;min-height:310px;gap:6px}
.store-products[data-category="cvt"] .cvt-product-art{flex:0 0 86px;height:86px;margin:0}
.store-products[data-category="cvt"] .store-cvt-function{flex:none;min-height:42px;margin:0;padding:6px}
.store-products[data-category="cvt"] .store-product-card footer{margin-top:auto}
.store-products[data-category="cvt"] .inventory-count{position:static}
/* Customize-only workshop backdrop; the live bike and controls keep their layers. */
#garage-screen.customize-mode #bike-stage{background:#303a3e url('motorcycle-workshop.svg') center var(--workshop-top,0px)/auto var(--workshop-height,100%) no-repeat}
