.halo-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 420 / 256;
  border-radius: 14px;
  background-color: var(--lx-night);
}
.halo-stage-label {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 10px;
  color: var(--lx-ink-night);
  font-size: .8125rem;
  line-height: 1.2;
  pointer-events: none;
}

.lx-live .halo-crystal svg { cursor: grab; }
.lx-live .halo-crystal svg:active { cursor: grabbing; }
.halo-outline { fill: url(#halo-ice-fill); stroke: #9be8ff; stroke-width: 1.7; }
.halo-facets { fill: none; stroke: #a0d9ee66; stroke-width: 1; }
.halo-ray-in, .halo-ray-out, .halo-ray-guide, .halo-angle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.halo-ray-in { stroke: #f4f7ff; }
.halo-ray-out { stroke: #ffe1a1; }
.halo-ray-guide { stroke: #c8ddff82; stroke-width: 1; stroke-dasharray: 4 4; }
.halo-angle { stroke: #ffe1a1d9; stroke-width: 1.2; }
.halo-ray-point { fill: #0f1b31; stroke: #ffe1a1; stroke-width: 1.7; }
.halo-angle-label { fill: #ffe1a1; font-size: 15px; font-weight: 650; }

.halo-sky { --halo-radius: 21.5cqw; }
.halo-scene { position: absolute; inset: 0; }
.halo-night {
  --light-height: 48%;
  background:
    radial-gradient(circle at 12% 46%, #eaf5ff9c 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 28%, #cfdcfe7a 0 .8px, transparent 1.4px),
    radial-gradient(circle at 29% 18%, #f8faffc9 0 .8px, transparent 1.5px),
    radial-gradient(circle at 35% 73%, #e6f6ff90 0 .75px, transparent 1.45px),
    radial-gradient(circle at 41% 22%, #cfddfa8c 0 .7px, transparent 1.2px),
    radial-gradient(circle at 54% 14%, #cfdaf77a 0 .8px, transparent 1.3px),
    radial-gradient(circle at 69% 16%, #f8f9ffb5 0 1px, transparent 1.55px),
    radial-gradient(circle at 77% 32%, #e9f5ff9c 0 .85px, transparent 1.5px),
    radial-gradient(circle at 82% 44%, #cadffe90 0 .7px, transparent 1.4px),
    radial-gradient(circle at 88% 21%, #e7eafe9c 0 .8px, transparent 1.35px),
    radial-gradient(circle at 93% 55%, #f7f8ffc7 0 1px, transparent 1.45px),
    radial-gradient(ellipse at 50% var(--light-height), #596b98 0%, #222f54 34%, transparent 72%),
    linear-gradient(#0d142a, #162241 61%, #38567c);
}
.halo-moon, .halo-sun, .halo-ring, .halo-dog {
  position: absolute;
  top: var(--light-height);
  left: 50%;
  translate: -50% -50%;
}
.halo-moon {
  width: 7cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f7f3e8 url("../apollo/near-side.webp") center / cover;
  box-shadow: 0 0 12px 2px #ecf3ffc9, 0 0 40px 13px #cbd7ff55;
}
.halo-ring {
  box-sizing: border-box;
  width: calc(2 * var(--halo-radius));
  aspect-ratio: 1;
  border: 2px solid #fff0dbb3;
  border-radius: 50%;
  box-shadow: 0 0 5px 2px #f9eced99, 0 0 16px 6px #9ab9f66e, inset 0 0 6px #ffbc9c87;
}
.halo-radius {
  position: absolute;
  left: 50%;
  top: var(--light-height);
  width: var(--halo-radius);
  border-top: 1px dashed #fff9;
  text-align: right;
}
.halo-radius span {
  position: absolute;
  right: .3rem;
  bottom: .2rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 650;
}
.halo-day {
  --light-height: 72%;
  background:
    radial-gradient(ellipse at 50% 73%, #ffe0a0a6, transparent 52%),
    linear-gradient(177deg, transparent 39%, #f6e8e137 42%, transparent 46%, transparent 48%, #ffdfbd42 52%, transparent 55%),
    linear-gradient(#253c67, #6179a6 37%, #c1959b 62%, #e6aa7d 87%, #68475f);
}
.halo-guide {
  position: absolute;
  top: var(--light-height);
  left: calc(50% - var(--halo-radius));
  width: calc(2 * var(--halo-radius));
  border-top: 1px dashed #fff9;
}
.halo-sun {
  width: 5.5cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffde1;
  box-shadow: 0 0 9px 4px #fff3c9, 0 0 30px 12px #fff0a781;
}
.halo-dog {
  width: 15cqw;
  height: 11cqw;
  background:
    radial-gradient(ellipse 24% 32% at 70% 50%, #ffe4d1, #ffb897d9 24%, transparent 100%),
    radial-gradient(ellipse 38% 43% at 58% 50%, #fff4c8eb, #ffdba7ad 27%, transparent 100%),
    radial-gradient(ellipse 35% 46% at 37% 51%, #f8ffe2f2, #a1deff8c 38%, transparent 100%);
  filter: blur(1.2px);
}
.halo-dog-left { left: calc(50% - var(--halo-radius)); }
.halo-dog-right { left: calc(50% + var(--halo-radius)); scale: -1 1; }
.halo-ridge {
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: #101b31;
  clip-path: polygon(0 31%, 9% 41%, 17% 22%, 25% 56%, 31% 47%, 45% 75%, 57% 62%, 67% 72%, 78% 38%, 88% 21%, 95% 40%, 100% 27%, 100% 100%, 0 100%);
  pointer-events: none;
}
.halo-sky:has(.halo-day:not([hidden])) .halo-ridge { background: #322c47; }
