/* GTAUP V374 — cohesive restrained dark UI, loaded last. */
:root.gtaup-v374{--v374-surface:#17151d;--v374-panel:#211c28;--v374-line:#4c394d;--v374-text:#fbf5fa;--v374-muted:#c0b2c5;--v374-accent:#e5a6aa}
/* Undo V373.1 show-again override; the separate 5VITO project is discontinued. */
html.gtaup-v374 body .sidebar .nav button.nav-market-primary-v187[data-page-target="shop"],
html.gtaup-v374 body #v318TopTabs .v373-top-shop{display:none!important}
html.gtaup-v374 body .sidebar .nav .v373-five-nav{display:none!important}
/* Roulette: treat wheel image as a single, centered icon, never a duplicated background. */
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"],
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"].v374-roulette-fixed{
 display:grid!important;grid-template-columns:44px minmax(0,1fr) 14px!important;
 align-items:center!important;column-gap:9px!important;min-height:62px!important;
 padding:6px 10px!important;overflow:hidden!important
}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-ic{
 position:relative!important;inset:auto!important;width:44px!important;height:44px!important;
 min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;
 padding:0!important;margin:0!important;display:flex!important;flex:0 0 44px!important;
 align-items:center!important;justify-content:center!important;overflow:hidden!important;
 border-radius:10px!important;background:#261c33!important;border:1px solid #64506e!important;
 box-shadow:inset 0 0 10px #0003!important;transform:none!important
}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-ic::before,
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-ic::after{content:none!important;display:none!important}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-ic img.v372-roulette-img{
 position:static!important;display:block!important;opacity:1!important;visibility:visible!important;
 width:40px!important;height:40px!important;min-width:0!important;min-height:0!important;
 max-width:40px!important;max-height:40px!important;object-fit:contain!important;
 transform:none!important;border:0!important;filter:none!important;background:none!important;box-shadow:none!important;
 margin:auto!important;padding:0!important
}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-copy{
 position:static!important;min-width:0!important;display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;overflow:hidden!important;transform:none!important
}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-title,
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-sub{
 position:static!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;transform:none!important
}
html.gtaup-v374 body .sidebar .nav [data-page-target="roulette"] .nav-arrow{position:static!important;transform:none!important}
/* Home: unified plum-charcoal art direction, less banner noise and larger typography. */
html.gtaup-v374 body.v368-ui.v371-theme #page-home-v368{
 background:radial-gradient(900px 480px at 65% -10%,#301d32 0%,transparent 68%),#16121c!important;
 padding:0 clamp(12px,2vw,26px) 54px!important
}
html.gtaup-v374 body.v371-theme .v371-home{color:var(--v374-text)!important;max-width:1420px!important}
html.gtaup-v374 body.v371-theme .v371-top{padding:30px 0 22px!important}
html.gtaup-v374 body.v371-theme .v371-top h1{font-size:clamp(30px,3.5vw,46px)!important;letter-spacing:-1.7px!important;font-weight:850!important;color:#f7f0f7!important}
html.gtaup-v374 body.v371-theme .v371-eyebrow{font-size:10px!important;color:#d7aab2!important;letter-spacing:1.3px!important}
html.gtaup-v374 body.v371-theme .v371-live-chip{background:#251d2b!important;color:#e2d2dd!important;border-color:#64465d!important;font-size:11px!important}
html.gtaup-v374 body.v371-theme .v371-hero{
 height:clamp(235px,26vw,330px)!important;border-radius:18px!important;
 border:1px solid #735368!important;background:#241927!important;
 box-shadow:0 16px 40px #08050c62!important
}
html.gtaup-v374 body.v371-theme .v371-hero-image{opacity:.52!important;object-position:center!important;filter:saturate(.73) brightness(.82)!important}
html.gtaup-v374 body.v371-theme .v371-hero-overlay{
 background:linear-gradient(90deg,#1b1523 0%,#211525f7 31%,#2b1c2bba 65%,#2115222b 100%)!important
}
html.gtaup-v374 body.v371-theme .v371-hero-copy{left:clamp(20px,3vw,45px)!important;width:min(600px,82%)!important}
html.gtaup-v374 body.v371-theme .v371-hero-copy>strong{font-size:clamp(26px,3.4vw,49px)!important;line-height:1.07!important;max-width:560px!important;color:#f9edf4!important;letter-spacing:-1.9px!important;font-weight:850!important}
html.gtaup-v374 body.v371-theme .v371-hero-copy>small{font-size:clamp(12px,1vw,14px)!important;color:#d3becd!important;max-width:480px!important;line-height:1.5!important}
html.gtaup-v374 body.v371-theme .v371-cta{background:#d9a5ad!important;color:#271321!important;border-radius:10px!important;box-shadow:0 7px 20px #0004!important}
html.gtaup-v374 body.v371-theme .v371-hero:hover .v371-cta{background:#f0c0c4!important}
html.gtaup-v374 body.v371-theme .v371-group-head{margin:31px 0 14px!important}
html.gtaup-v374 body.v371-theme .v371-group-head h2{font-size:23px!important;color:#f7eff8!important}
html.gtaup-v374 body.v371-theme .v371-featured-grid{gap:14px!important;margin-bottom:14px!important}
html.gtaup-v374 body.v371-theme .v371-regular-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html.gtaup-v374 body.v371-theme .v371-wide-grid{gap:12px!important;margin-top:12px!important}
html.gtaup-v374 body.v371-theme .v371-game{
 height:175px!important;border-radius:15px!important;background:#231a2b!important;
 border:1px solid #5c4057!important;box-shadow:0 9px 22px #00000024!important
}
html.gtaup-v374 body.v371-theme .v371-featured{height:224px!important}
html.gtaup-v374 body.v371-theme .v371-wide{height:128px!important}
html.gtaup-v374 body.v371-theme .v371-card-img{opacity:.78!important;filter:saturate(.75) brightness(.8)!important}
html.gtaup-v374 body.v371-theme .v371-card-veil{background:linear-gradient(90deg,#19131ff7 0%,#1a1223e8 34%,#26182868 75%,#2618282b 100%)!important}
html.gtaup-v374 body.v371-theme .v371-card-kicker{color:#ddaeb5!important;font-size:9px!important}
html.gtaup-v374 body.v371-theme .v371-card-content strong{color:#fff4f8!important;font-size:clamp(19px,1.75vw,25px)!important}
html.gtaup-v374 body.v371-theme .v371-card-content small{color:#ddcbd7!important;font-size:11px!important}
html.gtaup-v374 body.v371-theme .v371-game:not(.v371-inactive):hover{border-color:#d99fb3!important;transform:translateY(-2px)!important;box-shadow:0 15px 30px #0007!important}
html.gtaup-v374 body.v371-theme .v371-game.v371-inactive{opacity:.7!important;filter:saturate(.5)!important}
/* Roulette: calmer surface, clearly labeled state and optimized paint pipeline. */
html.gtaup-v374 body #page-roulette{--cr-panel:#1b1722;--cr-panel2:#241d2a;--cr-line:#5a4159;--cr-copy:#f5e9f0;--cr-muted:#c4b0c1;--cr-copper:#f2b6bb;background:#16121c!important;color:#f6edf4!important}
html.gtaup-v374 body #page-roulette .cr-shell{max-width:1420px!important;margin:0 auto!important}
html.gtaup-v374 body #page-roulette .cr-heading{margin:14px 0 21px!important}
html.gtaup-v374 body #page-roulette .cr-heading h1{font-weight:860!important;letter-spacing:-1px!important}
html.gtaup-v374 body #page-roulette .cr-card{background:linear-gradient(155deg,#241d2b,#1b1822)!important;border:1px solid #564154!important;border-radius:17px!important;box-shadow:0 14px 35px #06030a36!important;backdrop-filter:none!important}
html.gtaup-v374 body #page-roulette .cr-wheel-bg{
 border:8px solid #261c2a!important;border-radius:50%!important;box-shadow:0 0 0 1px #806078,0 23px 54px #0009,inset 0 0 0 2px #a48086!important;
 isolation:isolate;overflow:visible!important
}
html.gtaup-v374 body #page-roulette .cr-wheel-rotor,html.gtaup-v374 body #page-roulette .cr-ball-ring{will-change:transform!important;backface-visibility:hidden!important;transition:none!important;contain:paint}
html.gtaup-v374 body #page-roulette .cr-wheel-glass{border-color:#8b697a!important;box-shadow:inset 0 0 30px #05030999!important;background:radial-gradient(circle at 50% 20%,#352637,#16121c)!important}
html.gtaup-v374 body #page-roulette .cr-wheel-glass strong{color:#fff5f8!important}
html.gtaup-v374 body #page-roulette .cr-live,html.gtaup-v374 body #page-roulette .cr-result-pill{border-color:#725367!important;background:#2a1e2d!important;color:#f3dce7!important}
html.gtaup-v374 body #page-roulette .cr-choice{border-radius:12px!important;background:#271e2c!important;border-color:#62465d!important;min-height:58px!important}
html.gtaup-v374 body #page-roulette .cr-choice.selected{box-shadow:0 0 0 1px #ecb9bf,0 8px 18px #0502085c!important}
html.gtaup-v374 body #page-roulette .cr-submit{background:linear-gradient(100deg,#eab0b8,#c892ac)!important;color:#241625!important;font-weight:900!important;border-radius:10px!important;box-shadow:none!important}
html.gtaup-v374 body #page-roulette .cr-submit:disabled{filter:grayscale(.4)!important;opacity:.58!important;cursor:not-allowed!important}
html.gtaup-v374 body #page-roulette .cr-stat,html.gtaup-v374 body #page-roulette .cr-player{background:#2b2030!important;border-color:#503750!important}
/* Case catalog — same visual language, all cards, including dynamically created cases. */
html.gtaup-v374 body #page-cases .case-catalog-head-v214{margin-bottom:17px!important}
html.gtaup-v374 body #page-cases .v374-case-toolbar{box-sizing:border-box;background:linear-gradient(140deg,#251b2e,#1b1823)!important;border:1px solid #634b60!important;border-radius:17px;padding:20px;margin:0 0 20px;box-shadow:0 12px 26px #0002;color:#f7eaf4;font-family:Inter,system-ui,sans-serif}
.v374-case-toolbar *, .v374-case-toolbar *::before,.v374-case-toolbar *::after{box-sizing:border-box}
.v374-case-top{display:flex;gap:16px;justify-content:space-between;align-items:end;margin-bottom:15px}
.v374-case-top h2{font-size:clamp(20px,2vw,28px);font-weight:850;color:#fff3f9;letter-spacing:-.6px;margin:4px 0 0}
.v374-eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#dfafb8}
#v374CaseCount{font-size:12px;color:#dfc2d2;white-space:nowrap;font-weight:700}
.v374-case-tools{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap}
.v374-case-search{flex:1 1 250px;display:flex;align-items:center;gap:10px;background:#17151d;border:1px solid #664c67;border-radius:11px;padding:0 12px;min-height:46px;color:#d6b6d0}
.v374-case-search>span{font-size:24px;line-height:1}
html.gtaup-v374 body #page-cases .v374-case-search input{display:block!important;min-width:0;width:100%;font:600 13px Inter,system-ui;color:#f8f1f9;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding:10px 0!important}
.v374-case-search input::placeholder{color:#a992a5}
.v374-sort{display:flex;align-items:center;gap:9px;padding:0 12px;background:#17151d;border:1px solid #664c67;border-radius:11px;color:#c7adc1;font-size:11px;font-weight:800}
html.gtaup-v374 body .v374-sort select{border:0!important;background:transparent!important;color:#f7ebf4!important;outline:0!important;padding:11px 2px;font-size:12px;font-weight:700;max-width:160px}
html.gtaup-v374 body .v374-sort option{background:#1e1825;color:#f7edf6}
.v374-case-chips{display:flex;gap:8px;flex-wrap:wrap}
html.gtaup-v374 body #page-cases .v374-case-chips button{background:#2b2331!important;border:1px solid #675168!important;border-radius:9px!important;cursor:pointer;color:#e6d4e2!important;padding:10px 14px!important;min-height:39px;font:750 12px Inter,system-ui;transition:background .16s,border-color .16s}
html.gtaup-v374 body #page-cases .v374-case-chips button:hover{background:#3d2a43!important}
html.gtaup-v374 body #page-cases .v374-case-chips button.selected{border-color:#e7b4c8!important;background:#53334d!important;color:#fff0f5!important}
html.gtaup-v374 body #page-cases .v374-case-empty{margin:15px 0 0;color:#d8bbc9;font-size:13px}
html.gtaup-v374 body #page-cases .v374-case-empty[hidden]{display:none!important}
html.gtaup-v374 body #page-cases .case-catalog-grid-v214 .v374-case-hidden{display:none!important}
html.gtaup-v374 body #page-cases .case-preview-v214{border-radius:14px!important;border:1px solid #68516b!important;background:linear-gradient(155deg,#2a2031,#1d1a25)!important;box-shadow:0 9px 20px #08030c25!important;overflow:hidden!important}
html.gtaup-v374 body #page-cases .case-preview-v214:hover{border-color:#dca4bc!important;box-shadow:0 14px 28px #07030b6b!important;transform:translateY(-2px)}
html.gtaup-v374 body #page-cases .case-preview-art-v214,
html.gtaup-v374 body #page-cases .case-stage-art-v196,
html.gtaup-v374 body #page-cases .case-stage-art-v215,
html.gtaup-v374 body #page-cases #v329Art,
html.gtaup-v374 body #page-cases .case-hero-art-v225,
html.gtaup-v374 body #page-cases .case-item-img-v188{
 background:transparent!important;background-image:none!important;
 border:0!important;outline:0!important;box-shadow:none!important;
 border-radius:0!important;filter:none!important;overflow:visible!important
}
html.gtaup-v374 body #page-cases .case-preview-art-v214::before,
html.gtaup-v374 body #page-cases .case-preview-art-v214::after,
html.gtaup-v374 body #page-cases .case-stage-art-v196::before,
html.gtaup-v374 body #page-cases .case-stage-art-v196::after{content:none!important;display:none!important}
html.gtaup-v374 body #page-cases :is(.case-preview-art-v214,.case-stage-art-v196,.case-stage-art-v215,.case-hero-art-v225,.case-item-img-v188) img{
 background:none!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;
 max-width:100%!important;object-fit:contain!important;filter:drop-shadow(0 14px 12px #0005)!important
}
/* Native case result popup remains server-confirmed; improve longevity and image framing. */
html.gtaup-v374 body .case-win-v195 .case-win-card-v195{background:linear-gradient(155deg,#302337,#1b1724)!important;border:1px solid #ac7aab!important;border-radius:19px!important;box-shadow:0 23px 70px #000a!important;padding:24px!important}
html.gtaup-v374 body .case-win-v195 .case-win-image-v195{height:210px!important;background:transparent!important;box-shadow:none!important;outline:0!important}
html.gtaup-v374 body .case-win-v195 .case-win-image-v195 img{max-width:95%!important;max-height:200px!important;border:0!important;background:transparent!important;border-radius:0!important;object-fit:contain!important;filter:drop-shadow(0 18px 15px #0008)!important}
/* Unified reveal for the constructor (V329) using only secure, confirmed DOM prizes. */
.v374-reveal{position:fixed;inset:0;z-index:40000;display:flex;align-items:center;justify-content:center;padding:20px;background:#07050bc9;backdrop-filter:blur(7px);opacity:0;transition:opacity .2s ease}
.v374-reveal.is-visible{opacity:1}
.v374-reveal-dialog{box-sizing:border-box;max-height:min(86vh,760px);overflow:auto;width:min(650px,100%);text-align:center;border-radius:20px;padding:26px;background:radial-gradient(500px 230px at 50% 0%,#53344e88,transparent),linear-gradient(160deg,#2b2032,#17141e);border:1px solid #b989ae;box-shadow:0 30px 90px #000b;transform:translateY(22px) scale(.97);transition:transform .3s cubic-bezier(.12,.8,.28,1.1);font-family:Inter,system-ui;color:#fef5fb}
.v374-reveal.is-visible .v374-reveal-dialog{transform:none}
.v374-reveal-title span{display:block;color:#e9b9cd;font-weight:850;letter-spacing:1.4px;font-size:10px}
.v374-reveal-title h2{font-size:clamp(26px,4vw,38px);font-weight:880;letter-spacing:-1.1px;margin:8px 0;color:#fff4f7}
.v374-reveal-title p{font-size:12px;color:#d9c3d3;margin:0 0 20px}
.v374-reveal-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;margin:18px 0 23px}
.v374-reveal-item{padding:14px 10px;background:#241d2b;border:1px solid #6d536e;border-radius:13px;display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0}
.v374-reveal-item img{width:100%;height:125px;object-fit:contain;filter:drop-shadow(0 12px 15px #0008)}
.v374-reveal-item strong{font-size:12px;color:#fff4f9;max-width:100%;overflow-wrap:anywhere}
.v374-reveal-item span{color:#f0bcbe;font-weight:850;font-size:12px}
.v374-reveal-continue{min-height:46px;background:#dba5b5;color:#241421;border:0;border-radius:10px;width:min(260px,100%);padding:10px 18px;cursor:pointer;font-weight:850;font-size:13px}
.v374-reveal-continue:hover{background:#efc1ce}
@media(max-width:900px){
 html.gtaup-v374 body.v371-theme .v371-regular-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.gtaup-v374 body #page-roulette .cr-grid{grid-template-columns:1fr!important}
}
@media(max-width:700px){
 html.gtaup-v374 body.v371-theme .v371-hero{height:275px!important}
 html.gtaup-v374 body.v371-theme .v371-hero-copy{left:18px!important;width:88%!important}
 html.gtaup-v374 body.v371-theme .v371-hero-copy>strong{font-size:29px!important}
 html.gtaup-v374 body.v371-theme .v371-hero-image{opacity:.3!important}
 html.gtaup-v374 body.v371-theme .v371-card-content strong{font-size:18px!important}
 html.gtaup-v374 body.v371-theme .v371-regular-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.gtaup-v374 body #page-cases .v374-case-toolbar{padding:15px!important}
 .v374-case-tools{flex-direction:column}
 .v374-sort{min-height:44px;justify-content:space-between}
 .v374-case-chips{gap:6px}
 html.gtaup-v374 body #page-cases .v374-case-chips button{padding:9px 11px!important;font-size:11px!important}
 .v374-reveal-dialog{padding:19px 15px}
 .v374-reveal-items{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v374-reveal-item img{height:97px}
}
@media(max-width:430px){
 html.gtaup-v374 body.v371-theme .v371-regular-grid{grid-template-columns:1fr!important}
 html.gtaup-v374 body.v371-theme .v371-hero-copy>strong{font-size:25px!important}
 html.gtaup-v374 body.v371-theme .v371-hero{height:270px!important}
}
@media(prefers-reduced-motion:reduce){.v374-reveal,.v374-reveal-dialog{transition:none!important}html.gtaup-v374 body.v371-theme .v371-card-img{transition:none!important}}
