/* Snake — pixel-style canvas with paused/over overlay. */

.snake-area {
  position: relative;
  margin: 18px auto;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#snake-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0f2a0f;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  box-sizing: border-box;
}

.snake-area .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  text-align: center;
  border-radius: 4px;
}
.snake-area .overlay.hidden { display: none; }
.snake-area .overlay h2 { margin: 0 0 12px; font-size: 30px; }
.snake-area .overlay p  { margin: 0 0 4px;  font-size: 16px; opacity: 0.9; }
.snake-area .overlay button {
  margin-top: 16px;
  padding: 10px 22px;
  font-size: 14px;
}

.snake-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.95;
}
.snake-hud .num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
