/* The rim is one curved perimeter. Container rules in older styles positioned
   top/bottom lanes as rows; these anchors intentionally supersede those rows. */
.table-stage[data-capacity] .seat[data-seat-order][data-seat-lane]{left:var(--seat-x)!important;top:var(--seat-y)!important}
.table-stage .poker-table{left:7%;right:7%;top:21%;bottom:15%;border-radius:50%;border-width:12px}
.table-stage .table-shadow{inset:22% 7% 12%;border-radius:50%}
.table-stage .table-center{left:50%;top:54%;width:54%}
.table-stage .seat[data-seat-order]{--seat-width:clamp(84px,10.4cqw,144px);--camera-height:clamp(50px,6.7cqw,88px);display:flex;flex-direction:column;align-items:stretch;gap:3px;width:var(--seat-width);height:auto;min-height:0;transform:translate(-50%,-50%)}
.table-stage .seat[data-seat-order] .seat-body{position:relative;left:auto;top:auto;width:100%;height:var(--camera-height);min-height:var(--camera-height);max-width:none;display:flex;align-items:center;justify-content:center;gap:0}
.table-stage .seat[data-seat-order] .avatar{width:100%;height:100%;min-width:0;flex:none;overflow:hidden;border-radius:11px}
.table-stage .seat[data-seat-order] .seat-meta{position:relative;left:auto;top:auto;width:100%;min-width:0;max-width:none;height:37px;padding:3px 35px 3px 4px;margin:0;text-align:left;grid-column:auto;grid-row:auto}
.table-stage .seat[data-seat-order] .seat-name{font-size:12px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.table-stage .seat[data-seat-order] .seat-stack{font-size:15px;line-height:15px;margin-top:1px;white-space:nowrap}
.table-stage .seat[data-seat-order] .seat-hand-state{font-size:9px;line-height:10px;height:10px;min-height:10px;max-height:10px;margin-top:0}
.table-stage .seat[data-seat-order] .seat-clock{position:relative;left:auto;top:auto;width:100%;height:9px;min-height:9px;padding:0 2px;grid-column:auto;grid-row:auto}
.table-stage .seat[data-seat-order] .seat-clock [data-seat-clock-time]{display:block;font-size:9px;line-height:9px}
.table-stage .seat[data-seat-order] .seat-clock-track{height:5px}
.table-stage .seat[data-seat-order] .player-chip-stack{right:2px;bottom:-35px;--chip-width:20px;--chip-depth:10px;--chip-step:1px;--column-step:8px}
.table-stage .seat.empty[data-seat-order] .empty-seat{width:100%;height:var(--camera-height);min-height:var(--camera-height);border-radius:11px}
.table-stage .seat.empty[data-seat-order] .seat-meta{padding:3px;text-align:center}
.table-stage .seat[data-seat-order]:not(.own) .seat-hand{--opponent-width:clamp(42px,5cqw,64px);--opponent-height:calc(var(--opponent-width)*1.42);--opponent-overlap:calc(var(--opponent-width)*.48);left:50%;right:auto;top:auto;bottom:calc(100% + 5px);transform:translateX(-50%);display:flex;gap:0}
.table-stage .seat[data-seat-order]:not(.own):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:calc(var(--opponent-width)*.73)}
.table-stage .seat[data-seat-order]:not(.own)[data-card-placement="below"] .seat-hand{top:calc(100% + 4px);bottom:auto}
.table-stage .seat[data-seat-order]:not(.own) .seat-hand .card.mini{width:var(--opponent-width);height:var(--opponent-height)}
.table-stage .seat[data-seat-order]:not(.own) .seat-hand .card .corner{font-size:clamp(17px,1.8cqw,23px);top:3px;left:3px}
.table-stage .seat[data-seat-order]:not(.own) .seat-hand .card .corner .suit{font-size:clamp(11px,1.2cqw,15px)}
.table-stage .seat[data-seat-order]:not(.own):not(.shown) .seat-hand{--opponent-width:24px;--opponent-height:34px;--opponent-overlap:10px;left:auto;right:3px;top:3px;bottom:auto;transform:none}
.table-stage .seat[data-seat-order]:not(.own):not(.shown):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:17px}
.table-stage .seat[data-seat-order]:not(.own):not(.shown) .seat-hand .card.back::after{font-size:16px}
.table-stage .seat[data-seat-order].shown:not(.own)[data-seat-lane="top"] .seat-hand{left:50%;right:auto;top:calc(var(--camera-height) - var(--opponent-height));bottom:auto;transform:translateX(-50%)}
.table-stage .seat[data-seat-order].shown:not(.own)[data-seat-lane="top"] .avatar{opacity:.2}
.table-stage .seat.own[data-seat-order][data-hole-count] .own-cards{left:50%;right:auto;top:auto;bottom:calc(100% + 5px);transform:translateX(-50%)}
.table-stage .seat[data-seat-order] .deck,.table-stage .seat.own[data-seat-order] .deck{left:3px;right:auto;top:3px}
.table-stage .table-wagers .bet-chip.seat-wager[data-seat-order][data-seat-lane]{left:var(--wager-x);top:var(--wager-y);transform:translate(-50%,-50%)}

