/* Seats live outside the physical table. The page may scroll; game controls never clip. */
.game-layout{height:auto!important;min-height:calc(100dvh - var(--bar-height,80px));overflow:visible!important}
.play-area,body.text-large .play-area{height:auto!important;min-height:calc(100dvh - var(--bar-height,80px));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:12px;overflow:visible!important;align-content:start;padding:16px 22px 20px}
.play-area>.table-arena{grid-column:1!important;grid-row:1!important}
.play-area>.table-feedback,body.text-large .play-area>.table-feedback{grid-column:1!important;grid-row:2!important;height:auto;min-height:48px;margin:0}
.play-area>.human-zone,body.text-large .play-area>.human-zone{grid-column:1!important;grid-row:3!important;align-self:start;margin:0;min-width:0}
.play-area>.social-bar,body.text-large .play-area>.social-bar{grid-column:1!important;grid-row:4!important;min-height:44px;margin:0;padding:3px 0;display:flex!important;flex-wrap:wrap}
.table-arena{--seat-face:68px;--seat-label-width:104px;--felt-top:174px;--felt-side:120px;--felt-bottom:24px;position:relative;isolation:isolate;width:100%;height:clamp(440px,52dvh,520px);min-height:440px;overflow:visible}
.table-arena>.opponents,.table-arena>.opponents:has(.role-president){display:contents!important;width:auto;height:0;padding:0!important;margin:0!important;grid-template-columns:none;gap:0}
.table-arena .opponent{position:absolute;z-index:4;left:clamp(56px,calc(var(--seat-x,50)*1%),calc(100% - 56px));top:calc(var(--seat-y,42)*1%);display:flex;flex-direction:column;align-items:center;gap:4px;width:var(--seat-label-width);min-width:0;margin:0;padding:0;transform:translateX(-50%);margin-top:calc(var(--seat-face)*-.5);text-align:center}
.table-arena .opponent[data-seat-zone=top]{top:0;margin-top:0;padding-top:22px}
.table-arena .avatar{width:var(--seat-face);height:var(--seat-face);flex:0 0 var(--seat-face);border-radius:22px}
.table-arena .opponent-name,.table-arena .opponent:has(.role-president) .opponent-name{display:block;width:100%;min-height:34px;max-height:none;margin:2px 0 0;padding:2px 3px;font-size:14px;line-height:1.15;font-weight:750;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-wrap:balance;color:#fff8e8;text-shadow:0 2px 5px #000,0 0 3px #000}
.table-arena .opponent-info{display:block;width:100%;min-height:16px;margin:0;padding:1px 3px;font-size:12px;line-height:1.25;white-space:normal;text-wrap:balance;color:#e3e7dc;text-shadow:0 2px 4px #000}
.table-arena .mini-cards,.table-arena .opponent .turn-badge{display:none!important}
.table-arena .reaction-bubble{top:-8px;right:0;z-index:7}
.table-arena>.felt,.table-arena>.felt:has(.pile-cards){position:absolute!important;inset:var(--felt-top) var(--felt-side) var(--felt-bottom);width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0;grid-row:auto!important;grid-column:auto!important;border-radius:90px;overflow:hidden;container-type:size}
.table-arena .felt .pile-area,.table-arena .felt .pile-area:has(.pile-cards){width:100%;height:100%;min-height:0;margin:0;padding:4px 10px!important;gap:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}
.table-arena .felt .pile-cards{--pile-card-width:min(122px,calc((100cqw - 35px)/(var(--pile-count,1)*.72 + .28)),calc((100cqh - 48px)*.696));display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:0;width:100%;height:auto;min-height:0;max-height:none;padding:0 10px}
.table-arena .felt .pile-cards .playing-card.rogue-card{width:var(--pile-card-width)!important;height:auto!important;min-width:0;max-width:none;aspect-ratio:110/158;flex:0 0 auto;container-type:inline-size;transform:rotate(-2deg);margin:0}
.table-arena .felt .pile-cards .playing-card.rogue-card+.playing-card.rogue-card{margin-left:calc(var(--pile-card-width)*-.28);transform:rotate(2deg)}
.table-arena .felt .pile-cards .playing-card.rogue-card:nth-child(3){transform:rotate(-1deg)}
.table-arena .felt .pile-cards .playing-card.rogue-card:nth-child(4){transform:rotate(2.5deg)}
.table-arena .pile-cards .rogue-index{width:23cqw;top:6cqw;left:5.5cqw;padding:1cqw 1cqw 2cqw;gap:1.5cqw}
.table-arena .pile-cards .rogue-index-bottom{top:auto;left:auto;right:5.5cqw;bottom:6cqw}
.table-arena .pile-cards .rogue-index b{font-size:clamp(10px,24cqw,29px)}
.table-arena .pile-cards .rogue-index .rogue-suit{width:17cqw;height:17cqw}
.table-arena .pile-cards .rogue-index-joker b{font-size:clamp(7px,11cqw,14px)}
.table-arena .pile-cards .rogue-joker-star{font-size:15cqw}
.table-arena .pile-cards .rogue-edition{font-size:5.5cqw}.table-arena .pile-cards .rogue-maker{font-size:4.5cqw}.table-arena .pile-cards .rogue-power{font-size:4.5cqw}.table-arena .pile-cards .rogue-suit-name{font-size:4.5cqw}.table-arena .pile-cards .rogue-ace-name{font-size:3.5cqw}
.table-arena .pile-caption{flex:0 0 auto;width:100%;max-width:100%;margin:0;font-size:14px;line-height:1.2;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;text-align:center;color:#fff8e8}
.table-arena .felt-wordmark{display:none!important}.table-arena .empty-pile{min-height:0;padding:10px;gap:9px}.table-arena .empty-pile small{max-width:100%;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.table-arena:has(.waiting-panel)>.opponents{display:none!important}.table-arena:has(.waiting-panel)>.felt{inset:12px;height:auto!important;min-height:0!important;max-height:none!important;border-radius:36px;overflow:auto;container-type:normal}
.play-area:has(.waiting-panel)>.table-feedback,.play-area:has(.waiting-panel)>.human-zone{display:none!important}.play-area:has(.waiting-panel)>.social-bar{grid-row:2!important}
.table-arena:has(.waiting-panel) .pile-area{height:auto;min-height:100%;padding:18px!important}.table-arena .waiting-panel{min-height:0;padding:12px;gap:10px}
@media(min-width:601px) and (max-width:900px){.play-area,body.text-large .play-area{padding:14px 16px 18px;gap:10px}.table-arena{--seat-face:62px;--seat-label-width:94px;--felt-top:166px;--felt-side:108px;height:460px;min-height:460px}.table-arena .opponent{left:clamp(52px,calc(var(--seat-x,50)*1%),calc(100% - 52px))}.table-arena .avatar{border-radius:20px}.table-arena .opponent[data-seat-zone=top]{padding-top:20px}.table-arena>.felt{border-radius:70px}}
@media(max-width:600px){.play-area,body.text-large .play-area{padding:12px 10px 20px;gap:10px}.table-arena{--seat-face:52px;--seat-label-width:74px;--felt-top:154px;--felt-side:80px;--felt-bottom:24px;height:440px;min-height:440px}.table-arena .opponent{left:clamp(39px,calc(var(--seat-x-mobile,var(--seat-x,50))*1%),calc(100% - 39px));top:calc(var(--seat-y-mobile,var(--seat-y,42))*1%);margin-top:calc(var(--seat-face)*-.5);gap:3px}.table-arena .opponent[data-seat-zone=top]{top:0;margin-top:0;padding-top:20px}.table-arena .avatar{border-radius:17px}.table-arena .opponent-name,.table-arena .opponent:has(.role-president) .opponent-name{font-size:14px;min-height:34px;margin-top:2px;padding:1px 2px;line-height:1.15}.table-arena .opponent-info{font-size:11px;line-height:1.25;padding:1px 2px;min-height:15px}.table-arena>.felt{border-radius:52px}.table-arena .pile-caption{font-size:14px;line-height:1.2}.table-arena .reaction-bubble{right:-1px;top:-5px}.table-arena .empty-pile{padding:6px}.table-arena .empty-pile>span:not(.empty-symbol){font-size:14px}.table-arena .empty-pile small{font-size:12px}.table-arena .empty-symbol{width:35px;height:44px;font-size:25px}.play-area>.human-zone .hand-cards{overflow-x:auto;overflow-y:hidden}.play-area>.social-bar{padding-bottom:env(safe-area-inset-bottom)}.table-arena:has(.waiting-panel){height:390px;min-height:390px}.table-arena:has(.waiting-panel)>.felt{inset:8px;border-radius:30px}.table-arena:has(.waiting-panel) .pile-area{padding:14px!important}}
@media(max-height:500px) and (min-width:601px){.game-layout{height:auto!important;overflow:visible!important}.play-area,body.text-large .play-area{height:auto!important;min-height:calc(100dvh - 54px);grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:12px;padding:14px 12px 20px;overflow:visible!important}.play-area>.table-arena{grid-column:1!important;grid-row:1/3!important}.play-area>.human-zone,body.text-large .play-area>.human-zone{grid-column:2!important;grid-row:1!important}.play-area>.table-feedback,body.text-large .play-area>.table-feedback{grid-column:2!important;grid-row:2!important;grid-template-columns:1fr;align-self:start}.play-area>.social-bar,body.text-large .play-area>.social-bar{grid-column:1/-1!important;grid-row:3!important;display:flex!important}.table-arena{--seat-face:38px;--seat-label-width:66px;--felt-top:138px;--felt-side:70px;--felt-bottom:22px;height:390px;min-height:390px}.table-arena .opponent{left:clamp(35px,calc(var(--seat-x-mobile,var(--seat-x,50))*1%),calc(100% - 35px));gap:3px}.table-arena .opponent[data-seat-zone=top]{padding-top:17px}.table-arena .avatar{border-radius:13px}.table-arena .opponent-name{font-size:12px;line-height:1.2;min-height:29px}.table-arena .opponent-info{display:block;font-size:10px;line-height:1.2}.table-arena>.felt{border-radius:48px}.table-arena:has(.waiting-panel){height:380px;min-height:380px}.play-area:has(.waiting-panel){grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}.play-area:has(.waiting-panel)>.table-arena{grid-column:1!important;grid-row:1!important}.play-area:has(.waiting-panel)>.social-bar{grid-column:1!important;grid-row:2!important}.table-arena .empty-pile small{font-size:12px}}
