/* Cashback Pro 36.10.54 — keep a seasonal scene behind the *entire* scroll
   canvas, including the rubber-band/top/bottom regions on mobile browsers.

   V36.10.51/52 drew the picture only with a fixed body::after (z-index:-2).
   During scroll overshoot or dynamic viewport resize, the root canvas could
   show through as solid black. Put the SAME picture on the root canvas, and
   remove the duplicate body pseudo scene. Existing body::before tint,
   particles and the glass panels are deliberately left intact. */

html:has(> body:is(.dashboard-home, .dashboard-tab-mode):is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean)) {
  min-height: 100% !important;
  background-color: #10091f !important;
  background-image: var(--cb54-root-scene) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  /* Prevent the native rubber-band/pull-to-refresh from uncovering the browser's
     dark underlay; ordinary vertical page scroll remains available. */
  overscroll-behavior-y: none !important;
}

html:has(> body:is(.dashboard-home, .dashboard-tab-mode):is(.theme-halloween, .halloween-active)) {
  --cb54-root-scene: url('/static/assets/raster/halloween-desktop.webp?v=34');
  background-color: #10091f !important;
}
html:has(> body:is(.dashboard-home, .dashboard-tab-mode).theme-winter) {
  --cb54-root-scene: url('/static/assets/raster/winter-desktop.webp?v=34');
  background-color: #06162e !important;
}
html:has(> body:is(.dashboard-home, .dashboard-tab-mode).theme-ocean) {
  --cb54-root-scene: url('/static/assets/raster/ocean-desktop.webp?v=34');
  background-color: #031b2b !important;
}

@media (max-width: 760px) {
  html:has(> body:is(.dashboard-home, .dashboard-tab-mode):is(.theme-halloween, .halloween-active)) {
    --cb54-root-scene: url('/static/assets/raster/halloween-mobile.webp?v=34');
  }
  html:has(> body:is(.dashboard-home, .dashboard-tab-mode).theme-winter) {
    --cb54-root-scene: url('/static/assets/raster/winter-mobile.webp?v=34');
  }
  html:has(> body:is(.dashboard-home, .dashboard-tab-mode).theme-ocean) {
    --cb54-root-scene: url('/static/assets/raster/ocean-mobile.webp?v=34');
  }
}

html body:is(.dashboard-home, .dashboard-tab-mode):is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean) {
  /* The scene belongs to the root canvas, not to an element whose height or
     scroll position changes. Do not paint a second dark background over it. */
  background-image: none !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  overscroll-behavior-y: none !important;
}
html body:is(.dashboard-home, .dashboard-tab-mode):is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean)::after {
  /* Replaced by the root's background. Keeping both causes scene flicker and
     an empty black strip when the fixed body layer is clipped. */
  content: none !important;
  display: none !important;
}
