:root { color-scheme: dark; background: #000; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
body { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; outline: none; }
#universe { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
main {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Keep the negative-z pseudo-element above the page, behind the black moon. */
  isolation: isolate;
}
/* start.mp4: the white disc moves behind a stationary black disc. */
.moon {
  background: black;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
}
.moon::before {
  content: '';
  background-color: #fff;
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  z-index: -1;
  animation: 3.2s moon-phase linear infinite alternate;
}
@keyframes moon-phase {
  0% {
    transform: translateX(40px) scale(.9);
    box-shadow: none;
  }
  50% {
    transform: translate(0px, 0px) scale(1.02);
    box-shadow: 0 0 10px #fff, 0 0 80px 2px #fff;
  }
  100% {
    transform: translateX(-40px) scale(.9);
    box-shadow: none;
  }
}
.active main { display: none; }
body.active { cursor: default; }
body.interactive { cursor: grab; touch-action: none; }
body.interactive.dragging { cursor: grabbing; }
@media (max-width: 300px), (max-height: 300px) {
  .moon { width: 65vmin; height: 65vmin; }
}
@media (prefers-reduced-motion: reduce) {
  .moon::before { animation: none; transform: translateX(40px) scale(.9); }
}
.music-control { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 10; color: #303036; cursor: default; touch-action: manipulation; }
.music-control[hidden] { display: none; }
.music-toggle { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; padding: 0; background: transparent; border: 0; color: inherit; cursor: pointer; }
.music-control.open { color: #777780; }
.music-toggle:focus-visible, .music-volume:focus-visible { outline: 1px solid #777780; outline-offset: 3px; border-radius: 4px; }
.music-panel { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid #202024; border-radius: 8px; background: #08080bed; opacity: 0; visibility: hidden; pointer-events: none; }
.music-control.open .music-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.music-volume { width: 110px; height: 22px; margin: 0; cursor: pointer; accent-color: #777780; }
.music-value { width: 30px; color: #777780; font: 11px Arial, sans-serif; text-align: right; }
.sound-off { display: none; }
.muted .sound-off { display: inline; }
.muted .sound-waves { display: none; }
