/* A complete fixed package per seat; only the shared canvas scales. */
#s-table #tbl:is([data-seats="5"],[data-seats="9"]){position:absolute;flex:none;left:50%;top:50%;right:auto;bottom:auto;width:var(--table-width);height:var(--table-height);margin:0;translate:0 0;transform:translate(-50%,-50%);--avatar-size:68px;--avatar-icon:36px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .felt{left:calc(var(--table-cx) - var(--table-spine) - var(--table-radius));top:calc(var(--table-cy) - var(--table-radius));right:auto;bottom:auto;width:calc(2 * (var(--table-spine) + var(--table-radius)));height:calc(2 * var(--table-radius));box-sizing:border-box}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #center{left:var(--table-cx);top:var(--table-cy);width:304px;height:68px;display:block;transform:translate(-50%,-50%)}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #center .board{position:absolute;left:50%;top:50%;width:max-content;transform:translate(-50%,-50%);translate:0 0!important;gap:6px;min-height:0;align-items:center}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .board>:is(.card,.slot){width:56px;max-width:none;height:78.4px;aspect-ratio:5/7;box-sizing:border-box}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #center .pot{position:absolute;left:50%;top:-14px;width:244px;max-width:244px;box-sizing:border-box;height:30px;transform:translate(-50%,-100%);font-size:14px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #dealer{left:var(--table-cx)!important;top:var(--table-dealerY)!important;width:76px;height:80px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #dealer .dav{width:76px;height:80px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat{width:112px;height:var(--avatar-size);--turn-gap:0px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.me.bottom{left:var(--table-cx)!important;top:var(--table-ownY)!important;height:68px;--avatar-size:68px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .cards{left:calc(50% + var(--cx,0px))!important;top:calc(50% + var(--cy,0px))!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%) rotate(var(--rot,0rad))!important;gap:2px;margin:0!important;transition:none}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .cards>.card{width:42px!important;height:58.8px!important;aspect-ratio:auto;rotate:0deg!important;transform:none;transition:none;margin:0!important;clip-path:none}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.me .cards{gap:4px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.me .cards>.card{width:42px!important;height:58.8px!important}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.wbig:not(.bottom) .cards{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.wbig:not(.bottom) .cards>.card{width:52px!important;height:72.8px!important}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .plate{position:absolute!important;left:calc(50% + var(--package-name-x,0px))!important;top:calc(50% + var(--package-name-y,32px))!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;width:var(--package-name-width,70px)!important;max-width:none!important;height:32px;margin:0!important;padding:0;text-align:center!important;display:grid;grid-template-rows:16px 16px;gap:0}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .plate :is(.nm,.stk){font:700 15px/16px Inter,system-ui,sans-serif;max-width:100%;white-space:nowrap}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .plate .nm{overflow:hidden;text-overflow:ellipsis}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .eqb,#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .tbar{display:none}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .tag{position:absolute!important;left:calc(50% + var(--package-action-x,0px))!important;top:calc(50% + var(--package-action-y,-40px))!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:var(--package-action-width,70px);max-width:none;height:20px;box-sizing:border-box;margin:0;padding:0;display:grid;place-items:center;font-size:14px;line-height:20px;white-space:nowrap}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .bet{transform:translate(-50%,-50%)!important;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:4px;height:28px;padding:0!important;line-height:20px;font-size:14px!important;animation:none}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .bet .rolling-number{display:block;transform:none!important;white-space:nowrap;text-align:center}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .bet .coin.wager-chips,#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .bet .wager-chips>i{width:20px;height:20px}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners .win-hand{top:calc(var(--victory-bottom) + 0px)!important;left:var(--victory-x)!important;width:260px!important;font-size:16px;line-height:20px;transform:translateX(-50%)}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners .win-winner{top:calc(var(--victory-bottom) + 22px)!important;left:var(--victory-x)!important;width:260px!important;max-width:260px;box-sizing:border-box;height:22px;line-height:20px;transform:translateX(-50%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}

