/* Cashback Pro 36.10.52 — Restore the HOME scene's viewport anchoring and
   make the two converter surfaces as translucent as Dashboard KPI glass.
   Scope strictly to built-in scenic themes; do not change global card rules. */

/* V36.10.51 fixed scenic backgrounds only for dashboard-tab-mode, but on the
   actual home view the body kept mobile `background-attachment:scroll` and
   `background-repeat:repeat-y`. Reuse the same fixed scene for dashboard-home.
   `::before` (existing scene tint/FX) stays untouched. */
html body.dashboard-home:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean) {
  position: relative !important;
  isolation: isolate !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
}
html body.dashboard-home:is(.theme-halloween, .halloween-active) {
  --cb-home-scene: url('/static/assets/raster/halloween-desktop.webp?v=34');
  background-color: #10091f !important;
}
html body.dashboard-home.theme-winter {
  --cb-home-scene: url('/static/assets/raster/winter-desktop.webp?v=34');
  background-color: #06162e !important;
}
html body.dashboard-home.theme-ocean {
  --cb-home-scene: url('/static/assets/raster/ocean-desktop.webp?v=34');
  background-color: #031b2b !important;
}
html body.dashboard-home:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean)::after {
  content: '' !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  pointer-events: none !important;
  background-image: var(--cb-home-scene) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
@media (max-width: 760px) {
  html body.dashboard-home:is(.theme-halloween, .halloween-active) {
    --cb-home-scene: url('/static/assets/raster/halloween-mobile.webp?v=34');
  }
  html body.dashboard-home.theme-winter {
    --cb-home-scene: url('/static/assets/raster/winter-mobile.webp?v=34');
  }
  html body.dashboard-home.theme-ocean {
    --cb-home-scene: url('/static/assets/raster/ocean-mobile.webp?v=34');
  }
}

/* Dashboard cards use a much lighter alpha than the converter's inherited
   0.78–0.84 dark gradients. Bring only the TWO converter card shells to that
   translucent glass language; the actual text and controls remain readable. */
html body:is(.theme-winter, .theme-halloween, .halloween-active, .theme-ocean):not(.default-light-mode) #tab-converter > :is(.converter-card, .table-card) {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: 210% 210%, 210% 210%, 230% 230% !important;
  background-clip: padding-box !important;
  border: 1px solid rgba(188, 215, 245, .33) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  -webkit-backdrop-filter: blur(11px) saturate(125%) !important;
  backdrop-filter: blur(11px) saturate(125%) !important;
  animation: v367131GradientDrift 26s ease-in-out infinite alternate !important;
}

/* Winter: preserve the snow scene through the blue/cyan glass. */
html body.theme-winter:not(.default-light-mode) #tab-converter > :is(.converter-card, .table-card) {
  background-image:
    radial-gradient(ellipse at 4% 6%, rgba(63, 181, 232, .19), transparent 62%),
    radial-gradient(ellipse at 96% 95%, rgba(113, 191, 243, .14), transparent 63%),
    linear-gradient(128deg, rgba(17, 73, 120, .33), rgba(10, 52, 95, .26) 58%, rgba(23, 92, 130, .22)) !important;
  border-color: rgba(159, 214, 255, .38) !important;
}
/* Halloween: return the same see-through violet/ember mood as home KPI cards. */
html body:is(.theme-halloween, .halloween-active):not(.default-light-mode) #tab-converter > :is(.converter-card, .table-card) {
  background-image:
    radial-gradient(ellipse at 4% 6%, rgba(166, 87, 218, .18), transparent 62%),
    radial-gradient(ellipse at 96% 95%, rgba(244, 124, 62, .14), transparent 63%),
    linear-gradient(128deg, rgba(76, 31, 106, .32), rgba(50, 24, 75, .25) 58%, rgba(105, 45, 72, .23)) !important;
  border-color: rgba(208, 154, 255, .37) !important;
}
/* Ocean: turquoise glass with the underlying ocean scene still visible. */
html body.theme-ocean:not(.default-light-mode) #tab-converter > :is(.converter-card, .table-card) {
  background-image:
    radial-gradient(ellipse at 4% 6%, rgba(36, 198, 182, .17), transparent 62%),
    radial-gradient(ellipse at 96% 95%, rgba(60, 153, 221, .16), transparent 63%),
    linear-gradient(128deg, rgba(7, 99, 108, .32), rgba(7, 54, 85, .25) 58%, rgba(17, 113, 132, .21)) !important;
  border-color: rgba(87, 212, 219, .36) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body:is(.theme-winter, .theme-halloween, .halloween-active, .theme-ocean):not(.default-light-mode) #tab-converter > :is(.converter-card, .table-card) {
    animation: none !important;
  }
}
