/* GTAUP V464 — visual recovery: cases, mystery, item thumbnails and existing garage. */
/* Respect actual visibility state: no duplicated stage or empty reserve. */
html body #page-cases [hidden],html body #page-cases [hidden] *{display:none!important;visibility:hidden!important}
html body #page-cases #v329CustomDetail[hidden],html body #page-cases #caseCatalogHomeV215[hidden],html body #page-cases .case-detail-v215[hidden]{display:none!important;visibility:hidden!important;min-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important}
/* CASE COLLECTION: illustrated landscape cards; original server events are kept. */
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-catalog-grid-v214{gap:19px!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-preview-v214.v464-artcard{height:342px!important;min-height:342px!important;border-radius:21px!important;border:1px solid #385d7a!important;background:#0b1a2b!important;box-shadow:0 15px 44px rgba(2,9,20,.36)!important;overflow:hidden!important;contain:layout paint style;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-preview-v214.v464-artcard:before{display:none!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-preview-v214.v464-artcard:after{height:2px!important;background:linear-gradient(90deg,transparent,#83cfff,transparent)!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-art-v214{position:absolute!important;inset:0 0 56px!important;width:100%!important;height:auto!important;z-index:0!important;display:block!important;padding:0!important;overflow:hidden!important;background:#07111d!important;max-height:none!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-art-v214:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(7,18,31,.34) 0%,rgba(7,18,31,.0) 35%,rgba(7,18,31,.1) 65%,#0a182a 100%)}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-art-v214 img{display:block!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:cover!important;opacity:1!important;filter:none!important;transform:scale(1.015)!important;margin:0!important;transition:transform .35s ease!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard:hover .case-preview-art-v214 img{transform:scale(1.08)!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214{z-index:2!important;flex:0 0 auto!important;height:auto!important;padding:18px 18px 8px!important;align-items:flex-start!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214 b{font-weight:900!important;font-size:17px!important;letter-spacing:.1px!important;color:#fff!important;text-shadow:0 2px 10px #051320!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214 small{color:#b9d6e9!important;text-shadow:0 1px 6px #07121e!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214 i{background:#081a2cbf!important;border:1px solid #74b1dd85!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-bottom-v214{z-index:2!important;margin-top:auto!important;height:67px!important;flex:0 0 67px!important;background:#0a192cfa!important;border-top:1px solid #6796b244!important;padding:13px 18px!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-bottom-v214 strong{background:linear-gradient(135deg,#39779a,#1d4c72)!important;color:#fff!important}
/* CASE DETAIL. Main art gets dedicated gallery space, no fake second panel. */
html.gtaup-v448[data-release="V448"] body #page-cases .case-stage-v196:not([hidden]){background:radial-gradient(ellipse at 48% 43%,#1d456455,transparent 55%),linear-gradient(135deg,#10283f,#071827)!important;box-shadow:0 24px 50px #03111e70!important;border:1px solid #365d79!important;border-radius:22px!important;overflow:hidden!important}
html.gtaup-v448[data-release="V448"] body #page-cases .case-stage-art-v196{position:relative!important;min-height:250px!important;overflow:hidden!important}
html.gtaup-v448[data-release="V448"] body #page-cases .case-stage-art-v196 img{max-height:290px!important;max-width:95%!important;width:auto!important;height:auto!important;filter:drop-shadow(0 18px 23px #010d1b7c)!important;object-fit:contain!important}
html.gtaup-v448[data-release="V448"] body #page-cases .case-stage-buy-v196{background:linear-gradient(150deg,#183754,#0d253c)!important;border:1px solid #487796!important;border-radius:17px!important}
/* MYSTERY: keep server-driven phases, make existing 3D cube centerpiece and calm GPU workload. */
html.gtaup-v448[data-release="V448"] body #page-mystery .mm-hero{background:radial-gradient(ellipse 600px 470px at 53% 42%,#2e719050,transparent 72%),linear-gradient(138deg,#112f48,#071727 82%)!important;border-color:#467795!important;border-radius:24px!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .mm-top h1{font-size:clamp(30px,3.5vw,64px)!important;letter-spacing:-1.9px!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .mm-stage{padding-bottom:26px!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .mm-portal{height:400px!important;min-height:400px!important;max-width:540px!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-cube{width:182px!important;height:182px!important;filter:drop-shadow(0 16px 16px #06132085)!important;animation-duration:17s!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(1){transform:translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(2){transform:rotateY(90deg) translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(3){transform:rotateY(180deg) translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(4){transform:rotateY(-90deg) translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(5){transform:rotateX(90deg) translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(6){transform:rotateX(-90deg) translateZ(91px)!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-arena .v461-orbit{border-color:#76c9ed48!important;box-shadow:none!important}
html.gtaup-v448[data-release="V448"] body #page-mystery .v461-arena:after{content:"GTAUP  /  MYSTERY";position:absolute;bottom:24px;font-size:11px;font-weight:900;letter-spacing:4px;color:#90c8e5a8}
/* Rebuilt item art with natural contrast, no double 2.5x brightness. */
html body #page-upgrader :is(#garageGrid,#catalogGrid) img[data-car-id],html body #page-upgrader .car-img img,html body #page-shop .shop-item .car-img img,html body #page-cases .case-item-img-v188 img{mix-blend-mode:normal!important;opacity:1!important;filter:drop-shadow(0 11px 16px rgba(0,0,0,.30))!important}
html body #page-upgrader #garageGrid .car-img,html body #page-upgrader #catalogGrid .car-img{background:radial-gradient(ellipse at 50% 57%,#335b764f,transparent 70%)!important;overflow:visible!important}
html body #page-upgrader #garageGrid img[data-car-id],html body #page-upgrader #catalogGrid img[data-car-id]{max-width:96%!important;object-fit:contain!important}
html body #page-upgrader #garageGrid .car,html body #page-upgrader #catalogGrid .car{background:linear-gradient(160deg,#192f49,#101e34)!important;border:1px solid #3d5b76!important;border-radius:13px!important}
/* Browsers need not paint thousands of hidden cards at once. */
@supports (content-visibility:auto){#page-shop .shop-item,#page-upgrader #garageGrid .car,#page-upgrader #catalogGrid .car{content-visibility:auto;contain-intrinsic-size:auto 260px}}
@media(max-width:780px){html.gtaup-v448[data-release="V448"] body #page-mystery .mm-portal{height:325px!important;min-height:325px!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-cube{width:130px!important;height:130px!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(1){transform:translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(2){transform:rotateY(90deg) translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(3){transform:rotateY(180deg) translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(4){transform:rotateY(-90deg) translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(5){transform:rotateX(90deg) translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-mystery .v461-face:nth-child(6){transform:rotateX(-90deg) translateZ(65px)!important}html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-art-v214{inset:0 0 53px!important}}
@media(max-width:520px){html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-preview-v214.v464-artcard{height:283px!important;min-height:283px!important}html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214{padding:12px 10px 4px!important}html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-top-v214 b{font-size:12px!important}html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .v464-artcard .case-preview-bottom-v214{height:60px!important;flex-basis:60px!important;padding:8px 10px!important}html.gtaup-v448[data-release="V448"] body #page-cases .case-stage-art-v196{height:240px!important;min-height:240px!important}}
@media(prefers-reduced-motion:reduce){#page-mystery .v461-cube,#page-cases .v464-artcard{animation:none!important;transition:none!important}}
