/* GTAUP V375: only UI layout, no game/account/transaction overrides. */
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"],
html.gtaup-v375 body.v371-theme .sidebar .nav button[data-page-target="roulette"]{
 display:flex!important;align-items:center!important;gap:10px!important;min-height:64px!important;
 padding:7px 10px!important;box-sizing:border-box!important;overflow:hidden!important;
 grid-template-columns:none!important;
}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic,
html.gtaup-v375 body.v371-theme .sidebar .nav button[data-page-target="roulette"].v371-roulette-sidebar .nav-ic{
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:relative!important;inset:auto!important;margin:0!important;padding:0!important;
 flex:0 0 43px!important;width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;
 max-width:43px!important;max-height:43px!important;overflow:hidden!important;
 border-radius:11px!important;background:#1b1529!important;background-image:none!important;
 border:1px solid #6a4c76!important;box-sizing:border-box!important;
 transform:none!important;box-shadow:inset 0 0 0 1px #382644,0 3px 8px #0a061866!important;
}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic::before,
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic::after{content:none!important;display:none!important}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic> :not(.v375-wheel-icon){display:none!important}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic img.v375-wheel-icon,
html.gtaup-v375 body.v371-theme .sidebar .nav button[data-page-target="roulette"].v371-roulette-sidebar .nav-ic img.v375-wheel-icon{
 display:block!important;position:static!important;inset:auto!important;opacity:1!important;visibility:visible!important;
 flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;
 object-fit:contain!important;box-sizing:border-box!important;background:none!important;border:0!important;outline:0!important;
 box-shadow:none!important;filter:none!important;transform:none!important;padding:0!important;margin:auto!important;
}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-copy{
 flex:1 1 auto!important;position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:flex-start!important;min-width:0!important;overflow:hidden!important;margin:0!important;transform:none!important;
}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] :is(.nav-title,.nav-sub){
 position:static!important;inset:auto!important;display:block!important;max-width:100%!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;transform:none!important;line-height:1.3!important;
}
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-arrow{flex:0 0 auto!important;position:static!important;margin-left:auto!important;transform:none!important}
/* Cases: visual hierarchy and balanced photo presentation. */
html.gtaup-v375 body #page-cases .case-catalog-grid-v214{gap:16px!important;align-items:stretch!important}
html.gtaup-v375 body #page-cases button.case-preview-v214{
 position:relative!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;
 border-radius:18px!important;border:1px solid #554157!important;
 background:radial-gradient(ellipse at 50% 32%,#42304a 0%,#251e2e 55%,#1d1926 100%)!important;
 box-shadow:0 12px 26px #09050c4d,inset 0 1px 0 #ffffff0b!important;
 padding:13px!important;min-width:0!important;overflow:hidden!important;
 transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
html.gtaup-v375 body #page-cases button.case-preview-v214:hover{
 border-color:#cc9bb5!important;transform:translateY(-3px)!important;box-shadow:0 20px 35px #09050c75,0 0 0 1px #b87d9340!important;
}
html.gtaup-v375 body #page-cases .case-preview-art-v214{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:145px!important;max-height:220px!important;padding:6px!important;box-sizing:border-box!important;
 border:0!important;box-shadow:none!important;overflow:visible!important;background:transparent!important;
}
html.gtaup-v375 body #page-cases .case-preview-art-v214 img{
 display:block!important;max-width:100%!important;max-height:175px!important;width:auto!important;height:auto!important;
 object-fit:contain!important;object-position:center!important;mix-blend-mode:normal!important;
 filter:drop-shadow(0 12px 14px #03020566)!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;
}
html.gtaup-v375 body #page-cases .case-preview-bottom-v214{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
 width:100%!important;border-top:1px solid #775d7138!important;padding-top:11px!important;
}
html.gtaup-v375 body #page-cases .case-preview-bottom-v214 strong{font-weight:850!important;white-space:nowrap!important}
html.gtaup-v375 body #page-cases .case-preview-title-v214{font-weight:850!important;letter-spacing:-.15px!important}
html.gtaup-v375 body #page-cases .v374-case-toolbar{
 border-color:#59445e!important;background:linear-gradient(145deg,#292130,#1d1926)!important;padding:18px 20px!important;
 box-shadow:0 10px 28px #0003!important
}
/* Shop is a genuine full-width workspace on the upgrader page, not a cramped panel at the bottom. */
html.gtaup-v375 body #page-upgrader .v375-upgrader-switch{
 box-sizing:border-box;display:flex;align-items:stretch;gap:6px;background:#1b1722;border:1px solid #59445d;
 border-radius:13px;padding:5px;margin:12px 0 18px;max-width:100%;width:max-content;
}
html.gtaup-v375 body #page-upgrader .v375-upgrader-switch button{
 background:transparent;border:0;border-radius:9px;padding:11px 18px;min-height:43px;
 color:#d7c6d7;font:800 13px Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap;
}
html.gtaup-v375 body #page-upgrader .v375-upgrader-switch button.active{
 color:#1d1723;background:#e0aeba;box-shadow:0 3px 10px #0502075c;
}
html.gtaup-v375 body #page-upgrader .v375-tab-hint{font-weight:600;font-size:10px;opacity:.8;margin-left:6px}
html.gtaup-v375.v375-market-open body #page-upgrader> :not(#v375MarketView):not(#v375UpgraderSwitch){display:none!important}
html.gtaup-v375 body #page-upgrader #v375MarketView[hidden]{display:none!important}
html.gtaup-v375 body #page-upgrader #v375MarketView{display:block;width:100%;box-sizing:border-box;padding:0 0 34px}
html.gtaup-v375 body #page-upgrader .v375-market-heading{
 display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 3px 19px;border-bottom:1px solid #493947;
}
html.gtaup-v375 body #page-upgrader .v375-market-heading small{font:850 10px Inter,system-ui,sans-serif;color:#d8aaba;letter-spacing:1.2px}
html.gtaup-v375 body #page-upgrader .v375-market-heading h1{font-size:clamp(24px,3.3vw,34px);font-weight:850;color:#fff2fa;margin:7px 0}
html.gtaup-v375 body #page-upgrader .v375-market-heading p{font-size:12px;line-height:1.6;color:#bdb0c7}
html.gtaup-v375 body #page-upgrader .v375-back{flex:0 0 auto;background:#302337;border:1px solid #694f69;color:#f5dfeb;padding:12px 16px;border-radius:10px;font-weight:750;cursor:pointer}
html.gtaup-v375 body #page-upgrader .v375-market-host{margin:20px 0 0;min-width:0}
html.gtaup-v375 body #page-upgrader #v375MarketHost #g2643-shop-host{
 display:block;max-height:none!important;overflow:visible!important;padding:20px!important;
 border:1px solid #574259!important;border-radius:17px!important;background:#211b2a!important;
}
html.gtaup-v375 body #page-upgrader #v375MarketHost #g2643-shop-host[hidden]{display:none!important}
html.gtaup-v375 body #page-upgrader #v375MarketHost .g2643-buy-intro{border-color:#513e51}
html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;
}
html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-item{
 border-color:#5a4661!important;border-radius:14px!important;background:#2b2234!important;
 min-height:275px!important;box-shadow:0 9px 21px #0003!important;
}
html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-item .car-img{height:135px!important;background:radial-gradient(ellipse at 50% 50%,#3d2e4a,#211b29)!important}
html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-item .buy-btn:not(:disabled){background:#78506c!important;border-color:#b480a1!important;color:#fff!important}
@media(max-width:1150px){html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){
 html.gtaup-v375 body #page-upgrader .v375-upgrader-switch{width:100%!important}
 html.gtaup-v375 body #page-upgrader .v375-upgrader-switch button{flex:1;white-space:normal;padding:9px}
 html.gtaup-v375 body #page-upgrader .v375-market-heading{align-items:flex-start;flex-direction:column}
 html.gtaup-v375 body #page-upgrader #v375MarketHost #g2643-shop-host{padding:12px!important}
 html.gtaup-v375 body #page-upgrader #v375MarketHost .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html.gtaup-v375 body #page-upgrader .v375-tab-hint{display:none}
 html.gtaup-v375 body #page-cases .case-catalog-grid-v214{gap:9px!important}
 html.gtaup-v375 body #page-cases button.case-preview-v214{padding:9px!important;border-radius:13px!important}
}
@media(prefers-reduced-motion:reduce){html.gtaup-v375 body #page-cases button.case-preview-v214{transition:none!important}}
/* V372 JS expects its original IMG to exist, but it must not occupy flex space. */
html.gtaup-v375 body .sidebar .nav button[data-page-target="roulette"] .nav-ic img.v372-roulette-img,
html.gtaup-v375 body.v371-theme .sidebar .nav button[data-page-target="roulette"].v371-roulette-sidebar .nav-ic img.v372-roulette-img{display:none!important;width:0!important;height:0!important;flex:0 0 0!important}
