@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  color-scheme: dark;

  --bg: #000000;
  --green-bright: #00ff41;
  --green-mid: #00cc33;
  --green-dim: #008f22;
  --green-dark: #003b00;
  --green-glow: #00ff41;
  --text-primary: #00ff41;
  --text-muted: rgba(0, 255, 65, 0.5);
  --font-mono: "Share Tech Mono", "Courier New", monospace;
}

/* ── Base ───────────────────────────────────────── */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font-mono);
  color: var(--text-primary);
  cursor: crosshair;
}

/* ── Layout ─────────────────────────────────────── */

.matrix-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

[data-rain-canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hud-overlay {
  position: relative;
  z-index: 1;
  pointer-events: none;
  padding: clamp(1rem, 3vw, 2.5rem);
  max-width: 28rem;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hud-overlay h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--green-bright);
  text-shadow:
    0 0 8px var(--green-glow),
    0 0 20px rgba(0, 255, 65, 0.3);
  margin-bottom: 0.5rem;
}

.hud-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  animation: hud-fade-in 1s ease forwards 2s;
}

@keyframes hud-fade-in {
  to { opacity: 1; }
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 600px) {
  .hud-overlay {
    padding: 0.75rem;
  }

  .eyebrow {
    font-size: 0.6rem;
  }

  .hud-hint {
    font-size: 0.65rem;
  }
}

@media (max-height: 400px) {
  .hud-overlay {
    padding: 0.5rem;
  }
}
