*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #050507;
  color: #f0ede6;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
}

#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.moon-label {
  position: fixed;
  left: 29.5%;
  top: 38.2%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.wordmark {
  margin: 0;
  padding-left: 0.26em;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.95rem, 1.55vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1;
  color: rgba(246, 243, 238, 0.94);
  text-shadow: 0 0 24px rgba(5, 5, 7, 0.95);
  transition: color 0.3s ease;
}

.wordmark .tld {
  color: #e6c18a;
  text-shadow:
    0 0 18px rgba(230, 193, 138, 0.34),
    0 0 24px rgba(5, 5, 7, 0.95);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

body[data-mode='mono'] .wordmark .tld {
  color: rgba(244, 242, 236, 0.72);
  text-shadow: 0 0 18px rgba(244, 242, 236, 0.2);
}

.hud {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 10;
  display: flex;
  gap: 6px;
  opacity: 0.2;
  transition: opacity 0.25s ease;
}

.hud:hover {
  opacity: 0.92;
}

.hud button {
  appearance: none;
  border: 1px solid rgba(240, 237, 230, 0.18);
  background: rgba(5, 5, 7, 0.72);
  color: rgba(240, 237, 230, 0.7);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hud button:hover {
  border-color: rgba(240, 237, 230, 0.5);
  color: #f0ede6;
}

.hud button.active {
  border-color: rgba(230, 193, 138, 0.75);
  color: #f0ede6;
}
