.snake-game {
  --snake-accent: #81f4bc;
  width: min(100%, 590px);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #2b5a51;
  border-radius: 22px;
  background: radial-gradient(ellipse at 48% 0, #173b36, #112423 58%, #101f22);
  color: #edfdf5;
}
.snake-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.snake-header h3 { margin: 0 auto 0 0; font-size: clamp(19px, 3vw, 26px); }
.snake-scores { display: flex; gap: 12px; margin: 0; text-align: center; }
.snake-scores dt { color: #b0d0c5; font-size: 11px; }
.snake-scores dd { margin: 0; color: var(--snake-accent); font-size: 18px; line-height: 1.15; font-weight: 750; font-variant-numeric: tabular-nums; }
.snake-stage { position: relative; width: min(100%, clamp(260px, 54dvh, 500px)); margin-inline: auto; }
.snake-stage canvas { display: block; width: 100%; aspect-ratio: 1; border: 1px solid #366557; border-radius: 14px; background: #0b1e21; touch-action: none; }
.snake-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: 14px; background: #071719aa; }
#snake-status { margin: 0; text-align: center; font-weight: 700; }
#snake-status:empty { display: none; }
#arcade-snake .games-button { border: 1px solid #48766a; background: #1f3936; color: #eafff4; min-height: 40px; }
#arcade-snake .games-button:focus-visible, #snake-board:focus-visible { outline: 2px solid var(--snake-accent); outline-offset: 2px; }
#arcade-snake #snake-play { padding-inline: 24px; background: var(--snake-accent); color: #0e2a24; font-weight: 750; }
.snake-controls { display: none; grid-template-columns: repeat(3, 44px); gap: 4px; justify-content: center; margin-top: 10px; }
.snake-controls button { padding: 0; font-size: 20px; touch-action: manipulation; }
.snake-controls button:first-child { grid-column: 2; }
.snake-controls button:nth-child(2) { grid-column: 1; }
#snake-help { margin: 10px 0 0; color: #b0d0c5; font-size: 12px; text-align: center; }
@media (pointer: coarse), (max-width: 700px) { .snake-controls { display: grid; } }
