/* GTAUP V451: uniform azure-slate; placed after V450. No changes to rarity logic or reels. */
html[data-feature-v451="1"]{--v451-page:#102a44;--v451-card:#172c43;--v451-inner:#0f2035;--v451-line:#375878;--v451-text:#e7f3ff;--v451-muted:#a7c1d8;--v451-blue:#4c9dd8;}
html[data-feature-v451="1"] body,html[data-feature-v451="1"] :is(.app,.main,.content,.page,.app-shell){background-color:#0e2138;color:var(--v451-text)}
/* Remove legacy Halloween warm strips and bright outlines from visible page shells. */
html[data-feature-v451="1"] body :is(.topbar,.header-dock-v24,.main-header,.page-head,.profile-modal-v31,.profile-body-v31,.profile-content-v31,.profile-side-v31,.profile-pane,.profile-pane-head-v31,#profile-garage,#profileGarage){background-color:var(--v451-page)!important;color:var(--v451-text)!important;border-color:var(--v451-line)!important;}
html[data-feature-v451="1"] body .topbar{background:#0e2138!important;border-top:0!important;border-bottom:1px solid #304f6c!important;box-shadow:none!important;}
html[data-feature-v451="1"] body :is(.topbar,.header-dock-v24)::before{background:#0e2138!important;box-shadow:none!important;}
html[data-feature-v451="1"] body :is(#page-cases,#page-shop,#page-upgrader,.profile-modal-v31) :is(.quality-card-v188,.quality-card-v190,.profile-garage-item,.shop-item,.case-item-card-v188){background:var(--v451-card)!important;border:1px solid var(--v451-line)!important;box-shadow:none!important;color:var(--v451-text)!important;}
html[data-feature-v451="1"] body #profileGarage .quality-strip-v190,html[data-feature-v451="1"] body #profileGarage .collection-kind-v31{background:#233e59!important;color:#b8d8ef!important;border-color:#325470!important;}
html[data-feature-v451="1"] body #profileGarage .profile-garage-actions button,html[data-feature-v451="1"] body #shopGrid .buy-btn{background:#286c9d!important;border:1px solid #538db7!important;color:#fff!important;box-shadow:none!important;}
html[data-feature-v451="1"] body #shopGrid .buy-btn:disabled{opacity:.58!important;filter:none!important;}
/* Inventory images: clear legacy faded blend/filter of parent wrappers (but never hide actual 404s). */
html[data-feature-v451="1"] body :is(#profileGarage,#page-upgrader,#page-shop,#page-cases) :is(.car-img,.inventory-card img,.case-item-img-v188,.case-preview-art-v214,.profile-garage-item .car-img){opacity:1!important;filter:none!important;mix-blend-mode:normal!important;visibility:visible!important;}
html[data-feature-v451="1"] body :is(#profileGarage,#page-upgrader,#page-shop,#page-cases) :is(.car-img,.inventory-card,.case-item-img-v188,.profile-garage-item) img{opacity:1!important;visibility:visible!important;filter:brightness(1.18) contrast(1.08)!important;mix-blend-mode:normal!important;}
html[data-feature-v451="1"] body :is(#profileGarage,#page-upgrader) :is(.car-img,.inventory-card,.profile-garage-item .car-img){background:radial-gradient(ellipse at center,rgba(81,148,188,.16),transparent 73%)!important;}
html[data-feature-v451="1"] body #profileGarage .profile-garage-item :is(b,small){color:var(--v451-text)!important;text-shadow:none!important;}
/* Header account and profile: ditch Halloween purple/yellow chrome while leaving Ludo currency recognizable. */
html[data-feature-v451="1"] body :is(.account-pill,.wallet-pill,.header-dock-v24>button,.profile-tabs-v31 button,.profile-side-v31 button){background:#17314e!important;border-color:#365b7e!important;color:#e1efff!important;box-shadow:none!important;}
html[data-feature-v451="1"] body :is(.wallet-pill,.account-pill) b{color:#edf8ff!important;}
html[data-feature-v451="1"] body .g448-qty-label{display:flex!important;align-items:center;gap:8px;margin:8px 0 4px;color:#b8d6ed!important;font-size:11px!important;}
html[data-feature-v451="1"] body .g448-quantity{width:72px;min-height:35px;border:1px solid #4a7596;border-radius:8px;background:#0e2035;color:#fff;padding:5px 8px;text-align:center;}
/* Functional case controls; ensure 20 possible cases are selectable. */
html[data-feature-v451="1"] body .v451-case-pay{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px;}
html[data-feature-v451="1"] body .v451-case-pay button{min-height:38px;border:1px solid #41617e;border-radius:9px;background:#17324d;color:#b8d2e8;font-size:11px;font-weight:800;cursor:pointer;}
html[data-feature-v451="1"] body .v451-case-pay button.active{background:#327dab;color:#fff;border-color:#83c5ed;}
html[data-feature-v451="1"] body .case-count-tabs-v196{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
html[data-feature-v451="1"] body .case-count-tabs-v196 button{min-width:0!important;padding:0 4px;cursor:pointer;}
html[data-feature-v451="1"] body .v451-count-label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;color:#b9d6eb;font-size:10px;font-weight:800;margin:10px 0 15px;}
html[data-feature-v451="1"] body .v451-count-label b{color:#fff;font-size:13px;}
html[data-feature-v451="1"] body .v451-count-label input{display:block;width:100%;height:26px;accent-color:#75c2ee;cursor:pointer;}
html[data-feature-v451="1"] body .case-win-v195{z-index:2147483600!important;pointer-events:auto!important;}
html[data-feature-v451="1"] body .case-win-v195 .case-win-card-v195{isolation:isolate;max-height:94dvh;overflow:auto;}
html[data-feature-v451="1"] body .case-win-v195 .case-win-close-v195{position:absolute!important;z-index:100!important;top:12px!important;right:12px!important;pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation;opacity:1!important;}
html[data-feature-v451="1"] body .case-win-v195 .case-win-card-v195::before,html[data-feature-v451="1"] body .case-win-v195 .case-win-card-v195::after{pointer-events:none!important;}
html[data-feature-v451="1"] body:not(.gtaup-v451-owner) :is(.sidebar-online,.site-banner-online,.v371-online,.v371-online-count){display:none!important;}
@media(max-width:700px){html[data-feature-v451="1"] body .v451-case-pay{grid-template-columns:1fr 1fr;}html[data-feature-v451="1"] body #profileGarage{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* V451: custom case slider and twenty-lane reel. Horizontal overflow stays inside the stage. */
html[data-feature-v451="1"] body .case-multi-reels-v198.lanes-20{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;}
html[data-feature-v451="1"] body .case-multi-reels-v198.lanes-20 .case-lane-v198{flex:0 0 145px;min-width:145px;max-width:145px;}
html[data-feature-v451="1"] body #v451CustomPay button:disabled{opacity:.45;cursor:not-allowed;}
html[data-feature-v451="1"] body #profileGarage .profile-garage-item{background:#172e48!important;}
html[data-feature-v451="1"] body #profileGarage .profile-garage-item .car-img img,html[data-feature-v451="1"] body #garageGrid .car-img img{object-fit:contain!important;max-height:100%!important;}

html[data-feature-v451="1"] body #upgradeWinModal .modal-close,html[data-feature-v451="1"] body #contractRevealModal .modal-close{position:absolute!important;z-index:600!important;pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation!important;opacity:1!important;}
html[data-feature-v451="1"] body #upgradeWinModal .upgrade-win-v77::after,html[data-feature-v451="1"] body #contractRevealModal .contract-reveal-rays-v30{pointer-events:none!important;}
