/* ==========================================================================
   Campo Minado — estilos específicos do tabuleiro em grade
   ========================================================================== */

.ms-level-row {
  margin-bottom: 0.25rem;
}

.ms-level-row .btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

#mode-toggle-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #05231f;
}

.ms-board-wrap {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.ms-board {
  display: grid;
  gap: 2px;
  background: var(--border);
  padding: 2px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ms-cell {
  width: var(--cell-size, 28px);
  height: var(--cell-size, 28px);
  padding: 0;
  border: none;
  border-radius: 3px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: calc(var(--cell-size, 28px) * 0.34);
  font-weight: 700;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.ms-cell:hover:not(.is-revealed) {
  border: 1px solid var(--accent);
}

.ms-cell.is-revealed {
  background: var(--surface);
  cursor: default;
}

.ms-cell.is-flagged {
  background: var(--surface-alt);
}

.ms-cell.is-mine {
  background: var(--danger);
  color: #2b0410;
}

