.column-colors {
    --red: #ae3e48;
    --blue: #2d6294;
    --yellow: #efc300;
}

.column-colors .colors-settings {
    align-items: flex-end;
    gap: 12px 18px;
}

.column-colors .colors-settings label {
    gap: 4px 8px;
}

.column-colors .colors-instruction {
    margin: 18px 0 12px;
}

.column-colors .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 0;
    margin: 12px 0 18px;
}

.column-colors .colors-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 0 0 12px;
    font-size: 14px;
}

.column-colors .colors-red-key { color: var(--red); }
.column-colors .colors-blue-key { color: var(--blue); }
.column-colors .colors-point-key { color: #65510a; }

.column-colors .colors-board {
    display: grid;
    grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
    gap: 14px 0;
    width: min(100%, calc(var(--count) * 54px + 8px));
    box-sizing: border-box;
    margin: 0 auto;
    border: 4px solid #bbc2c6;
    border-radius: 4px;
    background: #fcfcfc;
}

.column-colors .colors-board[data-complete="true"] {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px #efc30035;
}

.column-colors .colors-column {
    display: grid;
    grid-template-rows: 54px 54px 23px;
    min-width: 0;
}

.column-colors button.colors-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 1px solid #fcfcfc;
    border-radius: 0;
    color: white;
    line-height: 1;
    touch-action: manipulation;
}

.column-colors button.colors-cell[data-color="red"] { background: var(--red); }
.column-colors button.colors-cell[data-color="blue"] { background: var(--blue); }
.column-colors .colors-number { font-size: 24px; }
.column-colors .colors-symbol { font-family: sans-serif; font-size: 8px; margin-top: 4px; }
.column-colors button.colors-cell:hover { filter: brightness(1.12); }
.column-colors button.colors-cell:focus-visible { outline: 3px solid #f6ce28; outline-offset: -4px; position: relative; z-index: 1; }

.column-colors .colors-mark {
    display: grid;
    place-items: center;
    font: bold 16px/1 sans-serif;
    color: #5d4b0a;
    background: #f3f3f1;
    border-inline: 1px solid #fcfcfc;
}

.column-colors .colors-column[data-scoring="true"] .colors-mark { background: #fff0a6; }
.column-colors .colors-status { min-height: 1.65em; margin: 14px 0; text-align: center; }
.column-colors .colors-status[data-state="complete"] { color: #695000; font-weight: bold; }
.column-colors .game-actions { gap: 10px; }
.column-colors .colors-new { margin-left: auto; }

@media (max-width: 520px) {
    .column-colors .colors-legend { gap: 4px 12px; }
    .column-colors .game-actions button { flex: 1 1 auto; padding-inline: 10px; }
    .column-colors .colors-new { margin-left: 0; }
}