@media(max-width:680px) and (orientation:portrait){
 .table-stage[data-table-layout="portrait"] .poker-table{left:8%;right:8%;top:11%;bottom:14%;border-radius:50%;border-width:9px}
 .table-stage[data-table-layout="portrait"] .table-shadow{inset:12% 9%}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]{--seat-width:clamp(52px,15.9cqw,68px);--camera-height:clamp(35px,10.3cqw,45px);gap:2px;display:flex;height:auto;min-height:0;width:var(--seat-width)}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-body{position:relative;width:100%;height:var(--camera-height);min-height:var(--camera-height)}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .avatar{width:100%;height:100%;min-width:0;border-radius:8px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-meta{position:relative;left:auto;top:auto;height:34px;padding:2px 3px;min-width:0;width:100%;max-width:none;text-align:left}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-name{font-size:11px;line-height:11px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-stack{font-size:13px;line-height:13px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-hand-state{font-size:8px;line-height:9px;height:9px;min-height:9px;max-height:9px;display:flex}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-clock{position:relative;left:auto;top:auto;display:flex;width:100%;height:7px;min-height:7px;padding:0}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-clock [data-seat-clock-time]{font-size:8px;line-height:8px;min-width:17px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .player-chip-stack{right:1px;bottom:-31px;--chip-width:14px;--chip-depth:7px;--chip-step:.6px;--column-step:6px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own) .seat-hand{--opponent-width:42px;--opponent-height:60px;--opponent-overlap:31px;left:50%;right:auto;top:auto;bottom:calc(100% + 3px);transform:translateX(-50%)}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:38px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own)[data-card-placement="below"] .seat-hand{top:calc(100% + 3px);bottom:auto}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own)[data-card-placement="right"] .seat-hand{left:calc(100% + 4px);right:auto;top:0;bottom:auto;transform:none}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own)[data-card-placement="left"] .seat-hand{left:auto;right:calc(100% + 4px);top:0;bottom:auto;transform:none}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own) .seat-hand .card .corner{font-size:17px;top:2px;left:2px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own) .seat-hand .card .corner .suit{font-size:11px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own) .seat-hand .card .pip{font-size:24px}
 .table-stage[data-table-layout="portrait"] .seat.own[data-seat-order][data-hole-count] .own-cards{left:50%;right:auto;top:auto;bottom:calc(100% + 4px);transform:translateX(-50%)}
 .table-stage[data-table-layout="portrait"] .table-center{left:50%;top:51%;width:100%}
 .table-stage[data-table-layout="portrait"] .seat.empty[data-seat-order] .empty-seat{height:var(--camera-height);min-height:var(--camera-height);width:100%;border-radius:8px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own):not(.shown) .seat-hand{--opponent-width:21px;--opponent-height:30px;--opponent-overlap:10px;left:auto;right:2px;top:2px;bottom:auto;transform:none}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order]:not(.own):not(.shown):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:16px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own) .seat-hand{--opponent-width:calc(var(--camera-height)*.7);--opponent-height:var(--camera-height);--opponent-overlap:calc(var(--opponent-width)*.45);left:50%;right:auto;top:0;bottom:auto;transform:translateX(-50%)}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:calc(var(--opponent-width)*.65)}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own) .seat-hand .card .corner{font-size:14px;top:2px;left:2px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own) .seat-hand .card .corner .suit{font-size:9px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own) .seat-hand .card .pip{font-size:20px}
 .table-stage[data-table-layout="portrait"] .seat[data-seat-order].shown:not(.own) .avatar{opacity:.2}
 @container poker-stage (max-height:420px){
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order]{--camera-height:32px;gap:1px}
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-meta{height:32px;padding:1px 2px}
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-name{font-size:10px;line-height:10px}
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-stack{font-size:12px;line-height:12px}
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-hand-state{font-size:8px;line-height:8px;height:8px;min-height:8px;max-height:8px}
  .table-stage[data-table-layout="portrait"] .seat[data-seat-order] .seat-clock{height:6px;min-height:6px}
 }
}

/* Short landscape screens keep each frame compact and retain the same rim.
   Fans point toward the felt rather than extending past its upper boundary. */
