body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Arial, sans-serif;
    background: #222;
    color: white;
}

main {
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

#status {
    height: 22px;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 22px;
}

#board {
    display: grid;
    grid-template-columns: repeat(var(--columns, 9), 45px);

    gap: 2px;

    margin-bottom: 20px;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
}

.cell {
    width: 45px;
    height: 45px;

    border: none;
    background: #555;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
}

.cell:hover {
    background: #666;
}

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

.cell.flagged {
    background: #555;
}

.mine {
    background: #c0392b !important;
}

.green {
    color: #27ae60;
}

.yellow {
    color: #f39c12;
}

.red {
    color: #c0392b;
}

#reset {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}