:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: rgba(10, 15, 26, 0.9);
  --ink: #f5f1e8;
  --muted: #9aa3b2;
  --accent: #ff8c42;
  --laser: #7fffd4;
  --danger: #ff3b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #111b2a, #07090f 60%);
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  gap: 20px;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 3vw, 24px);
}

.subtitle {
  color: var(--muted);
  margin-top: 8px;
}

.stats {
  text-align: right;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.8;
}

.arena {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #030507;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #04070c 0%, #0c111c 60%, #1b1208 100%);
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
  background: rgba(2, 4, 8, 0.8);
  font-family: "Press Start 2P", monospace;
  padding: 20px;
}

.overlay.hidden {
  display: none;
}

.overlay h2 {
  margin: 0;
  font-size: 20px;
}

.overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

button {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent);
  color: #1a0f06;
  cursor: pointer;
  transition: transform 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
}

.tips {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.tips a {
  color: var(--laser);
  text-decoration: none;
}

@media (max-width: 720px) {
  .hud {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    text-align: left;
  }
}
