/* GTAUP V449: narrow, last-loaded visual repairs for real V374/V371/V353 DOM.
   No changes to wheel sectors, roulette colours, game logic or transactions. */
:root{--v449-bg:#0b1726;--v449-ink:#eaf4ff;--v449-muted:#acc4dc;--v449-surface:#132942;--v449-raise:#193550;--v449-stroke:#335676;--v449-accent:#80bdf1}
/* V448 briefly reports offline while authentication/database initializes. The intrusive
   global banner is removed; operation-specific failures remain untouched. */
#g447Connection{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* Main/home V371: remove old plum panel and stray bronze outlines. */
html[data-release="V448"] body.v371-theme #page-home-v368,
html[data-release="V448"] body.v371-theme #page-home-v368 .v371-home,
html[data-release="V448"] body.v371-theme #page-home-v368 .v371-shell{
  background:var(--v449-bg)!important;color:var(--v449-ink)!important;
}
html[data-release="V448"] body.v371-theme #page-home-v368 :is(.v371-hero,.v371-game,.v371-live-chip){
  background-color:var(--v449-surface)!important;border-color:var(--v449-stroke)!important;
  box-shadow:0 8px 22px #030b142c!important;
}
html[data-release="V448"] body.v371-theme #page-home-v368 .v371-card-veil{background:linear-gradient(90deg,#0b192aee 0%,#0f2741c9 44%,#102a4325 100%)!important}
html[data-release="V448"] body.v371-theme #page-home-v368 .v371-hero-overlay{background:linear-gradient(90deg,#091829f4 0%,#0b223bc9 50%,#0b223a18 100%)!important}
html[data-release="V448"] body.v371-theme #page-home-v368 :is(.v371-card-kicker,.v371-eyebrow){color:#8dcaff!important}
html[data-release="V448"] body.v371-theme #page-home-v368 :is(.v371-hero-copy,.v371-game-content,.v371-card-content){color:var(--v449-ink)!important}

/* Roulette uses its own V374 / V381 palette (not generic .card). */
html[data-release="V448"] body #page-roulette{
  --cr-panel:#142b44!important;--cr-panel2:#1a344d!important;
  --cr-line:#365777!important;--cr-copy:#edf5ff!important;
  --cr-muted:#acc6de!important;--cr-copper:#81baf0!important;
  background:#0d1c30!important;color:#eaf4ff!important;
}
html[data-release="V448"] body #page-roulette :is(.cr-shell,.cr-stage,.cr-grid){background-color:transparent!important}
html[data-release="V448"] body #page-roulette :is(.cr-card,.cr-live,.cr-result-pill,.cr-choice,.cr-stat,.cr-player,.cr-side-box,.cr-wheel-glass,.cr-amount-field,.cr-bet-section){
  background-color:#162d46!important;border-color:#345876!important;color:#edf6ff!important;
  box-shadow:none!important;
}
html[data-release="V448"] body #page-roulette .cr-card{background:linear-gradient(155deg,#172e48,#11243b)!important;border-radius:16px!important}
html[data-release="V448"] body #page-roulette .cr-wheel-bg{background:#10243b!important;border-color:#395a79!important;box-shadow:none!important}
html[data-release="V448"] body #page-roulette .cr-wheel-glass{background:radial-gradient(circle at 50% 20%,#23415d,#0d1c30)!important;border-color:#4d7797!important;box-shadow:inset 0 0 24px #030e1c88!important}
html[data-release="V448"] body #page-roulette .cr-choice.selected{box-shadow:inset 0 0 0 1px #8bb9e4!important}
html[data-release="V448"] body #page-roulette :is(.cr-heading h1,.cr-card h2,.cr-card h3){color:#eef7ff!important}
html[data-release="V448"] body #page-roulette :is(.cr-result-pill,.cr-live,.cr-chip){background:#1b3752!important;border-color:#3a6082!important}
html[data-release="V448"] body #page-roulette .cr-submit{background:#7bbbef!important;color:#081c30!important;border-color:#a2d6fa!important;box-shadow:none!important}
/* Preserve semantic roulette red, green and black segments and wager-result chips. */

