Objective: Clear the board without detonating any mines.
- Reveal a cell: Left-click (or tap) an unrevealed cell. If it's a mine, you lose. If it shows a number, that's how many mines touch it. If it's blank, adjacent blank cells open automatically.
- Flag a suspected mine: Right-click or toggle Flag Mode to place or remove a flag. The remaining mine counter updates accordingly.
- New Game: Resets the board, timer, and counters. Choose a difficulty or custom size before starting.
- Win/Loss: Win by revealing every non-mine cell. Lose by clicking a mine. Status is announced for screen readers.
Custom Board: Rows and columns must be integers 10–99. Mines must be an integer from 10 up to min(999, rows×columns − 1). Invalid values leave the current game intact and show an error.