/* ==========================================================
   BOOT OVERLAY
   ========================================================== */
body.booting {
  overflow: hidden;
}

body.booting #c,
body.booting #crt-overlay,
body.booting #nav-overlay,
body.booting #assistant-bubble,
body.booting #legend,
body.booting #terminal,
body.booting .entry-panel-window,
body.booting .reader-window,
body.booting .transmitter-window,
body.booting #star-preview {
  visibility: hidden;
  pointer-events: none;
}

#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(22, 14, 36, 0.12) 2px,
      rgba(22, 14, 36, 0.12) 3px
    ),
    rgba(6, 4, 12, 0.985);
}

#boot-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

#boot-line {
  max-width: min(72vw, 420px);
  padding: 0 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.45vw, 10px);
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-transform: uppercase;
  color: rgba(207, 184, 242, 0.78);
  text-shadow:
    0 0 5px rgba(214, 194, 248, 1),
    0 0 18px rgba(198, 170, 238, 0.94),
    0 0 38px rgba(182, 148, 232, 0.84),
    0 0 74px rgba(166, 128, 224, 0.68),
    0 0 122px rgba(148, 108, 212, 0.48),
    0 0 180px rgba(126, 88, 196, 0.26),
    -1px 0 12px rgba(235, 210, 255, 0.2),
    1px 0 16px rgba(132, 104, 198, 0.28),
    -2px 0 24px rgba(230, 198, 255, 0.1),
    2px 0 26px rgba(116, 90, 186, 0.12);
  animation: boot-flicker 1.9s steps(1, end) infinite;
  will-change: transform, opacity;
}
