/* ==========================================================================
   EVAL page backgrounds, live (brand kit). Needs ../css/eval-tokens.css first.
   Exactly how the EVAL app draws them (app/css/base.css body, app/css/dark.css body, app/js/stars.js):

   LIGHT  the canvas #FBFAFD with two soft washes at the top: lavender top left, peach top right.
   DARK   "Velvet": a deep dusk gradient (#241C48 to #181430 to #2B1F30), a violet wash top left,
          a faint violet one top centre, a peach glow bottom right, a faint peach bottom left, an
          edge vignette, and the star field on a canvas BEHIND all content (stars.js).
   The app paints them on <body> with background-attachment: fixed (the page scrolls over a still
   sky). iOS Safari ignores fixed backgrounds, so here the same layers sit on a fixed full-viewport
   ::before layer instead: identical pixels, and it holds still on every browser.
   The washes are sized in px on purpose: on a big screen they stay soft corner glows.

   Use:  <body class="ev-bg">  ...  <script src="backgrounds/stars.js" defer></script>
   ========================================================================== */
.ev-bg { background: var(--ev-canvas); min-height: 100vh; }
.ev-bg::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ev-page-bg); background-repeat: no-repeat;
}

/* the star canvas stars.js inserts as the body's first child: fixed, behind everything, dark only */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; display: none; }
:root[data-theme="dark"] #stars { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #stars { display: block; } }
/* content must stack above the stars: give your page wrapper position: relative; z-index: 1 */
.ev-above-stars { position: relative; z-index: 1; }
