/* Shared visual language from the approved garage and backpack mockups. */
.release-screen{width:min(1440px,96vw);max-width:1440px;height:min(960px,94dvh);max-height:94dvh;padding:0;background:#f5efd8;color:#203f34;border:2px solid #bba363;border-radius:20px;overflow:auto;box-shadow:0 24px 90px #071a1766;font-family:inherit}
.release-screen::backdrop{background:#102b25bf;backdrop-filter:blur(8px)}
.release-screen button,.release-screen select,.release-screen input{font:inherit}.release-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 30px;background:#203f34;color:#f5efd8;border-bottom:2px solid #c4a964}.release-head strong{font-size:24px;letter-spacing:.08em}.release-head .quiet{color:#f5efd8;border:1px solid #e5d29566;background:transparent;padding:10px 16px;border-radius:10px}.release-head #wallet-value{margin-left:auto;color:#edca77;font-size:23px;font-weight:800}.release-screen .primary-button{border:1px solid #b99b53;background:#edca77;color:#203f34;border-radius:13px;padding:14px 24px;box-shadow:0 3px 0 #a88a49;font-weight:800;cursor:pointer}.release-screen button:disabled{opacity:.45;cursor:default}.release-screen .secondary-button{color:inherit;background:transparent;border:1px solid #bca56b;padding:12px 18px;border-radius:12px}.release-screen h2{font-size:30px;line-height:1.25;margin:18px 0}.release-screen small{line-height:1.7}.release-screen button:focus-visible,.release-screen select:focus-visible,.release-screen tr:focus-visible{outline:3px solid #cb8f22;outline-offset:3px}.release-screen select,.release-screen input{border:1px solid #cfbf8e;background:#fffbed;color:#203f34;padding:12px;border-radius:10px;max-width:100%}.release-screen .selected{outline:2px solid #d6aa50;outline-offset:-2px}.garage-layout{display:grid;grid-template-columns:56% 44%;min-height:590px}.spot-stage{background:#203f34 url('./assets/showcase-v50.png') center/cover;color:#f5efd8;padding:34px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0}.spot-stage>small{color:#d8d0ae}.eyebrow{align-self:flex-start;text-align:left;font-size:13px;letter-spacing:.06em}.ride-art{display:flex;align-items:center;justify-content:center;position:relative;min-width:0}.ride-art img{width:100%;height:100%;object-fit:contain}.spot-stage>.ride-art{width:90%;height:250px;margin:12px 0}.ride-art.running img{animation:road-bob .55s ease-in-out infinite alternate}.ride-art.running::after{content:'';position:absolute;left:8%;bottom:20%;width:25px;height:17px;background:url('./assets/showcase-v50.png') center/cover;border-radius:50%;opacity:.35;animation:road-bob .4s infinite alternate}.level-pill{border:1px solid #d5b767;border-radius:20px;padding:4px 15px;color:#f0ce7a}.release-stats{display:flex;align-items:stretch;justify-content:center;gap:0;width:100%;margin:16px 0}.release-stats>div{flex:1;min-width:0;padding:8px 12px;border-right:1px solid #a997683d}.release-stats>div:last-child{border:0}.release-stats small{display:block;font-size:12px;color:inherit;opacity:.7}.release-stats strong{display:block;font-size:21px;line-height:1.5;overflow-wrap:anywhere}.spot-stage .large{width:65%;font-size:22px}.garage-roster{padding:26px;background:#f5efd8;overflow:auto;max-height:640px}.release-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-bottom:18px}.release-tabs button{border:0;background:transparent;border-radius:12px;color:#52624b;padding:10px 15px;cursor:pointer}.release-tabs button[aria-pressed=true]{background:#244b3d;color:#fff5d7;font-weight:800}.garage-row{width:100%;display:flex;align-items:center;gap:18px;border:1px solid #dfd3b1;background:#fbf7e6;text-align:left;color:#203f34;border-radius:14px;padding:16px;margin-bottom:14px;cursor:pointer}.garage-row.selected{background:#254b3d;color:#f5efd8}.garage-row>.ride-art{width:125px;height:78px;flex-shrink:0}.garage-row strong{display:block;font-size:19px;margin:8px 0}.garage-row span{font-size:12px;opacity:.8}.status-running,.status-stopped{display:inline-block;padding:3px 9px;border:1px solid #9dbe8277;border-radius:20px}.status-running{color:#6aaf65}.selected .status-running{color:#b8e79c}.status-stopped,.stopped-note{color:#bd6349}.empty-bay{display:block;width:100%;background:transparent;border:1px dashed #cfc099;color:#9a946e;padding:25px;border-radius:12px;margin-top:14px;cursor:pointer}.release-foot{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:20px 28px;background:#203f34;color:#f5efd8;border-top:1px solid #c6aa6a;line-height:1.7}.release-foot button:not(.primary-button){background:transparent;color:inherit;border:1px solid #ccb77588;border-radius:12px;padding:10px 18px;cursor:pointer}.release-foot small{width:100%;opacity:.65}.departing .ride-art{animation:drive-out .45s ease-in forwards}.enter-stopped{animation:fade-enter .45s forwards}.inventory-layout{display:grid;grid-template-columns:47% 53%;min-height:650px}.item-stage{padding:26px}.item-stage .item-hero{display:block;width:100%;max-height:300px;object-fit:contain}.item-stage .release-stats{flex-wrap:wrap}.item-stage .release-stats strong{font-size:17px}.item-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.item-value{color:#e8c675;font-size:20px}.inventory-right{padding:24px;min-width:0}.capacity-label{margin-left:auto;font-weight:800}.inventory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:470px;overflow:auto;padding:3px}.inventory-tile{position:relative;display:flex;flex-direction:column;text-align:left;padding:10px;border:1px solid #ddd0ac;background:#faf6e5;color:#203f34;border-radius:12px;cursor:pointer;min-width:0}.inventory-tile canvas{width:100%;height:110px;object-fit:contain}.inventory-tile strong{font-size:13px;margin:6px 0;line-height:1.5}.inventory-tile .price{font-size:13px;color:#a0772a}.inventory-tile.selected{background:#fff0bb}.locked-badge{position:absolute;top:5px;right:5px;font-size:10px!important;border-radius:5px;padding:1px 4px;background:#315344;color:#fff4cf}.inventory-empty{border:1px dashed #d3c7a6;min-height:150px;border-radius:12px;display:grid;place-items:center;color:#aaa382;font-size:13px}.inventory-sale{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px;padding-top:18px;border-top:1px solid #d3c7a6}.inventory-sale #sell{font-size:14px}.inventory-sale small{font-size:12px;color:#7f846c}.inventory-sale #price-open{font-size:12px;color:#546c54;background:none;border:0}.member-strip strong{font-size:18px}.member-strip span{font-size:12px;flex:1;opacity:.8}.member-layout{display:grid;grid-template-columns:62% 38%}.member-table{padding:26px}.member-table table{border-collapse:collapse;width:100%;margin-top:20px;font-size:15px}.member-table th{text-align:left;background:#e8dfbf}.member-table th,.member-table td{padding:14px 9px;border-bottom:1px solid #dfd4b2}.member-table tr:not(:first-child){cursor:pointer}.member-table tr.selected{background:#ffe9ad;color:#764d17}.member-layout .spot-stage{gap:16px}.vip-badge{font-size:52px;font-weight:900;color:#edca77;border:2px solid #d5b161;border-radius:24px;padding:26px 38px;letter-spacing:.06em}.upgrade-price{font-size:32px;font-weight:800;color:#edca77;margin:8px}.member-layout .release-stats strong{font-size:18px}.member-layout button{max-width:100%}.demo-tag{display:inline-block;padding:6px 12px;color:#97722c;background:#f8e8b9;border:1px solid #d2b26f;border-radius:8px}.ranking-layout{display:grid;grid-template-columns:67% 33%;min-height:650px}.ranking-list{padding:24px}.ranking-list>small{display:block;margin:10px 0}.ranking-list .release-tabs{margin-top:16px}.ranking-list select{width:100%}.ranking-rows{max-height:450px;overflow:auto;margin-top:18px}.ranking-entry{width:100%;display:flex;align-items:center;gap:16px;padding:10px 14px;border:0;border-bottom:1px solid #ddd1af;background:transparent;text-align:left;color:#203f34;cursor:pointer}.ranking-entry canvas,.ranking-entry .ride-art{width:80px;height:60px;object-fit:contain;flex-shrink:0}.ranking-entry span{flex:1;font-size:16px}.ranking-entry .rank-number{min-width:25px;font-size:20px}.ranking-entry strong:last-child{min-width:100px;text-align:right}.ranking-entry.self{background:#254b3d;color:#f5efd8;border-radius:10px}.rank-hero{width:100%!important;height:240px!important;object-fit:contain}.ranking-layout .spot-stage .rank-hero canvas{width:100%;height:100%;object-fit:contain}.retire-link{display:block;margin-top:30px;border:0;background:none;color:#946e61;font-size:12px;cursor:pointer}.login-layout{padding:60px;max-width:700px;margin:auto}.login-layout input{width:100%;margin:24px 0}.slot canvas{max-width:100%;max-height:100%}
@keyframes road-bob{from{transform:translateY(-1px)}to{transform:translateY(2px)}}@keyframes drive-out{15%{transform:translateX(-8px)}100%{transform:translateX(850px);opacity:0}}@keyframes fade-enter{to{opacity:0}}
@media(max-width:1000px){.release-screen{width:98vw;height:96dvh;max-height:96dvh}.inventory-layout,.garage-layout,.member-layout,.ranking-layout{grid-template-columns:1fr 1fr}.inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.inventory-layout,.garage-layout,.member-layout,.ranking-layout{grid-template-columns:1fr}.spot-stage{min-height:400px;padding:20px}.inventory-grid{max-height:440px}.release-stats strong{font-size:17px}.release-head{padding:16px}.release-head strong{font-size:20px}.member-table{padding:14px}.member-table th,.member-table td{font-size:12px;padding:10px 5px}.ranking-entry{gap:7px;padding:8px}.ranking-entry span{font-size:13px}.ranking-entry small{display:none}.ranking-layout .spot-stage{min-height:320px}.garage-roster{max-height:550px}.release-foot{padding:18px}.item-controls button{padding:10px!important}.header .header-right>button:first-child{font-size:11px}}
@media(prefers-reduced-motion:reduce){.ride-art.running img,.departing .ride-art,.enter-stopped{animation:none}}
/* Override legacy dialog chrome; both panes stay readable and fit the viewport. */
.inventory-screen{background:#f5efd8!important;width:min(1440px,96vw)!important;max-width:1440px!important}
.inventory-right,.garage-roster,.ranking-list,.member-table{background:#f5efd8;color:#203f34}
.inventory-layout{min-height:0;height:calc(min(960px,94dvh) - 170px)}
.inventory-right{overflow:auto}.item-stage{overflow:auto;justify-content:flex-start}.item-stage .eyebrow{margin-bottom:8px}.item-stage .item-hero{width:100%;height:clamp(150px,27vh,280px);flex-shrink:0}.item-stage h2{margin:8px 0;font-size:26px}.item-stage .release-stats{margin:4px 0}.item-stage .item-value{margin:8px}.item-controls{margin-top:auto}.inventory-grid{max-height:calc(94dvh - 330px)}
.inventory-sale small{color:#69735a}.inventory-right .release-tabs button{color:#52624b}.inventory-right .release-tabs button[aria-pressed=true]{color:#fff5d7}.member-strip{min-height:72px}.inventory-empty{background:transparent;color:#9a946e}.release-screen .spot-stage canvas{flex-shrink:0}.release-screen .spot-stage .secondary-button{color:#f5efd8}
@media(max-width:720px){.inventory-layout{height:auto}.inventory-grid{max-height:450px}.item-stage{min-height:430px}.inventory-right{overflow:visible}.member-strip{min-height:100px}}
#bag-dialog.release-screen{color-scheme:light;display:none;overflow:hidden}
#bag-dialog.release-screen[open]{display:flex}
.inventory-screen .release-head,.inventory-screen .member-strip{flex-shrink:0}
.inventory-layout{flex:1;min-height:0;height:auto;overflow:hidden}
.inventory-right{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.inventory-right .release-tabs{flex-shrink:0;margin-bottom:12px}
.inventory-grid{flex:1;min-height:0;max-height:none;overflow:auto}
.inventory-sale{flex-shrink:0;margin-top:12px;padding-top:12px;gap:8px}
.inventory-sale .primary-button{padding:10px 16px;font-size:12px}
.inventory-sale small{font-size:11px}.inventory-sale #price-open{font-size:11px}
.item-stage{gap:7px;padding:22px;overflow:auto}
.item-stage .item-hero{height:clamp(120px,22dvh,230px)}
.item-stage p{font-size:13px;margin:5px 0}
.item-stage .item-controls{flex-shrink:0;margin-top:auto}
.item-stage .item-controls .secondary-button{background:#203f34;color:#fff3cf;border-color:#c9ac68}
@media(max-width:720px){#bag-dialog.release-screen{overflow:auto}.inventory-layout{display:flex;flex-direction:column;flex:none;overflow:visible}.inventory-right{min-height:500px}.item-stage{min-height:440px}.inventory-grid{flex:none;max-height:450px}.member-strip{flex-shrink:0}}
.waiting-driver{position:absolute;bottom:0;right:0;width:22%;height:55%;object-fit:contain;animation:sigh-breath 3.4s ease-in-out infinite}
@keyframes sigh-breath{0%,100%{transform:translateY(0)}50%{transform:translateY(2px)}}
@media(prefers-reduced-motion:reduce){.waiting-driver{animation:none}}
@media(max-height:800px) and (min-width:721px){.member-table{padding:18px}.member-table h2{margin:8px 0;font-size:25px}.member-table table{font-size:13px;margin-top:12px}.member-table th,.member-table td{padding:9px 8px}.member-layout .spot-stage{gap:10px;padding:20px}.member-layout .vip-badge{font-size:34px;padding:20px}.member-layout h2{font-size:22px;margin:8px 0}.member-layout .release-stats{margin:4px 0}.member-layout .upgrade-price{font-size:26px}.member-layout .spot-stage button{font-size:12px;padding:10px 14px}.member-layout .spot-stage small{font-size:10px}}
.garage-screen[open],.member-screen[open],.ranking-screen[open]{display:flex;flex-direction:column;overflow:hidden}
.garage-screen>.release-head,.member-screen>.release-head,.ranking-screen>.release-head,.garage-screen>.release-foot,.member-screen>.release-foot,.ranking-screen>.release-foot{flex-shrink:0}
.garage-layout,.member-layout,.ranking-layout{flex:1;min-height:0;overflow:hidden}
.garage-layout .spot-stage{overflow:auto;gap:8px;padding:22px}
.garage-layout .spot-stage>.ride-art{height:clamp(100px,23dvh,260px);margin:4px 0;flex-shrink:0}
.garage-layout .spot-stage h2{margin:8px 0;font-size:28px}
.garage-layout .release-stats{margin:6px 0}
.garage-roster{min-height:0;max-height:none;overflow:auto}
.garage-screen .release-foot{padding:14px 24px;gap:12px}
.garage-screen .release-foot small{font-size:10px}
.member-table,.member-layout .spot-stage,.ranking-list,.ranking-layout .spot-stage{overflow:auto;min-height:0}
@media(max-width:720px){.garage-screen[open],.member-screen[open],.ranking-screen[open]{display:block;overflow:auto}.garage-layout,.member-layout,.ranking-layout{display:flex;flex-direction:column;overflow:visible}.garage-layout .spot-stage{min-height:500px}.garage-roster{max-height:500px}.member-layout .spot-stage{min-height:550px}.ranking-list{min-height:550px}.ranking-layout .spot-stage{min-height:450px}}
@media(max-height:800px) and (min-width:721px){.garage-layout .spot-stage{justify-content:flex-start;padding:14px;gap:4px}.garage-layout .spot-stage>.ride-art{height:16dvh;margin:0}.garage-layout .spot-stage>.eyebrow,.garage-layout .spot-stage>small{display:none}.garage-layout .spot-stage h2{font-size:24px;margin:4px 0}.garage-layout .level-pill{padding:2px 12px}.garage-layout .release-stats{margin:3px 0}.garage-layout .release-stats>div{padding:5px}.garage-layout .release-stats strong{font-size:18px}.garage-layout .stopped-note{font-size:12px;margin:4px 0}.garage-layout .large{margin-top:auto;padding:11px 22px;font-size:18px}}
.selected .status-stopped{color:#f0be84}.garage-layout .stopped-note{color:#efba81}
.ride-art.running::after{display:none}.ride-exhaust{position:absolute;left:-8%;bottom:8%;width:30%;height:45%;pointer-events:none;z-index:0}.ride-art>img{position:relative;z-index:1}.waiting-driver{z-index:2}
.ride-exhaust{width:110px;height:55px}
@media(max-height:800px) and (min-width:721px){.garage-layout .spot-stage>.ride-art{height:26dvh}}

/* Road events remain active without the redundant narration card. */
#event-card{display:none!important}
