*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

canvas {
  display: block;
  image-rendering: pixelated;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  z-index: 10;
}

.overlay.active { display: flex; }

.title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.25em;
  color: #f0c040;
  text-shadow: 0 0 20px #f0c04088;
}

.sub {
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 0.12em;
}

.instructions {
  margin: 0.5rem 0 0.5rem;
  text-align: center;
  line-height: 2;
  color: #ccc;
  font-size: 0.78rem;
}

kbd {
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.78rem;
  color: #eee;
}

button {
  margin-top: 0.5rem;
  padding: 0.65rem 2.4rem;
  background: #f0c040;
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

button:hover { background: #ffd84d; transform: translateY(-2px); }
button:active { transform: translateY(0); }

.go-stats {
  color: #ddd;
  font-size: 0.82rem;
  line-height: 2;
  text-align: center;
}
