:root {
    --accent: #f0d9a0;
    --felt-a: #2a7a78;
    --felt-b: #0e3b3f;
    --max: 480px;
}

/* The pyramid is seven cards wide at the bottom; the card size follows the table so it always fits */
.table {
    --cw: min(64px, calc(100cqw / 7.5));
    --ch: calc(var(--cw) * 1.4);
    --sx: calc(var(--cw) * 1.08); /* one card plus a small gap */
}

.pyr {
    position: relative;
    width: calc(var(--sx) * 7);
    height: calc(var(--ch) * 4);
    margin: 0 auto;
}

.hand {
    margin-top: calc(var(--ch) * 0.3);
}

.pile .pcard,
.pile .slot {
    left: 0;
    top: 0;
}

.pile:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 6px;
}
