/* SOVARQUE Celestial Stage Atmosphere v1.1.
   Current Website Style intentionally has NO selectors in this stylesheet.
   Ambient light uses transform-based animation, not fixed-body background-position.
*/
body[data-background-mode="static"],
body[data-background-mode="animated"]{
  isolation:isolate;
  background-color:#05070d;
  background-image:
    radial-gradient(ellipse 62% 51% at 16% 18%,rgba(43,72,97,.22),transparent 74%),
    radial-gradient(ellipse 42% 46% at 84% 40%,rgba(123,91,48,.095),transparent 78%),
    radial-gradient(ellipse 67% 60% at 51% 94%,rgba(25,45,64,.15),transparent 76%),
    linear-gradient(165deg,#04070c,#080c15 55%,#040609);
  background-attachment:fixed;
}
/* Static Cinematic: fine celestial dust, no movement. */
body[data-background-mode="static"]::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 21% 28%,rgba(193,208,220,.17) 0 .6px,transparent 1px),
    radial-gradient(circle at 74% 61%,rgba(206,190,163,.14) 0 .7px,transparent 1.2px),
    radial-gradient(circle at 48% 82%,rgba(180,198,216,.12) 0 .55px,transparent 1px);
  background-size:337px 401px,463px 541px,571px 617px;
  opacity:.44;
}
/* Animated Celestial v1.2: atmospheric light is deliberately perceptible,
   without full-page video, JS timers, or high-frequency particles. */
body[data-background-mode="animated"]{
  --celestial-light-duration:24s;
  --celestial-dust-duration:32s;
}
body[data-background-mode="animated"][data-background-speed="1"]{--celestial-light-duration:72s;--celestial-dust-duration:96s}
body[data-background-mode="animated"][data-background-speed="2"]{--celestial-light-duration:40s;--celestial-dust-duration:54s}
body[data-background-mode="animated"][data-background-speed="3"]{--celestial-light-duration:24s;--celestial-dust-duration:32s}
body[data-background-mode="animated"][data-background-speed="4"]{--celestial-light-duration:12s;--celestial-dust-duration:18s}
body[data-background-mode="animated"][data-background-speed="5"]{--celestial-light-duration:8s;--celestial-dust-duration:12s}
/* Keep the animated light in the viewport. Independent narrow blooms travel
   far enough to be seen rather than just shifting by a pixel or two. */
body[data-background-mode="animated"]::before{
  content:"";
  position:fixed;
  inset:-7vmax;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(ellipse 19% 24% at 20% 26%,rgba(72,133,176,.64) 0%,rgba(55,108,146,.29) 43%,transparent 84%),
    radial-gradient(ellipse 17% 23% at 76% 53%,rgba(173,112,54,.39) 0%,rgba(149,103,56,.16) 50%,transparent 85%),
    radial-gradient(ellipse 25% 35% at 45% 86%,rgba(56,96,129,.29) 0%,transparent 83%);
  opacity:.93;
  transform:translate3d(-12vw,-7vh,0) scale(1);
  animation:celestial-light-pass var(--celestial-light-duration) ease-in-out infinite alternate;
  will-change:transform;
}
/* Sparse dust plus a barely-there veiling haze. */
body[data-background-mode="animated"]::after{
  content:"";
  position:fixed;
  inset:-12px;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(ellipse 33% 32% at 56% 50%,rgba(122,147,170,.075),transparent 85%),
    radial-gradient(circle at 21% 28%,rgba(194,211,228,.24) 0 .8px,transparent 1.4px),
    radial-gradient(circle at 74% 61%,rgba(218,193,156,.20) 0 .85px,transparent 1.5px),
    radial-gradient(circle at 48% 82%,rgba(180,202,224,.17) 0 .7px,transparent 1.2px);
  background-size:100% 100%,337px 401px,463px 541px,571px 617px;
  opacity:.65;
  animation:celestial-dust-pass var(--celestial-dust-duration) ease-in-out infinite alternate;
  transform:translate3d(-10px,8px,0);
  will-change:transform;
}
@keyframes celestial-light-pass{
  0%{transform:translate3d(-12vw,-7vh,0) scale(1)}
  100%{transform:translate3d(12vw,8vh,0) scale(1.1)}
}
@keyframes celestial-dust-pass{
  0%{transform:translate3d(-10px,8px,0);opacity:.5}
  100%{transform:translate3d(22px,-16px,0);opacity:.72}
}
/* Reduce motion effects on compact screens without disabling the main light. */
@media(max-width:760px){
  body[data-background-mode="animated"]::after{animation:none;transform:none;will-change:auto;opacity:.55}
}
/* OS/browser accessibility preference has priority over the CMS speed choice. */
@media(prefers-reduced-motion:reduce){
  body[data-background-mode="animated"]::before,
  body[data-background-mode="animated"]::after{
    animation:none!important;
    transform:none;
    will-change:auto;
  }
}
