#board {
    display: grid;
    margin: 100px auto;
    width: fit-content;
    user-select: none;
}

.cell {
    width: 40px;
    height: 40px;
    border: 1px solid gray;
    box-sizing: border-box;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    color: #1a1a1a;
}

#controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

#palette {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
}

.color.selected {
    outline: 3px solid gold;
}

.typing {
    outline: 2px solid black;
    background-color: rgba(0, 0, 0, 0.1);
}