/* The painted white moon remains the subject. Two small composited veils add
   reflected moonlight and distant stars without moving or blurring the art. */
.welcome .welcome-celestial::before,
.welcome .welcome-celestial::after{
  content:"";
  position:absolute;
  left:var(--welcome-moon-x);
  top:var(--welcome-moon-y);
  width:calc(var(--welcome-moon-size) + 210px);
  aspect-ratio:1;
  border-radius:50%;
  pointer-events:none;
  transform:translate3d(-50%,-50%,0);
}
.welcome .welcome-celestial::before{
  background:
    radial-gradient(circle at 50% 50%,#fff7e800 30%,#e6eeff14 43%,#b7c9ff13 55%,transparent 74%),
    radial-gradient(circle at 50% 50%,#fffdf923 0%,#dce8ff10 37%,transparent 64%);
  opacity:.68;
  animation:welcomeMoonlightTide 10s ease-in-out infinite alternate;
}
.welcome .welcome-celestial::after{
  width:calc(var(--welcome-moon-size) + 330px);
  background:
    radial-gradient(circle at 19% 28%,#fffef3df 0 1px,#b4d7ff75 2px,transparent 10px),
    radial-gradient(circle at 79% 18%,#fff7e8d9 0 1px,#ffe3c461 2px,transparent 9px),
    radial-gradient(circle at 88% 59%,#f9f5ffe0 0 1px,#c8bdff6e 2px,transparent 10px),
    radial-gradient(circle at 26% 79%,#fffaf1c7 0 1px,#b0d8ff5b 2px,transparent 8px),
    radial-gradient(circle at 65% 87%,#fff9f2d2 0 1px,#f5d1e15e 2px,transparent 9px);
  opacity:.46;
  animation:welcomeMoonStars 12s ease-in-out -3s infinite alternate;
}
@keyframes welcomeMoonlightTide{to{opacity:.92}}
@keyframes welcomeMoonStars{to{opacity:.8}}

/* The phone retains one soft halo and star pulse. Existing mobile rules already
   stop the larger drifting painted background and most decorative animation. */
@media(max-width:760px){
  .welcome .welcome-celestial::before{width:calc(var(--welcome-moon-size) + 100px);opacity:.6;animation-duration:12s}
  .welcome .welcome-celestial::after{
    width:calc(var(--welcome-moon-size) + 155px);
    opacity:.48;
    animation-duration:15s;
    background:
      radial-gradient(circle at 17% 28%,#fffef3d9 0 1px,#b4d7ff66 2px,transparent 8px),
      radial-gradient(circle at 83% 22%,#fff7e8d6 0 1px,#ffe3c45c 2px,transparent 8px),
      radial-gradient(circle at 80% 77%,#f9f5ffcf 0 1px,#c8bdff5b 2px,transparent 8px);
  }
}
@media(max-height:430px){
  .welcome .welcome-celestial::before,
  .welcome .welcome-celestial::after{display:none}
}
@media(prefers-reduced-motion:reduce){
  .welcome .welcome-celestial::before,
  .welcome .welcome-celestial::after{animation:none!important}
}
body.reduced-motion .welcome .welcome-celestial::before,
body.reduced-motion .welcome .welcome-celestial::after,
body.quality-lite .welcome .welcome-celestial::before,
body.quality-lite .welcome .welcome-celestial::after{animation:none!important}
body.page-hidden .welcome .welcome-celestial::before,
body.page-hidden .welcome .welcome-celestial::after{animation-play-state:paused!important}
