.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: clamp(5px, 1.8vw, 11px);
  background: var(--board-bg);
  border: 1px solid var(--border);
  width: min(94vw, 94vmin, 520px);
  margin: 0 auto;
  padding: clamp(7px, 2vw, 14px);
  border-radius: var(--shape-large);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  aspect-ratio: 7 / 6;
  transition: opacity 0.4s ease;
  flex-shrink: 0;
}

.board.shake {
  animation: boardShake 0.6s ease-in-out;
}

.cell {
  background: var(--cell-bg);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease;
}

.cell:hover {
  background: var(--cell-hover-bg);
}

.cell::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.cell[data-player="1"]::before {
  background: radial-gradient(circle at 32% 32%, var(--player1-color) 55%, #d63c3c);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18);
  opacity: 1;
}

.cell[data-player="2"]::before {
  background: radial-gradient(circle at 32% 32%, var(--player2-color) 55%, #e0a800);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18);
  opacity: 1;
}

.cell.winning {
  animation: pulseWin 1s infinite alternate ease-in-out;
}

.falling-disc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  will-change: top;
}

.falling-disc.red {
  background: radial-gradient(circle at 32% 32%, var(--player1-color) 55%, #d63c3c);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18);
}

.falling-disc.yellow {
  background: radial-gradient(circle at 32% 32%, var(--player2-color) 55%, #e0a800);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18);
}

.info {
  margin: 14px 0 4px;
  font-weight: 600;
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  min-height: 1.6em;
  color: var(--text);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.gamebutton-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}