:root {
  --game: #edc22e;
  --game-deep: #bbada0;
  --game-ink: #422006;
}

/* Game-specific: board/tiles only. Shell: ../../assets/css/game-shared.css */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 72px));
  grid-template-rows: repeat(4, minmax(56px, 72px));
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #bbada0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #cdc1b4;
  color: #776e65;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tile.t-2 { background: #eee4da; }
.tile.t-4 { background: #ede0c8; }
.tile.t-8 { background: #f2b179; color: #f9f6f2; }
.tile.t-16 { background: #f59563; color: #f9f6f2; }
.tile.t-32 { background: #f67c5f; color: #f9f6f2; }
.tile.t-64 { background: #f65e3b; color: #f9f6f2; }
.tile.t-128 { background: #edcf72; color: #f9f6f2; font-size: 1.1rem; }
.tile.t-256 { background: #edcc61; color: #f9f6f2; font-size: 1.1rem; }
.tile.t-512 { background: #edc850; color: #f9f6f2; font-size: 1.1rem; }
.tile.t-1024 { background: #edc53f; color: #f9f6f2; font-size: 1rem; }
.tile.t-2048 { background: #edc22e; color: #f9f6f2; font-size: 1rem; }
.tile.t-super { background: #3c3a32; color: #f9f6f2; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* Исторический фон страницы (до unified shell): shell даёт layout,
   доступность и HUD-структуру, цвет страницы — из истории игры. */
body {
  background: #faf8ef;
  color: #776e65;
}

.hud {
  background: #edc22e;
  color: #f9f6f2;
}
