/* Игровое поле 4x4 и связанные состояния */

.waiting-card, .ready-card {
  text-align: center;
  padding: 28px 20px;
}

.timer {
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
  letter-spacing: 0.02em;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0 16px;
}

.cell {
  aspect-ratio: 1 / 1;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  min-width: 44px;
  user-select: none;
}

.cell:active { transform: scale(0.94); }

.cell.revealed {
  cursor: default;
  color: var(--text-primary);
  animation: flip-in 0.32s ease;
}

@keyframes flip-in {
  from { transform: rotateY(90deg) scale(0.9); opacity: 0.3; }
  to { transform: rotateY(0) scale(1); opacity: 1; }
}

.cell.match {
  border-color: var(--purple);
  box-shadow: 0 0 18px var(--purple-glow), inset 0 0 12px rgba(155,92,255,0.25);
  background: rgba(155, 92, 255, 0.14);
}

.cell.miss {
  animation: flip-in 0.32s ease, shake 0.32s ease 0.32s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .cell.revealed, .cell.miss { animation: none; }
}

.reward-banner {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--purple-dim);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  animation: banner-in 0.3s ease;
}

@keyframes banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.winners-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.winners-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}

.winners-list li:last-child { border-bottom: none; }

.winner-balls { color: var(--purple-strong); font-weight: 700; }
