/* Snake (wwwroot/js/snake.js): a grid of cells; the snake is green (the head darker, with an eye), the apple red. */
.snake-board { display: grid; gap: 1px; max-width: 420px; margin: 0 auto 10px; padding: 4px; background: #2b8a3e; border-radius: 10px; touch-action: none; user-select: none; }
.snake-cell { aspect-ratio: 1; background: #b2f2bb; border-radius: 3px; position: relative; }
.snake-cell:nth-child(even) { background: #d3f9d8; }
.snake-cell.sn-body { background: #2f9e44; border-radius: 6px; }
.snake-cell.sn-head { background: #1b5e20; border-radius: 8px; }
.snake-cell.sn-head::after { content: ''; position: absolute; inset: 28% 28%; background: #fff; border-radius: 50%; }
.snake-cell.sn-food { background: radial-gradient(circle at 50% 55%, #e03131 55%, transparent 58%); }
.snake-cell.sn-food::before { content: ''; position: absolute; width: 18%; height: 18%; top: 8%; left: 55%; background: #2f9e44; border-radius: 50%; }
.snake-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 300px; margin: 0 auto 8px; }
.snake-pad .btn { font-size: 1.4rem; padding: .5rem 0; }
