/* =========================================================
   Scroll performance (loaded last)
   ========================================================= */

/* 1. Sections that are off-screen pause all their CSS animations (content.js toggles .is-offscreen).
      Dozens of infinite glow/pulse/rim animations were repainting the whole page on every scroll frame. */
.is-offscreen,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* 2. Frosted-glass blur is one of the most expensive effects to paint while scrolling.
      Cards already have dark translucent backgrounds, so drop it everywhere except the navbar and pop-up. */
:where(main, footer, .offer) *:not(.rmodal__backdrop) {
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

/* 3. Background canvases already draw with additive light; a blend mode on top only adds cost. */
canvas { mix-blend-mode: normal !important; }

/* 4. The scrolled navbar blurred everything moving behind it on every frame; a near-solid background looks the same. */
.nav.is-scrolled {
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  background: rgba(8, 4, 14, .92) !important;
}