@container poker-stage (max-height:340px) and (min-width:681px){
 .table-stage .seat[data-seat-order]{--seat-width:clamp(86px,10.7cqw,115px);--camera-width:44px;--camera-height:35px;display:grid;grid-template-columns:var(--camera-width) minmax(0,1fr);gap:2px;align-items:start}
 .table-stage .seat[data-seat-order] .seat-body{width:var(--camera-width);grid-row:1;grid-column:1}
 .table-stage .seat[data-seat-order] .seat-meta{height:32px;padding:1px 2px;grid-row:1;grid-column:2}
 .table-stage .seat[data-seat-order] .seat-name{font-size:11px;line-height:11px}
 .table-stage .seat[data-seat-order] .seat-stack{font-size:13px;line-height:13px}
 .table-stage .seat[data-seat-order] .seat-hand-state{font-size:8px;line-height:9px;height:9px;min-height:9px;max-height:9px}
 .table-stage .seat[data-seat-order] .seat-clock{height:6px;min-height:6px;grid-row:2;grid-column:1/-1}
 .table-stage .seat[data-seat-order] .seat-clock [data-seat-clock-time]{font-size:8px;line-height:8px}
 .table-stage .seat[data-seat-order] .player-chip-stack{right:1px;bottom:-29px;--chip-width:14px;--chip-depth:7px;--chip-step:.6px;--column-step:6px}
 .table-stage .seat[data-seat-order]:not(.own) .seat-hand{--opponent-width:37px;--opponent-height:53px;--opponent-overlap:25px;bottom:calc(100% + 3px)}
 .table-stage .seat[data-seat-order]:not(.own):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:32px}
 .table-stage .seat[data-seat-order]:not(.own) .seat-hand .card .corner{font-size:16px;top:2px;left:2px}
 .table-stage .seat[data-seat-order]:not(.own) .seat-hand .card .corner .suit{font-size:10px}
 .table-stage .seat[data-seat-order]:not(.own):not(.shown) .seat-hand{--opponent-width:18px;--opponent-height:26px;--opponent-overlap:10px;left:1px;right:auto;top:2px;bottom:auto;transform:none}
 .table-stage .seat[data-seat-order]:not(.own):not(.shown):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:14px}
 .table-stage .seat[data-seat-order].shown:not(.own)[data-seat-lane] .seat-hand{--opponent-width:25px;--opponent-height:35px;--opponent-overlap:14px;left:calc(var(--camera-width)/2);right:auto;top:0;bottom:auto;transform:translateX(-50%)}
 .table-stage .seat[data-seat-order].shown:not(.own):is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .seat-hand{--opponent-overlap:21px}
 .table-stage .seat[data-seat-order].shown:not(.own) .seat-hand .card .corner{font-size:14px;top:1px;left:1px}
 .table-stage .seat[data-seat-order].shown:not(.own) .seat-hand .card .corner .suit{font-size:9px}
 .table-stage .seat[data-seat-order].shown:not(.own) .avatar{opacity:.2}
 .table-stage .seat.own[data-seat-order]{--seat-width:64px;--camera-height:27px;display:flex;gap:2px;transform:translate(-50%,calc(-50% - 5px))}
 .table-stage .seat.own[data-seat-order] .seat-body{width:100%}
 .table-stage .seat.own[data-seat-order] .seat-meta{height:19px;padding:0 2px;width:100%}
 .table-stage .seat.own[data-seat-order] .seat-name{font-size:9px;line-height:9px}
 .table-stage .seat.own[data-seat-order] .seat-stack{font-size:10px;line-height:10px;margin-top:0}
 .table-stage .seat.own[data-seat-order] .seat-hand-state{display:none}
 .table-stage .seat.own[data-seat-order] .seat-clock{height:4px;min-height:4px}
 .table-stage .seat.own[data-seat-order] .seat-clock [data-seat-clock-time]{display:none}
 .table-stage .seat.own[data-seat-order][data-hole-count] .own-cards{left:calc(100% + 6px);right:auto;top:0;bottom:auto;transform:none;--private-width:35px;--private-height:50px;--private-overlap:13px}
 .table-stage .seat.own[data-seat-order]:is([data-hole-count="3"],[data-hole-count="4"],[data-hole-count="5"]) .own-cards{--private-overlap:26px}
 .table-stage .seat.own[data-seat-order] .own-cards .card .corner{font-size:16px;top:2px;left:2px}
 .table-stage .seat.own[data-seat-order] .own-cards .card .corner .suit{font-size:10px}
 .table-stage .table-center{left:50%;top:53%;width:54%}
}
