:root {
  --pink: #ff2bd6;
  --cyan: #2bd6ff;
  --gold: #ffe16b;
  --bg: #02010a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  color: #e8e6ff;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* let mousemove reach the canvas underneath */
  text-align: center;
  gap: 18px;
  z-index: 2;
}

.title {
  font-size: clamp(4rem, 18vw, 13rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--cyan), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
  text-shadow: 0 0 40px rgba(255, 43, 214, 0.35);
  filter: drop-shadow(0 0 18px rgba(43, 214, 255, 0.5));
}

.title .dot { color: var(--gold); -webkit-text-fill-color: var(--gold); }

@keyframes sheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.tagline {
  font-size: clamp(0.9rem, 2.4vw, 1.4rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b9b4e8;
  opacity: 0.9;
}

.tagline .hl {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(43, 214, 255, 0.7);
}

.caret {
  display: inline-block;
  color: var(--pink);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

.hud {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(8, 8, 20, 0.55);
  border: 1px solid rgba(120, 120, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid rgba(120, 120, 255, 0.12);
}
.hud-item:last-child { border-right: none; }

.hud-item .k {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7774a8;
}

.hud-item .v {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(43, 214, 255, 0.8);
}

.hint {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5c5888;
}

@media (max-width: 640px) {
  .hud { gap: 2px; padding: 8px 8px; bottom: 16px; }
  .hud-item { padding: 0 8px; }
  .hint { bottom: 74px; }
}
