:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #12081c;
  color: #fff6e8;
  font-family: Nunito, system-ui, sans-serif;
}

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

.hud {
  position: fixed;
  top: 7vh;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  text-shadow:
    0 2px 0 #3b1848,
    0 10px 28px rgba(18, 8, 28, 0.55);
}

.kicker {
  margin: 0;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #ffd6ef;
}

h1 {
  margin: 0.15em 0 0;
  font-family: "Baloo 2", Nunito, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 0.95;
  color: #fff4c8;
  animation: bob 3.4s ease-in-out infinite;
}

.tag {
  margin: 0.15em 0 0;
  font-family: "Baloo 2", Nunito, system-ui, sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: #ff9ec8;
}

.hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: rgba(255, 246, 232, 0.78);
  pointer-events: none;
}

#fallback {
  position: fixed;
  inset: auto 1.5rem 4.5rem;
  z-index: 3;
  text-align: center;
  color: #ffd0d0;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    animation: none;
  }
}
