/* Snake — classic arcade */
#game-stage { display: flex; flex-direction: column; align-items: center; width: 100%; }

.sn-hud { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.sn-hud .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.sn-val { font-size: 28px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }

.sn-stage-wrap { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1; }
.sn-canvas { width: 100%; height: 100%; display: block; background: #070a1c;
  border: 1px solid var(--border); border-radius: 14px; touch-action: none; }

/* Overlay (start / game over). Toggled by adding/removing .sn-show. */
.sn-overlay { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center;
  background: rgba(5,6,15,.82); border-radius: 14px; backdrop-filter: blur(2px); text-align: center; }
.sn-overlay.sn-show { display: flex; }
.sn-overlay-inner { padding: 20px; }
.sn-ov-title { font-size: 40px; font-weight: 900; color: var(--neon); text-shadow: 0 0 16px rgba(0,245,212,.5); margin: 0 0 6px; }
.sn-ov-title.lose { color: var(--neon2); text-shadow: 0 0 16px rgba(255,46,151,.5); }
.sn-ov-sub { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.sn-overlay .gbtn { margin: 4px; }

/* hide helper (explicit so it always beats other display rules) */
.sn-hide { display: none !important; }

/* Controls: only a d-pad, keep it centered */
.sn-controls { max-width: 420px; grid-template-columns: 1fr; justify-items: center; }

.ctrl-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
