/* The sky: one fixed canvas behind everything (the flight, field stars and the two figures), and beside it the
   constellation labels and the halos. sky.js draws the canvas and places the rest through the CSSOM. */

/* The large viewport height, so a phone's address bar showing or hiding never resizes the sky. */
#sky{
  position: fixed; left: 0; top: 0; z-index: 0;
  display: block;
  width: 100%;
  height: 100vh; height: 100lvh;
  pointer-events: none;
}

/* Zero-sized fixed layers: their children are placed by transform and never widen the page. */
.sky-layer, .sky-halos{
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 0; height: 0; overflow: visible;
  pointer-events: none;
  user-select: none; -webkit-user-select: none;
}
.sky-label{ position: absolute; left: 0; top: 0; white-space: nowrap; }
.sky-label--off{ visibility: hidden; } /* while it would sit on text, the form or the sound control */
.sky-probe{ position: absolute; left: 0; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; }

/* A halo is light added to the sky: screen keeps the star over it ivory. Colour to clear, one hue. */
.sky-halos{ mix-blend-mode: screen; }
.sky-halo{
  position: absolute; left: 0; top: 0;
  opacity: 0;
  background: radial-gradient(closest-side, var(--sky-halo, transparent), transparent);
  will-change: opacity;
}
.sky-halo[hidden]{ display: none; }

@media (prefers-reduced-motion: reduce){
  .sky-halo{ display: none; animation: none; }
}