#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners :is(.win-hand,.win-winner,.win-amount){animation:table-win-in .2s ease-out!important}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .bet .rolling-number{text-align:left}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.sr .bet{grid-template-columns:minmax(0,1fr) 20px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.sr .bet .coin{grid-column:2;grid-row:1}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.sr .bet .rolling-number{grid-column:1;grid-row:1;text-align:right}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox:not(.hidden){left:auto!important;right:8px!important;bottom:8px!important;top:auto!important;width:400px!important;height:76px;box-sizing:border-box;max-width:none!important;padding:6px!important;display:grid!important;grid-template-columns:90px minmax(0,1fr) 52px 140px;grid-template-rows:28px 28px;grid-template-areas:"v s m r" "p p p r";gap:4px!important}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox #rs{writing-mode:horizontal-tb!important;direction:ltr!important;width:100%!important;height:28px!important;appearance:auto!important;align-self:center}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .val{font-size:14px!important;line-height:28px;margin:0}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .presets{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .presets button{width:100%;height:28px!important;font-size:11px!important;min-width:0;padding:0!important}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .pm{display:flex;gap:4px;align-items:center}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .pm button{width:24px!important;height:28px!important;font-size:18px!important;padding:0}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .row{display:grid!important;grid-template-columns:1fr;grid-template-rows:28px 28px;gap:4px!important}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .row .btn{width:100%;height:28px!important;font-size:11px!important;padding:0 3px!important;min-width:0}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])):has(#raisebox:not(.hidden)) #actions{visibility:hidden}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.fold .cards{display:flex;opacity:.65}

#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #raisebox .row .btn{white-space:normal!important;line-height:12px;overflow-wrap:anywhere}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #bubbles>:is(.bubble,.say){transform:translate(-50%,-50%)!important;animation:table-win-in .15s ease-out;max-width:160px;box-sizing:border-box}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #bubbles>.bubble{width:42px;height:42px;display:grid;place-items:center;line-height:42px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #bubbles>.say{width:160px;font-size:13px;line-height:16px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) #bubbles>.say::after{display:none}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) :is(#msg,#conn){position:absolute;left:60px;right:auto;top:auto;bottom:16px;width:300px;max-height:32px;margin:0;padding:0;text-align:left;font-size:12px;line-height:16px;box-sizing:border-box}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])):has(#conn:not(.hidden)) #msg{visibility:hidden}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .cards{z-index:4}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.wbig:not(.bottom) .plate{top:calc(50% + 44px)!important}

#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners .win-hand{top:calc(var(--victory-bottom) - 4px)!important;left:calc(var(--victory-x) - 70px)!important;width:130px!important;font-size:14px;line-height:18px}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners .win-winner{top:calc(var(--victory-bottom) - 4px)!important;left:calc(var(--victory-x) + 70px)!important;width:130px!important;height:18px;line-height:16px;font-size:12px}

#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.sl .av .dealer{left:-12px;right:auto;bottom:0}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.sr .av .dealer{right:-12px;left:auto;bottom:0}

#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .table-winners .win-amount{width:250px;height:32px;max-height:32px;line-height:32px;font-size:28px;white-space:nowrap;transform:translate(-50%,-100%)}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .win-amount .rolling-number{display:inline-block;height:32px;line-height:32px;vertical-align:top}
#s-table:has(#tbl:is([data-seats="5"],[data-seats="9"])) #fx .win-amount .rolling-digit{height:32px;line-height:32px;vertical-align:top}

/* Match the selected preview: the whole wager stays inside the felt. */
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .felt{border:17px solid #3b4050;border-radius:999px;--felt-rim:17px}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat .tag{background:none!important;border:0!important;box-shadow:none!important;color:#9de7f5}
#s-table #tbl:is([data-seats="5"],[data-seats="9"]) .seat.me.bottom .plate :is(.nm,.stk){font:700 15px/16px Inter,system-ui,sans-serif}
