:root {
  --bg: #05070a;
  --fg: #f5f1e8;
  --mono: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  overscroll-behavior: none;
}

body {
  touch-action: pan-y;
}

#app {
  position: relative;
  min-height: 100dvh;
}

#landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  text-align: center;
}

#landing h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.2em;
  margin: 0;
  font-weight: 500;
}

.tagline {
  max-width: 32ch;
  opacity: 0.85;
  margin: 0;
}

.doctrine {
  max-width: 32ch;
  font-size: 0.75rem;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

button {
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 999px;
}

button:active {
  transform: scale(0.97);
}

.hint {
  font-size: 0.72rem;
  opacity: 0.45;
  margin: 0;
}

.hint code {
  color: var(--fg);
  opacity: 0.8;
}

#room {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
}

.overlay > * {
  pointer-events: auto;
}

#board-screen {
  /* "Tap anywhere" — the whole board screen is a tap target, not just the button. */
  pointer-events: auto;
  cursor: pointer;
}

.movement-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0;
}

.copy {
  max-width: 30ch;
  font-size: 1.1rem;
  margin: 0;
}

.hud {
  position: absolute;
  top: env(safe-area-inset-top, 1rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  pointer-events: none;
}

.arrive-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.arrive-links a {
  color: var(--fg);
  opacity: 0.8;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Sound may arrive after the room opens; this line is the only notice. */
.hud {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.sound-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