/* V353 manual chance uses a hardcoded copper/purple palette in index.html. */
html[data-release="V448"] body #page-upgrader :is(.v354-chance-row,#v354ChanceRow){background:#10243b!important;border:1px solid #315473!important;color:#dcefff!important;border-radius:12px!important;box-shadow:none!important}
html[data-release="V448"] body #page-upgrader #v353CustomChance{background:transparent!important;border:0!important;color:#dcefff!important;box-shadow:none!important}
html[data-release="V448"] body #page-upgrader #v353CustomChance label{color:#bcd8f0!important}
html[data-release="V448"] body #page-upgrader #v353ChanceInput{background:#0c1c2e!important;color:#f2f8ff!important;border:1px solid #44698b!important;box-shadow:none!important}
html[data-release="V448"] body #page-upgrader #v353ChanceInput:focus{border-color:#8fc9f6!important;outline:2px solid #528db744!important}
html[data-release="V448"] body #page-upgrader #v353ChanceApply{background:#366a99!important;border:1px solid #75b7e8!important;color:#f4f9ff!important;box-shadow:none!important}
html[data-release="V448"] body #page-upgrader #v353ChanceFeedback{color:#b5d2ec!important}

/* Case index uses V374 independent toolbar with strong pink/orange !important. */
html[data-release="V448"] body #page-cases{background:#0d1c2e!important}
html[data-release="V448"] body #page-cases :is(.case-catalog-head-v214,.case-catalog-v214,.case-stage-v196,.case-roll-v196,.case-items-section-v188){background-color:#101f31!important;color:#e9f5ff!important;border-color:#31506d!important}
html[data-release="V448"] body #page-cases :is(.case-catalog-head-v214,.case-catalog-v214){background-color:transparent!important}
html[data-release="V448"] body #page-cases :is(.v374-case-toolbar,.v374-case-search,.v374-sort){background:#142940!important;border-color:#365675!important;color:#eaf4ff!important;box-shadow:none!important}
html[data-release="V448"] body #page-cases .v374-case-toolbar{padding:19px!important}
html[data-release="V448"] body #page-cases :is(.v374-eyebrow,#v374CaseCount){color:#acd5fb!important}
html[data-release="V448"] body #page-cases .v374-case-top h2{color:#f2f8ff!important}
html[data-release="V448"] body #page-cases .v374-case-chips button{background:#1a3551!important;border-color:#426684!important;color:#daeaf9!important;box-shadow:none!important}
html[data-release="V448"] body #page-cases .v374-case-chips button.selected{background:#366994!important;border-color:#8ec6f5!important;color:#fff!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-catalog-grid-v214 > button.case-preview-v214{background:linear-gradient(145deg,#1a3048,#112237)!important;border:1px solid #355671!important;box-shadow:0 9px 24px #020d1a33!important}
html.gtaup-v448[data-release="V448"] body #page-cases #caseCatalogHomeV215 .case-catalog-grid-v214 > button.case-preview-v214:hover{border-color:#8fc9f5!important;transform:translateY(-2px)!important}
html[data-release="V448"] body #page-cases :is(.case-stage-buy-v196,.case-reel-window-v196,.case-items-section-v188 .case-item-v188,.case-items-section-v188 .case-item-v190){background-color:#152b44!important;border-color:#3a5d7b!important;color:#eaf5ff!important}
html[data-release="V448"] body #page-cases :is(.case-count-tabs-v196 button.active,.case-open-v196:not(:disabled)){background:#4e91c9!important;color:#081a2b!important;border-color:#9ed4ff!important}

/* Case win popup (actual V374 js creates .v374-reveal under document.body). */
html[data-release="V448"] body .v374-reveal{background:#061322cf!important;backdrop-filter:blur(6px)!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-dialog{background:linear-gradient(160deg,#1c3854,#10233a)!important;border:1px solid #52799c!important;border-radius:18px!important;color:#eaf6ff!important;box-shadow:0 24px 64px #010917b8!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-title span{color:#9bccf0!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-title h2{color:#f2f9ff!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-title p{color:#b7cde1!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-item{background:#112b45!important;border:1px solid #436a8d!important;color:#edf7ff!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-item strong{color:#eff8ff!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-item span{color:#8cccfa!important}
html[data-release="V448"] body .v374-reveal .v374-reveal-continue{background:#76b6ed!important;color:#091f32!important;border:1px solid #a0d6fc!important;box-shadow:none!important}
html[data-release="V448"] body .case-win-v195 .case-win-card-v195{background:linear-gradient(160deg,#1a3550,#102239)!important;border:1px solid #5681a8!important;color:#edf7ff!important}
html[data-release="V448"] body .case-win-v195 .case-win-card-v195 strong{color:#91d3ff!important}
html[data-release="V448"] body .case-win-v195 .case-win-card-v195 :is(h3,small,span){color:#e3f1ff!important}
@media(max-width:700px){html[data-release="V448"] body .v374-reveal .v374-reveal-dialog{padding:17px 13px!important}html[data-release="V448"] body #page-cases .v374-case-toolbar{padding:12px!important}}
