/* One screen: table above, all game controls in a permanently visible bottom bar. */
.game-dialog[open],.game-dialog.fallback-open{display:flex!important;flex-direction:column!important;overflow:hidden!important;scrollbar-gutter:auto;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}
.game-dialog>.dialog-top{position:relative!important;top:auto!important;flex:0 0 auto;min-height:36px;padding:2px 0 5px!important}
.game-dialog #gameRoomContent{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important;padding-bottom:0!important}
.game-dialog:not(.has-live-table) #gameRoomContent{overflow-y:auto!important}
.game-dialog .room-layout{display:flex!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
.game-dialog .table-stage{display:flex!important;flex-direction:column;flex:1 1 auto!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow:visible!important;padding:7px!important}
.game-dialog .table-rail{flex:0 0 auto;min-height:25px;padding:3px 7px}
.game-dialog .poker-position-strip{flex:0 0 auto;padding:5px 8px;font-size:clamp(13px,1vw,20px);line-height:1.25}
.game-dialog .table-brand{flex:0 0 auto;margin:4px 0;font-size:clamp(16px,1.3vw,24px)}
.game-dialog .opponent-seats{flex:0 0 auto;margin:4px 0!important}
.game-dialog .game-room-started .opponent-seat{height:clamp(74px,14vh,160px)!important}
.game-dialog .table-action-panels{flex:0 0 auto;max-height:clamp(88px,12vh,140px);margin:4px 0!important}
.game-dialog .turn-prompt,.game-dialog .opponent-comment{min-height:0!important;height:auto;max-height:clamp(88px,12vh,140px);padding:8px 12px;gap:12px;overflow:hidden}
.game-dialog .turn-prompt img,.game-dialog .opponent-comment>img{width:70px!important;height:clamp(68px,10vh,112px)!important;flex-basis:70px!important}
.game-dialog .turn-prompt-copy strong,.game-dialog .opponent-comment-copy strong{font-size:clamp(20px,1.65vw,30px)}
.game-dialog .turn-prompt-copy>span,.game-dialog .opponent-comment-copy p{font-size:clamp(17px,1.35vw,25px);line-height:1.25;margin:4px 0}
.game-dialog .turn-prompt-kicker,.game-dialog .opponent-comment-kicker{font-size:11px}
.game-dialog .your-poker-position{font-size:12px;margin-bottom:3px}
.game-dialog .table-center{display:flex;flex-direction:column;flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:3px!important;gap:5px}
.game-dialog .table-card-zone{flex:1 1 0;min-height:0!important;height:100%;max-height:100%;grid-template-columns:minmax(110px,1fr) minmax(330px,2.1fr) minmax(110px,1fr);gap:10px}
.game-dialog .table-card-zone .table-betting-chip{height:100%;max-height:min(28vh,350px);width:auto;max-width:100%;min-width:0;aspect-ratio:1;border-width:clamp(6px,.7vw,12px)}
.game-dialog .table-card-zone .table-betting-chip span{font-size:clamp(12px,1.15vw,24px)}
.game-dialog .table-card-zone .table-betting-chip strong{font-size:clamp(28px,3vw,60px);margin-top:5px}
.game-dialog .table-card-zone .table-betting-chip small{font-size:clamp(12px,1vw,22px);margin-top:5px}
.game-dialog .table-card-zone .room-card-row{min-height:0!important;height:100%;max-height:100%;align-items:center;align-content:center;flex-wrap:wrap;gap:8px;padding:2px;overflow:visible!important}
.game-dialog .table-card-zone .room-card-row .playing-card,.game-dialog .table-card-zone .room-card-row .card-back{width:clamp(42px,4.6vw,100px)!important;height:clamp(60px,13vh,145px)!important;max-height:100%;margin-left:-5px}
.game-dialog .table-card-zone .room-card-row .card-group>small{font-size:clamp(11px,.9vw,16px);margin-bottom:5px}
.game-dialog .table-status{flex:0 0 auto;font-size:14px;line-height:1.25;margin:2px 0}
.game-dialog .showdown-result{display:grid!important;grid-template-columns:minmax(0,1.3fr) auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:4px 16px;flex:0 0 auto!important;width:100%;min-height:0;height:auto!important;max-height:125px!important;margin:4px 0;padding:7px 12px!important;overflow:visible!important}
.game-dialog .showdown-result .showdown-winning-label{grid-column:1;grid-row:1;font-size:clamp(12px,1vw,19px);padding:4px}
.game-dialog .showdown-result>strong{grid-column:1;grid-row:2;font-size:clamp(19px,1.7vw,32px);line-height:1.15}
.game-dialog .showdown-result .showdown-winning-cards{grid-column:2;grid-row:1/3;display:flex}
.game-dialog .showdown-result .showdown-payout{grid-column:3;grid-row:1/3;font-size:clamp(12px,.95vw,18px);line-height:1.25}
.game-dialog .showdown-result .playing-card{width:clamp(35px,3.3vw,65px)!important;height:clamp(50px,8.3vh,90px)!important;margin-left:0!important;font-size:26px!important}
.game-dialog .showdown-result .playing-card strong{font-size:26px!important}
.game-dialog .showdown-result .playing-card em{font-size:14px!important}
.game-dialog .showdown-board-cards[hidden],.game-dialog .showdown-result>small[hidden]{display:none!important}
.game-action-dock{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;flex:0 0 auto;position:relative;z-index:100;min-height:64px;margin-top:7px;padding:9px 12px;border:2px solid #d7ab40;border-radius:10px;background:#071b29;box-shadow:0 -3px 14px #0005}
.game-action-dock[hidden]{display:none}
.game-dialog .game-action-dock .turn-prompt-actions,.game-dialog .game-action-dock .turn-prompt-wager,.game-dialog .game-action-dock .table-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;min-height:0!important;border:0;background:none;position:static}
.game-dialog .game-action-dock button{min-height:48px!important;min-width:85px!important;padding:9px 15px!important;font-size:clamp(16px,1.15vw,23px)!important;line-height:1.2;white-space:normal}
.game-dialog .game-action-dock .next-hand-button{min-width:160px!important}
.game-dialog .game-action-dock .turn-prompt-wager span{font-size:13px}
.game-dialog .game-action-dock .betting-input{width:130px;min-height:44px;padding:6px 10px;font-size:21px}
.game-dialog .game-action-dock .table-inline-actions{width:auto;margin:0;flex:1 1 auto}
.game-dialog .game-action-dock .betting-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:0;border:0;background:none}
.game-action-dock .betting-panel-heading,.game-action-dock .betting-turn-summary,.game-action-dock .betting-stats,.game-action-dock .betting-help,.game-action-dock .betting-note,.game-action-dock .betting-log,.game-action-dock .betting-seated,.game-action-dock .room-control-hint,.game-action-dock .machine-paytable-wrap{display:none!important}
@media(max-height:800px){.game-dialog .game-room-started .opponent-seat{height:clamp(70px,12vh,110px)!important}.game-dialog .table-action-panels,.game-dialog .turn-prompt,.game-dialog .opponent-comment{max-height:95px}.game-dialog .turn-prompt img,.game-dialog .opponent-comment>img{height:70px!important;width:55px!important;flex-basis:55px!important}.game-dialog .turn-prompt-copy>span,.game-dialog .opponent-comment-copy p{font-size:17px}.game-dialog .table-card-zone .table-betting-chip{max-height:25vh}.game-dialog .game-action-dock button{min-height:44px!important;padding:7px 11px!important;font-size:17px!important}}
@media(max-width:650px){.game-dialog .table-card-zone{grid-template-columns:minmax(62px,1fr) minmax(150px,2.3fr) minmax(62px,1fr)!important;gap:4px}.game-dialog .table-card-zone .room-card-row{grid-column:2!important;grid-row:1!important;gap:5px}.game-dialog .table-card-zone>.table-betting-chip:last-child{grid-column:3!important;grid-row:1!important}.game-dialog .table-card-zone .table-betting-chip{min-width:0;width:100%;height:auto;max-height:100%;border-width:4px}.game-dialog .table-card-zone .table-betting-chip::before{inset:8px}.game-dialog .table-card-zone .table-betting-chip span{font-size:8px}.game-dialog .table-card-zone .table-betting-chip strong{font-size:22px}.game-dialog .table-card-zone .table-betting-chip small{font-size:8px}.game-dialog .table-card-zone .room-card-row .playing-card,.game-dialog .table-card-zone .room-card-row .card-back{width:27px!important;height:41px!important}.game-dialog .table-card-zone .room-card-row .playing-card strong{font-size:16px}.game-dialog .table-card-zone .room-card-row .playing-card em{font-size:10px}.game-dialog .game-action-dock button{min-height:42px!important;min-width:62px!important;padding:7px 8px!important;font-size:15px!important}.game-dialog .game-action-dock{gap:6px;padding:7px}.game-dialog .table-action-panels .opponent-comment{display:none}.game-dialog .showdown-result{gap:4px;padding:5px!important}.game-dialog .showdown-result .showdown-payout{font-size:10px}.game-dialog .showdown-result>strong{font-size:17px}.game-dialog .showdown-result .showdown-winning-label{font-size:10px}}

