.pf-table { --cw: clamp(52px, 11cqw, 78px); display: grid; gap: 14px; padding: 14px; }
.pf-opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pf-opp { display: grid; justify-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; background: rgba(0, 0, 0, .15); }
.pf-opp.turn { box-shadow: inset 0 0 0 2px var(--chip); }
.pf-oname { color: #e8f3ef; font-size: .8rem; font-weight: 700; }
.pf-backs { display: flex; }
.pf-back { width: 14px; height: 22px; margin-left: -6px; border-radius: 3px; background: #c8323a repeating-linear-gradient(45deg, rgba(255, 255, 255, .2) 0 2px, transparent 2px 5px); border: 1px solid #fffdf8; }
.pf-back:first-child { margin-left: 0; }
.pf-mid { display: flex; justify-content: center; gap: 22px; }
.pf-pile { display: grid; justify-items: center; gap: 4px; color: rgba(255, 255, 255, .8); font-size: .78rem; font-weight: 700; }
.pf-stock, .pf-disc { padding: 0; background: none; cursor: pointer; }
.pf-stock .cd, .pf-disc .cd { top: -2px; left: -2px; }
.pf-table.drawing .pf-stock, .pf-table.drawing .pf-disc { box-shadow: 0 0 0 3px #7fe0b5; border-radius: calc(var(--cw) * .1); }
.pf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0; }
.pf-hand { --cw: clamp(48px, min(14vw, calc(94vw / (var(--n) * .6 + .45))), 90px); display: flex; justify-content: center; padding: 14px 0 6px; min-height: calc(var(--cw) * 1.5); }
.pf-hc { position: relative; width: min(calc(var(--cw) * .6), calc((94vw - var(--cw)) / max(var(--n) - 1, 1))); height: calc(var(--cw) * 1.4); }
.pf-hc:last-child { width: var(--cw); }
.pf-hand .cd { transition: transform .12s; }
.pf-hand .cd.sel { transform: translateY(-14px); }
.pf-hand .cd.new { box-shadow: 0 0 0 3px #7fe0b5, 0 1px 2px rgba(0, 0, 0, .35); }
.pf-hand .cd[data-g]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.pf-hand .cd[data-g="1"]::after { background: #1d8a4e; }
.pf-hand .cd[data-g="2"]::after { background: #1e6fd9; }
.pf-hand .cd[data-g="3"]::after { background: #c99a14; }
@media (prefers-reduced-motion: reduce) { .pf-hand .cd { transition: none; } }
