/* Card Room's felt, deck, typography and controls; Scopa's local table layout. */
.scopa-game .game-centre{display:block;min-width:0}
.scopa-game .table-center{width:60%;min-height:520px}
.scopa-game .table-top{gap:var(--space-2);align-items:start}
.scopa-game #round-label{white-space:nowrap;flex-shrink:0}
.scopa-game #turn-guide{min-height:48px}
.scopa-game #players .player-detail{min-width:0}.scopa-game #players .player-detail small{white-space:normal;overflow-wrap:anywhere}
.scopa-wrap{min-width:0;max-width:100%;text-align:center}
#scopa-stock{font-size:12px;min-height:36px}
#scopa-chip{color:var(--lime);min-height:24px;font-weight:700}
.scopa-board{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:var(--space-2);min-height:180px}
.scopa-board>.card{width:56px;height:79px;flex-shrink:0}
.scopa-legal{outline:2px solid var(--lime);outline-offset:2px}
.scopa-chooser{height:156px;padding:var(--space-2) 0}
.scopa-chooser p{font-size:12px;margin:var(--space-2) 0}
.scopa-choices{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:center;max-height:108px;overflow:auto;padding:var(--space-1)}
.scopa-choices button{min-height:44px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.scopa-piles{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--space-3)}
.scopa-pile{display:grid;justify-items:center;align-content:start;min-width:0;flex:1;font-size:12px}
.scopa-pile .pile{width:28px;height:39px;min-width:0;min-height:0;margin-bottom:var(--space-1)}
.scopa-pile strong,.scopa-pile small{display:block;font-size:11px;overflow-wrap:anywhere;max-width:100%}
.scopa-markers{display:flex;justify-content:center;gap:var(--space-1);height:30px;max-width:100%;overflow:auto}
.scopa-markers .card{width:21px;height:30px}
#scopa-history{text-align:left;border-bottom:1px solid var(--line-strong);margin-top:var(--space-2)}
#scopa-history summary{font-size:12px;cursor:pointer;min-height:44px;padding:var(--space-2)}
#scopa-log{max-height:180px;overflow:auto;font-size:12px;overflow-wrap:anywhere}
.scopa-game .card[data-scopa-value]::after{content:attr(data-scopa-value);position:absolute;right:2px;bottom:2px;background:var(--paper);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--space-1);padding:0 3px;font-size:12px;line-height:16px;z-index:2}
.scopa-markers .card[data-scopa-value]::after{display:none}
.scopa-primes .card{width:42px;height:59px}
.scopa-game #table-notice{min-height:64px;overflow-wrap:anywhere}
@media(min-width:768px){.scopa-game .table-center{padding-top:var(--seat-clear,0px)}}
@media(max-width:767px){.scopa-game .table-center{width:100%;min-height:560px}.scopa-game #turn-guide{min-height:72px}.scopa-board{min-height:180px;gap:var(--space-1)}.scopa-board>.card{width:44px;height:62px}.scopa-piles{gap:var(--space-1)}.scopa-game #scopa-stock{min-height:48px}.scopa-game #table-notice{min-height:84px}}
