.mine-status {
  width: min(640px, 100%);
  margin: 0 auto 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.025);
  font-weight: 800;
}

.mine-board {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #0b222b, #08161d);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 20px 50px rgba(0,0,0,.24);
}

.mine-cell {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(145,190,202,.18);
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(104,208,223,.13), rgba(255,255,255,.035));
  cursor: pointer;
  font-size: clamp(.72rem, 2.2vw, 1.12rem);
  font-weight: 900;
  transition: transform .12s ease, background .14s ease, border-color .14s ease, box-shadow .18s ease;
}

.mine-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(104,208,223,.12);
}

.mine-cell.revealed {
  cursor: default;
  border-color: rgba(145,190,202,.1);
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 5px rgba(0,0,0,.2);
}

.mine-cell.flagged { color: var(--gold); background: rgba(242,199,92,.1); }
.mine-cell.mine { color: #fff; background: rgba(239,109,104,.22); border-color: rgba(239,109,104,.42); }
.mine-cell.triggered {
  border-color: rgba(239,109,104,.85);
  box-shadow: 0 0 26px rgba(239,109,104,.48), inset 0 0 14px rgba(239,109,104,.18);
}

.mine-cell-icon {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.28));
}

.mine-cell-icon.flag-icon { width: 72%; height: 72%; }
.mine-cell-icon.bomb-icon { width: 82%; height: 82%; }
.mine-cell.flagged .mine-cell-icon { animation: flagPop .18s ease-out; }
.mine-cell.mine .mine-cell-icon { animation: bombPop .22s cubic-bezier(.2,.85,.35,1.2); }

.mine-cell[data-number="1"] { color: #68d0df; }
.mine-cell[data-number="2"] { color: #8bcf9b; }
.mine-cell[data-number="3"] { color: #f2c75c; }
.mine-cell[data-number="4"] { color: #ed8b45; }
.mine-cell[data-number="5"],
.mine-cell[data-number="6"],
.mine-cell[data-number="7"],
.mine-cell[data-number="8"] { color: #ef8a86; }

@keyframes flagPop {
  from { transform: scale(.72) rotate(-8deg); opacity: .45; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes bombPop {
  from { transform: scale(.64); opacity: .35; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 620px) {
  .mine-board { padding: 7px; gap: 3px; border-radius: 16px; }
  .mine-cell { border-radius: 6px; padding: 0; }
  .mine-cell-icon { width: 84%; height: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  .mine-cell-icon { animation: none !important; }
}
