/* Shared Sun City card-table presentation; game state and settlement remain server-owned. */
.card-table{--table-bg:#0c1d18;--table-felt:#15382d;--table-gold:#d8b777;--table-line:#b8995b66;--table-muted:#b5c5bb;background:var(--table-bg);color:#f3eee3;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;border:1px solid var(--table-line)}
.card-table h2,.card-table h3,.card-table button,.card-table input{font-family:inherit}
.card-table .game-header{background:#101c18;border-bottom:1px solid var(--table-line);padding:16px 22px;gap:12px}
.table-brand{display:flex;align-items:center;gap:11px;min-width:0}.table-brand>img{width:36px;height:36px;object-fit:contain;border-radius:8px;flex:none}
.table-brand h2{font-size:25px;line-height:1.2;margin:5px 0 0;font-weight:600}.table-brand .eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--table-gold)}
.card-table .game-disclaimer{background:#101c18;color:#a9b6aa;font-size:11px;padding:8px 14px;border:0}
.card-table .game-surface,#blackjack-dialog.card-table .game-surface,#baccarat-dialog.card-table .game-surface{background:radial-gradient(ellipse at 50% 20%,#193b30,#0e241c 85%);padding:20px 24px}
.card-table .table-action-bar{background:#101c18;border-top:1px solid var(--table-line);padding:20px 24px}
.card-table .button{border-radius:9px;min-height:48px;font-weight:600;letter-spacing:.2px;transition:background .18s,border-color .18s,box-shadow .18s;touch-action:manipulation}
.card-table .button:hover{transform:none}.card-table .button.gold{background:#ddbd7e;color:#17241c;border:1px solid #ebce94}.card-table .button.gold:hover:not(:disabled){background:#ebcf98;box-shadow:0 3px 12px #d8b77722}
.card-table .button.outline{color:#e6e8de;border:1px solid #81948888;background:#172a22}.card-table button:focus-visible{outline:2px solid #f2d7a0;outline-offset:3px}
.card-table .button:disabled{opacity:.43}.card-table .plain-input{background:#0c1d18;border-color:#6c795b;color:#fff0cf;border-radius:8px;font-variant-numeric:tabular-nums}
.card-table .poker-felt,.card-table .multi-felt{background:radial-gradient(ellipse,#1d4535,#102c23);border:1px solid var(--table-line);box-shadow:inset 0 0 28px #0003;border-radius:55px}
.card-table .poker-pot{gap:12px;margin:0 0 12px}.card-table .poker-pot>strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;color:#f0d398}
.card-table .poker-pot>span,.card-table .poker-street{color:#c2cdbf;letter-spacing:1px}.card-table .poker-street{min-height:16px;margin:10px 0 0}
.card-table .poker-card{width:52px;flex-basis:52px;height:74px;border-radius:6px;background:#fffaf0;color:#17241f;border-color:#e7dcc2;box-shadow:0 3px 5px #0004}
.card-table .poker-card.red{color:#b1223d}.card-table .poker-card>span{font:700 18px/1 Arial,sans-serif;left:5px;top:5px}.card-table .poker-card small{font-size:16px;color:inherit}
.card-table .poker-card>strong{font-size:27px;right:6px;bottom:5px}.card-table .poker-card.covered{color:#d8b777;background:repeating-linear-gradient(45deg,#233c31,#233c31 3px,#1a2e26 3px,#1a2e26 6px);border:1px solid #aa925f}
.card-table .poker-card.empty-card{border:1px dashed #78957c66;background:#0e2a2188;box-shadow:none}
.card-table .poker-seat{position:relative;min-width:200px;padding:10px 18px 9px;border-radius:14px;border:1px solid #637a5a55;background:#10271f;display:flex;flex-direction:column;align-items:center;gap:6px}
.card-table .poker-seat-label{margin:0;gap:18px;width:100%;min-height:22px;font-size:14px}.card-table .poker-seat-label span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-table .poker-seat-label strong{font-weight:600;font-variant-numeric:tabular-nums}.card-table .poker-seat.player{border-color:var(--table-line);background:#163126}
.card-table .poker-seat.player .poker-hole .poker-card,.card-table .multi-own .poker-card,.card-table .bj-hand.player .poker-card{width:64px;flex-basis:64px;height:90px}
.card-table .poker-seat.player .poker-card>span,.card-table .multi-own .poker-card>span,.card-table .bj-hand.player .poker-card>span{font-size:22px}
.card-table .poker-seat.player .poker-card small,.card-table .multi-own .poker-card small,.card-table .bj-hand.player .poker-card small{font-size:19px}
.card-table .seat-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#27392e;border:1px solid #748569;color:#d7ddcf;font-size:16px;font-weight:600;box-shadow:0 0 0 3px #16241c}
.card-table .poker-seat>.seat-avatar{position:absolute;left:12px;top:9px}.card-table .poker-seat:has(.seat-avatar) .poker-seat-label{padding-left:34px;min-height:30px}
.card-table .poker-seat.player:has(.seat-avatar) .poker-hole{margin-top:33px}.card-table .poker-seat.player:has(.seat-avatar) .poker-seat-label{order:-1;position:absolute;top:10px;left:12px;width:calc(100% - 24px);padding-right:0}
.card-table .seat-status{display:block;min-height:17px;font-size:12px;color:#adbeb0;line-height:17px}
.card-table .seat-timer{position:absolute;right:9px;bottom:7px;min-width:26px;font:600 11px/16px Arial,sans-serif;color:#edd09b}
.card-table [data-seat].is-acting{border-color:#cba869;box-shadow:0 0 0 1px #d8b77733;animation:none}
.card-table .is-acting>.seat-avatar{background:#debe7f;color:#15231a;border-color:#ffe0a0;box-shadow:0 0 0 3px #d8b77733;animation:none}
.card-table [data-seat]::after{content:'';position:absolute;left:10px;right:10px;bottom:0;height:2px;transform:scaleX(0);transform-origin:left;background:#dbbd80;border-radius:2px}
.card-table [data-seat].is-acting::after{background:linear-gradient(to right,#dbbd80 var(--turn-remaining,100%),transparent var(--turn-remaining,100%));transform:none}
.card-table .turn-ending>.seat-timer{color:#ffd3a6}.card-table .turn-ending>.seat-avatar{border-color:#ffd3a6}
.table-hud{margin:0 0 12px;font-variant-numeric:tabular-nums}.table-hud[hidden]{display:none}.hud-turn{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:23px;margin-bottom:9px;font-size:13px}
.hud-turn strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:#b6c7bb}.hud-turn>span{font-size:12px;color:#ddc18a;white-space:nowrap}.your-turn .hud-turn strong{color:#ffe0a2}
.hud-turn strong::before{content:'';display:inline-block;background:#8aa393;width:6px;height:6px;border-radius:50%;margin-right:7px}.your-turn .hud-turn strong::before{background:#eac67f}
.hud-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hud-amounts>span{display:grid;gap:4px;border-left:1px solid #a68c5633;padding-left:12px}.hud-amounts>span:first-child{border:0;padding-left:0}
.hud-amounts small{font-size:11px;color:#acbcae}.hud-amounts b{font-size:16px;color:#f0d39a;font-weight:600;white-space:nowrap}
.card-table .pvp-action-grid{gap:8px}.card-table .pvp-action-grid .button{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.card-table .raise-label{min-height:44px;margin:10px 0 0}.card-table .raise-label input{max-width:112px}.card-table .mobile-game-dock>.poker-turn-note{min-height:0;margin:0;font-size:11px;color:#aabcae}
.card-table .multi-stage{gap:12px}.card-table .multi-opponents{gap:10px}.card-table .multi-seat{position:relative;border:1px solid #64785b66;border-radius:10px;background:#10271f;gap:7px;padding:10px 8px}
.card-table .multi-seat-name{min-height:20px;width:100%;font-size:14px}.card-table .multi-seat-name strong{font-weight:600}.card-table .multi-seat small{color:#b6c7b9}
.card-table .multi-own .multi-seat{min-width:220px;border-color:var(--table-line);background:#173329;padding:10px 18px;gap:7px}
.card-table .multi-chips{color:#f2d79f;font-weight:600;font-variant-numeric:tabular-nums}.card-table .multi-own .seat-avatar{position:absolute;left:12px;top:10px}.card-table .multi-own .multi-seat-name{padding-left:30px;min-height:28px}
.card-table .multi-own .multi-seat>small:last-child{min-height:17px;line-height:17px}.card-table .multi-opponents .poker-card{width:30px;flex-basis:30px;height:42px}.card-table .multi-opponents .poker-card>span{font-size:12px}.card-table .multi-opponents .poker-card small{font-size:10px}.card-table .multi-opponents .poker-card>strong{font-size:16px;bottom:2px;right:3px}
.card-table .multi-seat.is-folded{opacity:.68}.card-table .multi-felt{padding:16px 20px}
.card-table .blackjack-felt{border:1px solid var(--table-line);background:radial-gradient(ellipse,#173a2d,#0c291f);border-radius:70px 70px 28px 28px;gap:18px;padding:22px 15px}
.card-table .bj-hand h3{font-size:13px;color:#d2d9cd;font-weight:500}.card-table .bj-hand p{display:inline-flex;align-items:center;gap:8px;border:1px solid #b7995d55;border-radius:8px;background:#0e271f;padding:6px 13px;min-height:42px;color:#bdcbbf}.card-table .bj-hand p strong{font-size:26px;margin:0;color:#ffe0a0}
.card-table .bj-hand .poker-hole{min-height:74px;max-width:460px}.card-table .bj-hand.player .poker-hole{min-height:90px}.card-table .bj-hand .poker-card{flex-shrink:1;min-width:25px}.card-table .bj-table-rule{font-family:inherit;font-size:11px;color:#c5ae7e;letter-spacing:2px}
.card-table .bac-felt{border:1px solid var(--table-line);background:#13332966}.card-table .bac-topline{background:#13261d;font-variant-numeric:tabular-nums}.card-table .bac-felt .baccarat-stage{min-height:230px;padding-top:30px}
.card-table .bac-zone{border:1px solid #859a7d66;border-radius:9px;background:#0e281f}.card-table .bac-zone.selected{border:1px solid #e8c782;box-shadow:inset 0 0 0 1px #e8c782;background:#283d29}
.card-table .bac-zone.player{border-top:3px solid #6a97cc}.card-table .bac-zone.banker{border-top:3px solid #bd7180}.card-table .bac-zone.tie{border-top:3px solid #72aa8d}.card-table .bac-zone.super6{border-top:3px solid #d5b16f}
.card-table .hand-label{font-family:inherit;font-weight:600}.card-table .hand-score{font-family:inherit;font-variant-numeric:tabular-nums}.card-table .hand-score strong{font-weight:600;font-size:27px}.card-table .bac-player{width:140px;min-height:105px;background:#10271f;border-color:#82977855}.card-table .bac-player small{min-height:18px}.card-table .bac-player.is-you{border-color:#d8b777}
.card-table .card-corner{font-family:Arial,sans-serif;font-weight:700}.card-table .bac-navigation{background:#101c18}.card-table .game-result{min-height:24px;margin:14px 0 0;line-height:1.6}
.card-table .baccarat-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-table .hand-zone{min-width:0}.card-table .baccarat-stage .hand-cards{width:100%;max-width:208px;gap:4px}.card-table .card-shell,.card-table .card-slot{flex:1 1 0;min-width:0;max-width:64px;width:auto}
@media(max-width:760px){
 .card-table.game-dialog{top:0;bottom:auto;margin:0;width:100%;max-width:100%;border-radius:0;border:0;scrollbar-gutter:auto;overflow-anchor:none}
 .card-table .game-header{padding:12px;gap:7px;align-items:center}.card-table .table-brand{gap:8px}.card-table .table-brand>img{width:30px;height:30px}.card-table .table-brand h2{font-size:20px;line-height:1.3}.card-table .table-brand .eyebrow{font-size:8px;letter-spacing:1px}
 .card-table .game-header-right{gap:5px;flex-wrap:nowrap}.card-table [data-sound-toggle]{font-size:11px;padding:7px;min-width:0}.card-table .game-header .icon-button{min-width:36px;width:36px}
 .card-table .game-surface,#blackjack-dialog.card-table .game-surface,#baccarat-dialog.card-table .game-surface{padding:12px 10px}.card-table .table-action-bar{padding:12px}.card-table .room-heading{padding:10px 12px;gap:7px;font-size:11px}
 .card-table .mobile-game-dock{background:#101f19fa;border:1px solid #b3935e88;border-radius:12px;padding:10px;left:8px;right:8px;box-shadow:0 -8px 26px #0006;max-height:58dvh}
 .card-table .mobile-game-dock .button{min-height:48px;font-size:13px;padding:9px 5px}.card-table .mobile-game-dock .pvp-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .card-table .mobile-game-dock .raise-label{margin-top:8px;min-height:40px;font-size:12px}.card-table .mobile-game-dock .raise-label input{min-height:40px;padding:7px;max-width:106px}
 .card-table .mobile-game-dock .leave-table,.card-table .mobile-game-dock #multi-controls>.inline-link{display:none}
 .card-table .mobile-game-dock #pvp-controls>.small{display:none}.card-table .mobile-game-dock:has(.table-hud:not([hidden])) :is(#pvp-clock,#multi-clock){display:none}
 .table-hud{margin-bottom:9px}.hud-turn{font-size:12px;margin-bottom:7px;min-height:18px}.hud-amounts{gap:7px}.hud-amounts>span{padding-left:7px}.hud-amounts b{font-size:14px}.hud-amounts small{font-size:10px}
 .card-table .poker-stage{gap:10px}.card-table .poker-seat{min-width:190px;padding:9px 13px 8px}.card-table .poker-seat-label{font-size:12px;gap:12px}.card-table .poker-seat-label span{max-width:155px}.card-table .seat-status{font-size:11px}
 .card-table .poker-card,.card-table .poker-felt .poker-card,.card-table .multi-felt .poker-card{width:46px;flex-basis:46px;height:65px}.card-table .poker-card>span{font-size:17px}.card-table .poker-card small{font-size:14px}.card-table .poker-card>strong{font-size:23px}
 #pvp-table .poker-seat.player .poker-hole .poker-card,.card-table .poker-seat.player .poker-hole .poker-card,.card-table .multi-own .poker-card,.card-table .bj-hand.player .poker-card{width:58px;flex-basis:58px;height:82px}
 .card-table .poker-hole:has(>.poker-card:nth-child(4)) .poker-card,#pvp-table .poker-seat.player .poker-hole:has(>.poker-card:nth-child(4)) .poker-card{width:46px;flex-basis:46px;height:70px}
 .card-table .poker-felt{padding:14px 8px;border-radius:30px;min-width:100%}.card-table .poker-pot{margin-bottom:9px}.card-table .poker-pot>strong{font-size:24px}.card-table .poker-board{gap:6px}
 .card-table .multi-stage{gap:9px}.card-table .multi-opponents{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.card-table .multi-opponents .multi-seat{height:97px;min-height:97px;padding:8px 5px 8px;gap:4px;align-items:stretch}
 .card-table .multi-opponents .seat-avatar{position:absolute;left:5px;top:7px;width:24px;height:24px;font-size:12px;box-shadow:none}.card-table .multi-opponents .multi-seat-name{padding-left:29px;min-height:23px;font-size:12px;justify-content:flex-start;gap:2px}
 .card-table .multi-opponents .multi-seat-name i{width:14px;height:14px;font-size:9px}.card-table .multi-opponents .poker-hole{position:absolute;left:6px;top:39px;gap:2px}.card-table .multi-opponents .poker-card{width:17px;flex-basis:17px;height:26px;border-radius:3px;font-size:13px}
 .card-table .multi-opponents .poker-card>span{font-size:10px;top:2px;left:2px}.card-table .multi-opponents .poker-card small{font-size:9px}.card-table .multi-opponents .poker-card>strong{display:none}
 .card-table .multi-opponents .multi-chips{margin-left:37px;font-size:12px;white-space:nowrap;min-height:17px}.card-table .multi-opponents .multi-seat>small:last-child{margin-left:37px;min-height:28px;font-size:10px;line-height:14px;display:block;text-align:center}
 .card-table .multi-opponents .seat-timer{left:6px;right:auto;bottom:5px;font-size:10px;min-width:0}.card-table .multi-opponents .empty-seat{justify-content:center;align-items:center}.card-table .multi-opponents .empty-seat>span{font-size:22px}.card-table .multi-opponents .empty-seat>p{margin:0;font-size:11px}
 .card-table .multi-own .multi-seat{min-width:205px;padding:8px 14px;gap:5px}.card-table .multi-own .multi-seat-name{font-size:13px}.card-table .multi-own .multi-chips{font-size:14px}.card-table .multi-felt{padding:12px 7px;border-radius:30px}.card-table .multi-felt .poker-street{margin-top:7px;font-size:11px}
 .card-table .blackjack-felt{padding:18px 10px;border-radius:45px 45px 24px 24px;gap:14px}.card-table .bj-hand h3{margin-bottom:8px}.card-table .bj-hand .poker-hole{min-height:65px;gap:5px}.card-table .bj-hand.player .poker-hole{min-height:82px}.card-table .bj-hand p{margin-top:9px;min-height:40px;padding:5px 12px}
 .card-table .bac-felt{padding:8px}.card-table .bac-felt .baccarat-stage{padding-top:30px;min-height:195px}.card-table .bac-topline{padding:10px 12px;font-size:12px}.card-table .bac-zone{min-height:85px}.card-table .bac-zone>span{font-size:19px}.card-table .bac-player{width:100px;min-height:98px}.card-table .hand-score strong{font-size:23px}.card-table .hand-label{font-size:15px}
 .card-table .game-result{font-size:13px;min-height:21px;margin-top:10px}
}
@media(max-width:360px){
 .card-table .table-brand h2{font-size:17px}.card-table .table-brand>img{width:25px;height:25px}.card-table .table-brand{gap:6px}.card-table .game-header{padding:10px 8px}.card-table .table-brand .eyebrow{letter-spacing:0;font-size:7px}
 .card-table .mobile-game-dock .pvp-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-table .multi-opponents .multi-chips{font-size:10px}.card-table .multi-opponents .multi-seat-name{font-size:11px;padding-left:25px}.card-table .multi-opponents .seat-avatar{width:21px;height:21px}
 .card-table .poker-board{gap:5px}.card-table .poker-felt .poker-card,.card-table .multi-felt .poker-card{width:43px;flex-basis:43px;height:62px}.card-table .poker-seat{max-width:100%;min-width:185px}.card-table .poker-hole:has(>.poker-card:nth-child(4)) .poker-card,#pvp-table .poker-seat.player .poker-hole:has(>.poker-card:nth-child(4)) .poker-card{width:40px;flex-basis:40px;height:65px}
}
@media(prefers-reduced-motion:reduce){.card-table .button{transition:none}.card-table [data-seat]{animation:none!important}}
@media(max-width:760px){
 .card-table .multi-opponents .multi-seat{height:78px;min-height:78px}
 .card-table .multi-opponents .multi-seat>small:last-child{font-size:9px;line-height:11px;min-height:22px}
 .card-table .multi-opponents .seat-timer{bottom:0;font-size:9px;line-height:12px}
 .card-table .multi-felt{padding:10px 7px}.card-table .multi-felt .poker-card{height:55px;width:40px;flex-basis:40px}
 .card-table .multi-felt .poker-pot{margin-bottom:6px}.card-table .multi-felt .poker-pot>strong{font-size:21px}.card-table .multi-felt .poker-street{margin-top:5px;min-height:13px;font-size:10px}
 .card-table .multi-own .multi-seat{width:286px;min-width:0;max-width:100%;height:111px;display:block;text-align:left;padding:10px}
 .card-table .multi-own .poker-hole{position:absolute;right:10px;top:13px;gap:6px}
 .card-table .multi-own .multi-seat-name{padding:0 0 0 44px;width:142px;justify-content:flex-start;font-size:12px}
 .card-table .multi-own .multi-chips{position:absolute;left:12px;top:49px}
 .card-table .multi-own .multi-seat>small:last-child{position:absolute;left:12px;top:75px;max-width:126px;font-size:11px}
 .card-table .multi-own .seat-timer{left:12px;right:auto;bottom:0;font-size:10px}
 .card-table .card-corner{font-size:16px}.card-table .card-corner small{font-size:12px}
}
.table-exit-row{display:flex;justify-content:flex-end;margin-top:10px;padding-top:8px;border-top:1px solid #cfb16b30}
.table-exit-row .table-exit-button{min-height:44px;padding:9px 18px;font-size:14px;color:#e8d8b2;border-color:#cfb16b60}
#fold-confirm-dialog{max-height:calc(100dvh - 32px);overflow:auto}
#fold-confirm-dialog .row-actions{display:flex;flex-wrap:wrap;gap:10px}
#fold-confirm-dialog .row-actions .button{flex:1 1 130px;min-height:48px;white-space:normal}
@media(max-width:640px){.table-exit-row{margin-top:6px;padding-top:6px}.table-exit-row .table-exit-button{width:100%;min-height:44px}}
