body {
    background: #caced3;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#board {
    display: grid;
    gap: 4px;
}


#container {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;    /* center horizontally */
    gap: 10px;              /* space between board, buttons, message */
}

.cell {
    width: 25px;
    height: 25px;
    background: #e3e6ea;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    user-select: none;
}

.cell:hover {
    background: #d6dae0;
}

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

.cell.revealed {
    background: #ffffff;
    cursor: default;
}

.cell.mine {
    background: #ff6b6b;
    color: white;
}

.cell.flagged {
    background: #ffd166;
}

.reset {
    padding: 10px; border-radius: 3px; margin-left: 10px; border: none; background-color: white;
    transition: background-color 0.25s ease;
    font-family: 'Courier New', Courier, monospace;
}
.reset:hover {
    background-color: lightgrey;
    cursor: pointer;
}