.game-dialog .opponent-comment{position:relative}.game-dialog .opponent-comment-kicker{display:none}.game-dialog .opponent-comment-copy{padding-right:70px}.game-dialog .opponent-comment .comment-profile-button{position:absolute;top:7px;right:35px;min-height:24px;padding:3px 7px;font-size:11px;line-height:1.1}

.player-chip-avatar{display:inline-flex;vertical-align:middle;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;overflow:hidden;border:4px dashed #fff1bc;border-radius:50%;background:#083d75;box-shadow:0 0 0 2px #dbac42,inset 0 0 0 2px #dbac42;color:#fff;font-size:7px;font-weight:800;letter-spacing:0;line-height:1;text-align:center}.player-chip-avatar .player-chip-name{max-width:100%;overflow:hidden;overflow-wrap:anywhere;max-height:20px}.player-chip-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.stud-player-heading .player-chip-avatar{width:28px;height:28px;font-size:6px}.game-dialog .table-rail{align-items:center}

.player-chip-avatar{position:relative;flex-direction:column;width:44px;height:44px;font-size:7px;gap:1px}.player-chip-avatar .player-chip-name{display:block;max-height:15px;line-height:1;overflow:hidden}.player-chip-avatar .player-chip-total{position:relative;z-index:1;color:#fff4bc;font-size:8px;line-height:1;letter-spacing:0;white-space:nowrap}.player-chip-avatar.has-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.player-chip-avatar.has-photo .player-chip-total{margin-top:auto;background:#061a35dd;border-radius:5px;padding:1px 2px}.stud-player-heading .player-chip-avatar{width:40px;height:40px;font-size:6px}
