:root {
    --accent: #d6a8ff;
    --felt-a: #1d7a4b;
    --felt-b: #0a3f26;
    --max: 760px;
}

/* Cards are sized from the table's width so ten piles always fit; MAX_CW in main.js matches the 60px */
.table {
    --cw: min(60px, calc((100cqw - 9 * var(--gap)) / 10));
    --ch: calc(var(--cw) * 1.4);
    min-height: calc(var(--ch) * 6);
}

.top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: calc(var(--ch) * 0.25);
}

.stock {
    position: relative;
    flex: none;
    width: calc(var(--cw) * 2.2);
    height: var(--ch);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.stock:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.stock .pcard {
    pointer-events: none;
}

.done {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
    padding-top: 2px;
}

.done-slot {
    width: calc(var(--cw) * 0.62);
    height: calc(var(--cw) * 0.86);
    display: grid;
    place-items: center;
    font-family: system-ui, sans-serif;
    font-size: calc(var(--cw) * 0.42);
    line-height: 1;
    color: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: calc(var(--cw) * 0.1);
}

.done-slot.full {
    color: #14161c;
    background: #fbfaf5;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.done-slot.full.red { color: #d62828; }

.board {
    display: grid;
    grid-template-columns: repeat(10, var(--cw));
    gap: var(--gap);
    justify-content: space-between;
    align-items: start;
}

.col {
    position: relative;
    min-height: var(--ch);
    border-radius: calc(var(--cw) * 0.13);
}

.col.target {
    background: rgba(255, 210, 63, 0.16);
    box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.7);
}

@media (max-width: 480px) {
    .done { gap: 2px; }
}
