.board-shell--centered {
  display: flex;
  justify-content: center;
}

.board {
  display: grid;
  gap: 6px;
  width: fit-content;
  min-width: min-content;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.board--polished {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(116, 215, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.cell {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #15223a, #101a2c);
  color: var(--color-text);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.18s ease;
}

.cell:hover {
  background: linear-gradient(180deg, #1b2d49, #132237);
  border-color: rgba(116, 215, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(116, 215, 255, 0.12);
}

.cell:active,
.cell.cell-pressed {
  transform: scale(0.95);
}

.cell.revealed {
  background: linear-gradient(180deg, #29466f, #223a5d);
  cursor: default;
}

.cell.revealed:hover {
  background: linear-gradient(180deg, #30507f, #264369);
}

.cell.mine {
  background: linear-gradient(180deg, #79425b, #5f3247);
  color: #fff;
}

.cell.flagged {
  background: linear-gradient(180deg, #21454a, #19353a);
  border-color: rgba(124, 230, 170, 0.2);
  box-shadow: 0 0 0 1px rgba(124, 230, 170, 0.12);
}

.cell.flagged.cell-flash {
  animation: flagPulse 240ms ease;
}

.cell.loss-hit {
  box-shadow: 0 0 0 3px rgba(255, 143, 143, 0.36), 0 0 18px rgba(255, 143, 143, 0.2);
  animation: lossPulse 420ms ease;
}

.cell.win-flash {
  animation: winPulse 520ms ease;
}

.cell[data-number="1"] { color: #9fd3ff; }
.cell[data-number="2"] { color: #7CFC98; }
.cell[data-number="3"] { color: #ff9b9b; }
.cell[data-number="4"] { color: #c5a3ff; }
.cell[data-number="5"] { color: #ffb870; }
.cell[data-number="6"] { color: #7ee7e7; }
.cell[data-number="7"] { color: #f0f0f0; }
.cell[data-number="8"] { color: #c0c0c0; }

.status-panel--polished {
  background:
    radial-gradient(circle at top right, rgba(116, 215, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 42, 0.96), rgba(12, 18, 31, 0.92));
}

.status-panel--polished.is-win {
  box-shadow: 0 0 0 1px rgba(124, 230, 170, 0.16), 0 10px 34px rgba(124, 230, 170, 0.08);
}

.status-panel--polished.is-loss {
  box-shadow: 0 0 0 1px rgba(255, 143, 143, 0.16), 0 10px 34px rgba(255, 143, 143, 0.08);
}

@keyframes flagPulse {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes lossPulse {
  0% { transform: scale(1); }
  35% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes winPulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 230, 170, 0); }
  45% { box-shadow: 0 0 0 2px rgba(124, 230, 170, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(124, 230, 170, 0); }
}

@media (max-width: 640px) {
  .cell {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .board {
    gap: 5px;
    padding: 0.8rem;
  }
}

@media (max-width: 420px) {
  .cell {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.88rem;
  }

  .board {
    gap: 4px;
    padding: 0.72rem;
  }
}
