:root {
  color-scheme: light;
  --ink: #0f1626;
  --bg: #0a0f1f;
  --panel: rgba(16, 24, 44, 0.86);
  --accent: #ff7a59;
  --accent-2: #ffd166;
  --accent-3: #66d7d1;
  --text: #f2f4f8;
  --muted: #9db0cc;
  font-family: "Press Start 2P", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1c2b4a, #0a0f1f 60%, #060913);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 12px 24px 24px;
}

.shell {
  width: min(960px, 100%);
  display: grid;
  gap: 16px;
}

.title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(20px, 4vw, 36px);
  color: var(--accent-2);
  text-align: center;
  text-shadow: 0 6px 18px rgba(255, 209, 102, 0.35);
  padding-top: 5px;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.hud__group {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.hud__value {
  font-size: 18px;
  color: var(--accent-2);
}

.stage {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(5, 10, 25, 0.6);
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 22px
    ),
    linear-gradient(180deg, rgba(7, 10, 20, 0.8), rgba(7, 10, 20, 0.98));
}

.help {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(7, 10, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 10px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hud {
    grid-template-columns: 1fr;
    font-size: 10px;
  }

  .hud__value {
    font-size: 16px;
  }

  .help {
    position: static;
    margin-top: 12px;
  }
}
