#game table {
    margin: 0 auto;
    border-collapse: separate;
}

#game td {
    --cell-size: 70px;
    --min-size: 50px;
    --max-size: 100px;
    width: clamp(var(--min-size), var(--cell-size), var(--max-size));
    height: clamp(var(--min-size), var(--cell-size), var(--max-size));
    border: 3px solid black;
    text-align: center;
    color: gray;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 16px;
}

#game tr:nth-child(2n+1) td:nth-child(2n),
#game tr:nth-child(2n) td:nth-child(2n+1) {
    background-color: gray;
    color: white;
}

#game td.blocked {
    border: 3px solid blue;
}

#game td.selected {
    border: 3px solid red;
}

#game td img {
    position: relative;
    animation-fill-mode: backwards;
    width: 90%;
}

@media (max-width: 400px) {
    #game td {
        --cell-size: 40px;
        --min-size: 50px;
        --max-size: 55px;
    }
}