/* A single, quiet exit: the painted threshold and every visible ornament
   dissolve into its dark backing before the eclipse scene begins. */
#welcome.exiting{
  opacity:1!important;
  animation:none!important;
  pointer-events:none;
}
#welcome.exiting > *{
  opacity:0!important;
  transition:opacity 1100ms cubic-bezier(.38,0,.78,1)!important;
}
#welcome.exiting *,#welcome.exiting *::before,#welcome.exiting *::after{
  animation-play-state:paused!important;
}
#welcome.exiting::before{
  opacity:0!important;
  transition:opacity 1100ms cubic-bezier(.38,0,.78,1)!important;
}
/* Neutralize the old exit zoom, desaturation and blur. The image holds its
   precise moon alignment while opacity carries the departure. */
#welcome.exiting .welcome-art{
  filter:saturate(1.06) contrast(1.035) brightness(.93);
  transform:translate3d(var(--welcome-parallax-x,0px),var(--welcome-parallax-y,0px),0) scale(1.012);
}
/* The cinematic painting grows back out of the same darkness. This short
   veil prevents a white flash when the fading welcome is finally removed. */
#eclipse.active::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
  background:#030408;
  animation:moonCinemaFromDark 680ms ease-out both;
}
@keyframes moonCinemaFromDark{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#eclipse.active::after{display:none}}
body.reduced-motion #eclipse.active::after{display:none}
