:root {
  --game: #f59e0b;
  --game-deep: #b45309;
  --game-ink: #451a03;
}

/* Game-specific: board/tiles only. Shell: ../../assets/css/game-shared.css */
.score {
  display: block;
  margin: 0;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hit {
  min-width: 220px;
  min-height: 88px;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 16px;
  background: var(--game);
  color: var(--game-ink);
  font: inherit;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  /* Убирает 300мс дабл-тап-зум на мобильных — критично для игры на скорость. */
  touch-action: manipulation;
  transition: transform var(--motion-fast), background-color var(--motion-fast);
}
.hit:hover:not(:disabled) {
  filter: brightness(1.1);
}
.hit:active:not(:disabled) {
  transform: scale(0.94);
}
.hit:disabled {
  background: #d6d3d1;
  color: #78716c;
  cursor: not-allowed;
}
.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.time {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.time.urgent {
  color: #dc2626;
  font-weight: 700;
}
.result {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 600;
}
.best {
  margin: 0;
  color: var(--muted, #aab4e0);
  font-weight: 600;
}

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

.hud {
  background: #f59e0b;
}
