/* ===== HODLsweeper (Minesweeper) ===== */
.minesweeper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  background: #c0c0c0;
  height: 100%;
}

.minesweeper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 6px;
  background: #c0c0c0;
  border: 2px inset #fff;
  margin-bottom: 6px;
}

.minesweeper-counter {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ff0000;
  background: #000;
  padding: 2px 4px;
  min-width: 40px;
  text-align: center;
  border: 1px inset #888;
}

.minesweeper-face {
  width: 28px;
  height: 28px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  user-select: none;
}

.minesweeper-face:active {
  border-style: inset;
}

.minesweeper-grid {
  display: grid;
  gap: 0;
  border: 2px inset #fff;
}

.mine-cell {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-system);
  cursor: pointer;
  user-select: none;
  border: 2px outset #fff;
  background: #c0c0c0;
}

.mine-cell.revealed {
  border: 1px solid #808080;
  background: #d0d0d0;
}

.mine-cell.flagged::after {
  content: '💎';
  font-size: 12px;
}

.mine-cell.mine-exploded {
  background: #ff0000;
}

.mine-cell.mine-shown::after {
  content: '🧻';
  font-size: 12px;
}

.mine-cell .num-1 { color: #0000ff; }
.mine-cell .num-2 { color: #008000; }
.mine-cell .num-3 { color: #ff0000; }
.mine-cell .num-4 { color: #000080; }
.mine-cell .num-5 { color: #800000; }
.mine-cell .num-6 { color: #008080; }
.mine-cell .num-7 { color: #000; }
.mine-cell .num-8 { color: #808080; }
