/* Immersive table client. Route-scoped; lobby and account pages retain their layout. */
body.game-room{height:100dvh;overflow:hidden;background:var(--bg);overscroll-behavior:none}
.game-room .app-shell{height:100dvh;min-height:0}
.mobile-room .sidebar,.game-room .topbar,.game-room .mobile-header,.game-room .mobile-nav{display:none!important}
.game-room .workspace{height:100%;min-height:0;display:block}
.mobile-room .workspace{width:100%;margin:0}
body.game-room:not(.mobile-room) .sidebar{display:flex!important}
.game-room main.in-table{width:100%;height:100%;max-width:none;margin:0;padding:0;overflow:hidden}
.game-room .game-table-layout{height:100%;min-height:0;background:radial-gradient(ellipse at 50% 42%,#242b2c55,transparent 72%),#101416}
.game-room .game-scene{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 88px;height:100%;max-width:1600px;margin:auto;padding:env(safe-area-inset-top) max(24px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));gap:0}
.game-room .game-board{grid-area:1/1;display:flex;flex-direction:column;min-height:0;border:0;border-radius:0;overflow:visible;background:transparent!important;box-shadow:none}
.game-room .table-topline{height:66px;min-height:66px;padding:8px 6px;gap:22px;flex:none;border:0}
.game-room .game-brand{display:flex;align-items:center;gap:10px;flex:none;font:650 19px Outfit,sans-serif;letter-spacing:-.3px;color:var(--cream)}
.game-room .game-brand img{width:36px;height:36px}
.game-room .game-brand b{color:var(--brass);font-weight:650}
.game-room .game-room-meta{display:flex;flex-wrap:wrap;align-content:center;gap:3px 8px;min-width:0;margin-right:auto;border-left:1px solid #39414980;padding-left:22px}
.game-room .game-type{font-size:15px;font-weight:600;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-room #table-blinds{flex-basis:100%;font-size:12px;color:var(--muted)}
.game-room .topline-divider,.game-room .sound-label{display:none}
.game-room .live-badge{font-size:8px;padding:3px 5px;align-self:center}
.game-room .table-utilities{gap:6px;flex:none}
.game-room .desktop-table-layout .table-switch-button{display:none}
.game-room .table-utilities .icon-button{width:40px;min-width:40px;height:40px;min-height:40px;padding:9px;color:var(--muted);border-radius:10px}
.game-room .table-utilities .icon-button svg{width:21px;height:21px}
.game-room .table-utilities .table-sound-button{width:40px;min-width:40px;padding:9px}
.game-room .poker-stage{position:relative;flex:1;min-height:0;height:auto;width:100%;max-width:1200px;margin:0 auto;container-type:size;--room-card-width:clamp(40px,5.5cqw,64px);--room-card-height:clamp(58px,8cqw,92px)}
.game-room .poker-table{top:16%;bottom:12%;left:8%;right:8%;height:auto;border:8px solid #554630;border-radius:50% / 46%;box-shadow:0 0 0 1px #7d6949,inset 0 0 0 2px #a68a4c40,inset 0 0 40px #0d211c80,0 7px 0 #24261e,0 12px 18px #0008}
.game-room .felt-line{inset:11px;border-radius:50% / 46%;border-color:#98aa6b24}
.game-room .table-shadow{top:22%;left:10%;right:10%;height:67%;border-radius:50%;filter:blur(20px)}
.game-room .felt-brand{top:64%;font-size:20px;letter-spacing:2px;opacity:.6;display:flex;justify-content:center;align-items:center;gap:5px}
.game-room .felt-brand img{width:25px;height:25px}
.game-room .felt-caption{display:none}
.game-room .seat{--seat-nameplate-radius:14px;width:176px;max-width:23%;height:auto;min-height:56px;z-index:4;text-align:center;isolation:isolate}
/* Each seat owns its backdrop, cards, and nameplate in that paint order. */
.game-room .seat:not(.empty-seat){display:grid;grid-template-columns:minmax(0,1fr)}
.game-room .seat>.seat-info,.game-room .seat>.seat-glow{grid-area:1 / 1 / 2 / 2}
.game-room .seat-glow{position:absolute;inset:0;z-index:0;border-radius:var(--seat-nameplate-radius);pointer-events:none}
.game-room .seat.is-current>.seat-glow{box-shadow:0 0 18px #d3ad6066,0 0 34px #d3ad603b}
.game-room .seat.is-current>.seat-glow::after{content:"";position:absolute;inset:0;border-radius:inherit;animation:active-seat-halo 1.8s ease-in-out infinite}
.game-room .seat.is-winner>.seat-glow{box-shadow:0 0 24px #efcf83b3,0 0 50px #d3ad6073}
.game-room .seat:is(.is-current,.is-winner)>.seat-info{box-shadow:inset 0 1px 0 #d1d0c922,0 4px 8px #0006!important}
.game-room .seat:is(.is-current,.is-winner)>.avatar{box-shadow:0 0 0 3px #121a1b,0 3px 8px #0007!important}
.game-room .seat.is-current>.seat-info::after{content:none}
@media(prefers-reduced-motion:reduce){.game-room .seat.is-current>.seat-glow::after{animation:none;opacity:.65}}
.game-room .seat-top{top:12%;left:50%}
.game-room .seat-left-top{top:30%;left:12%}
.game-room .seat-right-top{top:30%;left:88%}
.game-room .seat-left-bottom{top:68%;left:12%}
.game-room .seat-right-bottom{top:68%;left:88%}
.game-room .seat-hero{top:auto;bottom:7%;left:50%;width:192px;max-width:28%}
.game-room .seat .avatar{position:absolute;left:-16px;top:-7px;width:62px;height:62px;margin:0;border:2px solid #807354;background:#252b31;box-shadow:0 2px 7px #0007;z-index:5;padding:2px}
.game-room .seat .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.game-room .seat .avatar>span:not(.avatar-level-badge):not(.seat-blind):not(.seat-dealer):not(.avatar-countdown){font-size:38px;line-height:1}
.game-room .seat .seat-info{position:relative;min-height:56px;padding:8px 8px 8px 44px;border:1px solid #6d6142;border-radius:var(--seat-nameplate-radius);background:linear-gradient(155deg,#252b2e,#191e21 75%);box-shadow:0 3px 9px #0005;z-index:3;overflow:visible}
.game-room .seat .seat-info>strong{font-size:13px;line-height:1.35;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cream)}
.game-room .seat .seat-info>.seat-stack-row{font-size:15px;line-height:1.4;margin-top:1px;color:#cfb779}
.game-room .seat .avatar-countdown{font:700 24px/1 Outfit,sans-serif!important;color:var(--cream);letter-spacing:-.5px}
.game-room .seat .avatar.has-avatar-level>.avatar-level-badge{top:auto;right:-2px;bottom:-4px;font:700 10px/1 'DM Sans',sans-serif;min-width:19px;height:16px}
.game-room .seat .avatar>.seat-dealer{top:-4px;bottom:auto;right:-6px;z-index:4}
/* Anchor blinds to the lower-left rim for both the avatar and turn timer. */
.game-room .seat .avatar>.seat-blind{left:auto;right:90%;top:auto;bottom:-5px;transform:none}
.game-room .seat.is-current>.avatar.has-avatar-level>.avatar-level-badge{left:auto;right:-2px;bottom:-4px}
.game-room .seat-time-track{bottom:0;left:42px;right:9px;width:auto;height:3px;overflow:hidden;border-radius:3px}
.game-room .seat-time-fill{height:100%}
.game-room .seat>.seat-action-badge{z-index:7;pointer-events:none}
.game-room .seat-hole-backs{position:absolute;display:flex;gap:2px;bottom:calc(100% - 3px);left:53%;transform:translateX(-50%);z-index:1;pointer-events:none}
.game-room .seat-hole-backs i{width:24px;height:32px;display:block;border:1px solid #9b8c68;border-radius:3px;background:repeating-linear-gradient(45deg,#293e32 0 2px,#354b3b 2px 4px);box-shadow:inset 0 0 0 2px #202a25}
.game-room .seat-hole-backs i:first-child{transform:rotate(-7deg)}
.game-room .seat-hole-backs i:last-child{transform:rotate(7deg)}
.game-room .empty-seat{min-height:0}
.game-room .empty-seat-circle{width:48px;height:48px;margin:0 auto;background:#1b2024;border:1px solid #74623f;border-radius:50%;color:#c5b58f;box-shadow:inset 0 1px 0 #ffffff18,0 3px 6px #0003;transition:background .15s,border-color .15s,transform .15s}
.game-room .empty-seat-circle:hover:not(:disabled){background:#222c31;border-color:#b69b61;transform:translateY(-2px)}
.game-room .empty-seat-circle:active:not(:disabled){transform:translateY(0)}
.game-room .empty-seat{opacity:1}
@media(prefers-reduced-motion:reduce){.game-room .empty-seat-circle{transition:none}.game-room .empty-seat-circle:hover:not(:disabled){transform:none}}
.game-room .empty-seat-circle svg{width:44%;height:44%;flex-shrink:0}
.game-room .pot{top:32%;left:0;right:0;line-height:1.1}
.game-room .pot>span{font-size:9px;letter-spacing:1.4px;color:#b1c2b2}
.game-room .pot strong{font:600 23px/1.3 Outfit,sans-serif;margin:4px auto 0;padding:3px 15px;display:table;background:#173527bd;border:1px solid #91835d70;border-radius:20px;color:#d1d0c9}
.game-room .pot-coin{font-size:inherit;color:#c7ae74}
.game-room .community-cards{top:44%;gap:7px;left:50%;transform:translateX(-50%)}
.game-room .card{width:var(--room-card-width);height:var(--room-card-height);border-radius:6px;box-shadow:0 2px 0 #b8bcac,0 4px 7px #0c1f1859}
.game-room .card .card-corner{font-size:clamp(23px,3cqw,32px);left:6px;top:5px;line-height:1}
.game-room .card .card-corner small{display:none}
.game-room .card .card-suit{font-size:clamp(30px,4cqw,43px);left:56%;top:66%}
.game-room .community-cards .card-back{opacity:.16;box-shadow:none}
.game-room .hand-status{top:calc(44% + var(--room-card-height) + 12px);font-size:8px;letter-spacing:1.1px;color:#acc1af}
/* Hero cards share their seat's layers, with their lower edge tucked under
   the nameplate. The glow remains behind both cards and player controls. */
.game-room .hero-cards{top:auto;bottom:calc(7% + 48px);gap:5px;z-index:2}
.game-room .in-table .seat-hero>.hero-cards{top:auto;bottom:calc(100% - 7px);pointer-events:none}
.game-room .hero-cards .card{width:57px;height:80px}
.game-room .hero-cards .card:first-child{transform:rotate(-5deg)}
.game-room .hero-cards .card:last-child{transform:rotate(5deg)}
.game-room .hero-cards .card .card-corner{font-size:28px}
.game-room .hero-cards .card .card-suit{font-size:35px;left:58%;top:66%}
.game-room .seat .hero-hand-description{top:calc(100% + 7px);bottom:auto;font-size:11px;color:var(--cream)}
.game-room .in-table .seat.has-revealed-cards>.avatar{visibility:visible}
.game-room .in-table .seat .revealed-hole{top:auto;bottom:calc(100% - 2px);left:55%;gap:3px;z-index:2}
.game-room .in-table .seat .revealed-hole .card{width:42px;height:58px;transform:none;margin:0}
.game-room .in-table .seat .revealed-hole .card-corner{font-size:23px}
.game-room .in-table .seat .revealed-hole .card-suit{font-size:28px}
.game-room .in-table .seat-hero.has-revealed-cards>.seat-info{padding-left:44px}
.game-room .seat-award{top:calc(100% + 4px);font-size:11px;padding:3px 8px;max-width:180px;white-space:normal;width:max-content}
.game-room .winner-hand-description{font-size:10px;margin-top:2px}
.game-room .table-corner-label{bottom:1%;left:12px;font-size:10px;color:#87978d}
.game-room .new-hand-button{bottom:0;right:12px;font-size:12px;min-height:32px}
.game-room .felt-wager{gap:3px}
.game-room .felt-wager-amount{background:#13271e65;font-size:12px;padding:2px 5px}
/* A stable dock: action changes never resize the felt. */
.game-room .game-control-dock{grid-area:2/1;align-self:stretch;width:min(620px,calc(100% - 300px));justify-self:center;overflow:auto;min-height:0;scrollbar-width:thin;overscroll-behavior:contain}
.game-room .action-panel{height:100%;min-height:0;margin:0;padding:14px 0 8px;border:0;border-radius:0;box-shadow:none;background:transparent}
.game-room .action-panel .action-top{display:none}
.game-room .bet-controls{height:100%;display:flex;align-items:center;justify-content:center;gap:0}
.game-room .action-panel .action-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 46px;gap:9px;align-items:stretch;flex:1}
.game-room .action-panel .action-buttons>button{height:54px;min-height:54px;padding:6px 10px;font:600 17px/1.15 Outfit,sans-serif;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff0a,0 3px 6px #0003}
.game-room .action-panel .action-buttons>button>span{font-size:12px;margin-top:3px;line-height:1.1}
.game-room .action-panel .fold-button>span,.game-room .action-panel .call-button[data-action=check]>span,.game-room .action-panel .raise-button svg{display:none}
.game-room .action-panel .action-buttons>.mobile-bet-size{display:grid;place-items:center;width:46px;padding:10px;background:var(--surface-raised);color:var(--cream);border:1px solid var(--line)}
.game-room .game-tools{position:absolute;left:30px;right:30px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;gap:8px;pointer-events:none;height:44px}
.game-room .game-tools>button{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:44px;min-height:44px;padding:10px;border:1px solid #655b415e;background:#1b2024;border-radius:12px;color:var(--muted);font-size:11px}
.game-room .game-tools>button:last-child{margin-left:auto}
.game-room .game-tools svg{width:19px;height:19px}
.game-room .game-tools>button span{display:none}
.game-room .pre-actions{height:100%;min-height:0;padding:6px 0;display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:nowrap}
.game-room .pre-actions>span{display:none}
.game-room .pre-actions button{flex:1;min-height:48px;font-size:13px;padding:8px}
.game-room .join-strip{height:100%;display:flex;align-items:center;justify-content:center;margin:0}
.game-room .join-strip>p{display:none}
.game-room .join-strip .primary-button{width:auto;min-width:180px;min-height:48px;margin:0;justify-content:center}
.game-room .waiting-hand-notice{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:0}
.game-room .waiting-hand-notice p{margin:3px 0}
/* Native dialogs provide keyboard trapping and Escape dismissal on both clients. */
.game-room .mobile-table-sheet{width:380px;max-width:calc(100% - 24px);max-height:calc(100dvh - 40px);margin:auto 20px 20px auto;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:18px;box-shadow:0 15px 50px #0007}
.game-room .mobile-table-social .social-column{display:block;margin:0}
.game-room .mobile-table-social .chat-messages{height:min(45dvh,360px)}
.game-room .mobile-table-social #history-panel{max-height:55dvh;overflow:auto}
.game-room .mobile-table-social .chat-form input{min-width:0;font-size:16px}
.game-room .mobile-table-options>.secondary-button{width:100%;margin-top:10px}
.game-room .mobile-bet-sheet{width:360px;max-width:calc(100% - 24px);max-height:80dvh;margin:auto auto 94px;padding:20px;box-sizing:border-box;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--cream);box-shadow:0 15px 50px #0008;overflow:auto}
.game-room .mobile-bet-sheet::backdrop{background:#080b105c}
.game-room .mobile-bet-sheet .raise-controls{width:100%;min-width:0;display:grid;grid-template-columns:1fr;grid-template-rows:auto 44px 44px;gap:12px}
.game-room .mobile-bet-sheet .raise-input{grid-area:1/1;font-size:14px}
.game-room .mobile-bet-sheet .raise-input strong{font-size:22px}
.game-room .mobile-bet-sheet input[type=range]{grid-area:2/1;width:100%;height:20px;align-self:center;margin:0}
.game-room .mobile-bet-sheet .bet-presets{grid-area:3/1;display:flex;gap:8px}
.game-room .mobile-bet-sheet .bet-presets button{font-size:13px;min-height:44px}
.game-room .mobile-bet-sheet>.primary-button{width:100%;justify-content:center;margin-top:16px;min-height:44px}
.game-room .connection-banner{bottom:100px}
.game-room .in-table .plo-stage .hero-cards{gap:5px}
.game-room .in-table .plo-stage .hero-cards .card{width:46px;height:68px}
.game-room .in-table .plo-stage .seat .revealed-hole .card{width:32px;height:48px}
.game-room .in-table .plo-stage .seat .revealed-hole .card-corner{font-size:19px}
.game-room .in-table .plo-stage .seat .revealed-hole .card-suit{font-size:23px}
@media(max-width:700px) and (orientation:portrait){
 .game-room .game-scene{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 70px 40px;padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .game-room .table-topline{height:52px;min-height:52px;gap:8px;padding:4px 0}
 .game-room .game-brand{display:none}
 .game-room .game-room-meta{border:0;padding-left:4px;gap:2px 6px}
 .game-room .game-type{font-size:12px;max-width:160px}
 .game-room #table-blinds{font-size:10px}
 .game-room .live-badge{font-size:6px}
 .game-room .table-utilities{gap:0}
 .game-room .table-utilities .icon-button,.game-room .table-utilities .table-sound-button{width:34px;min-width:34px;height:40px;min-height:40px;padding:8px}
 .game-room .table-utilities .icon-button svg{width:18px;height:18px}
 .game-room .poker-stage{--room-card-width:clamp(32px,10cqw,44px);--room-card-height:clamp(47px,14.5cqw,64px)}
 .game-room .poker-table{left:8%;right:8%;top:10%;bottom:10%;border-width:5px;border-radius:48% / 25%}
 .game-room .felt-line{inset:8px;border-radius:48% / 25%}
 .game-room .table-shadow{top:13%;height:77%}
 .game-room .seat{width:96px;max-width:27%;min-height:42px}
 .game-room .seat-top{top:12%;left:50%}
 .game-room .seat-left-top{top:31%;left:14%}
 .game-room .seat-right-top{top:31%;left:86%}
 .game-room .seat-left-bottom{top:69%;left:14%}
 .game-room .seat-right-bottom{top:69%;left:86%}
 .game-room .seat-hero{top:auto;bottom:6%;left:50%;width:148px;max-width:44%}
 .game-room .seat .avatar{width:38px;height:38px;left:calc(50% - 19px);top:-31px;border-width:1.5px}
 .game-room .seat .avatar>span:not(.avatar-level-badge):not(.seat-blind):not(.seat-dealer):not(.avatar-countdown){font-size:26px}
 .game-room .seat{--seat-nameplate-radius:9px}
 .game-room .seat .seat-info{padding:8px 4px 5px;min-height:42px}
 .game-room .seat .seat-info>strong{font-size:10px;line-height:1.3}
 .game-room .seat .seat-info>.seat-stack-row{font-size:12px;line-height:1.3}
 .game-room .seat-hero .avatar{left:-8px;top:-4px;width:46px;height:46px}
 .game-room .seat-hero .seat-info,.game-room .in-table .seat-hero.has-revealed-cards>.seat-info{padding-left:38px}
 .game-room .seat-hero .seat-info>strong{font-size:12px}
 .game-room .seat-hero .seat-info>.seat-stack-row{font-size:14px}
 .game-room .seat .avatar-countdown{font-size:19px!important}
 .game-room .seat .avatar.has-avatar-level>.avatar-level-badge{font-size:10px;min-width:16px;height:14px;right:-3px;bottom:-3px}
 .game-room .seat .avatar>.seat-dealer{width:14px;height:14px;top:-5px;right:-5px}
 .game-room .seat-time-track{left:5px;right:5px;height:3px}
 .game-room .seat-hero .seat-time-track{left:38px}
 .game-room .seat-hole-backs{left:auto;right:0;bottom:calc(100% + 3px);transform:none;gap:1px}
 .game-room .seat-hole-backs i{width:14px;height:21px}
 .game-room .empty-seat-circle{width:36px;height:36px}
 .game-room .pot{top:36%}
 .game-room .pot>span{font-size:7px}
 .game-room .pot strong{font-size:20px;margin-top:3px;padding:2px 12px}
 .game-room .community-cards{top:47%;gap:4px}
 .game-room .card .card-corner{font-size:24px;left:4px;top:4px}
 .game-room .card .card-suit{font-size:29px}
 .game-room .hand-status{top:calc(47% + var(--room-card-height) + 9px);font-size:7px}
 .game-room .felt-brand{top:60%;font-size:12px;letter-spacing:1px;opacity:.5}
 .game-room .felt-brand img{width:18px;height:18px}
 .game-room .hero-cards{bottom:calc(6% + 41px);gap:4px}
 .game-room .hero-cards .card{width:43px;height:60px}
 .game-room .hero-cards .card .card-corner{font-size:25px}
 .game-room .hero-cards .card .card-suit{font-size:29px}
 .game-room .seat .hero-hand-description{font-size:10px;top:calc(100% + 5px)}
 .game-room .in-table .seat .revealed-hole{left:50%;bottom:calc(100% + 4px);gap:2px}
 .game-room .in-table .seat.has-revealed-cards>.avatar{visibility:hidden}
 .game-room .in-table .seat .revealed-hole .card{width:31px;height:43px}
 .game-room .in-table .seat .revealed-hole .card-corner{font-size:18px}
 .game-room .in-table .seat .revealed-hole .card-suit{font-size:22px}
 .game-room .in-table .plo-stage .hero-cards .card{width:34px;height:51px}
 .game-room .in-table .plo-stage .hero-cards .card-corner{font-size:21px}
 .game-room .in-table .plo-stage .hero-cards .card-suit{font-size:24px}
 .game-room .in-table .plo-stage .seat .revealed-hole .card{width:22px;height:34px}
 .game-room .in-table .plo-stage .seat .revealed-hole .card-corner{font-size:15px}
 .game-room .in-table .plo-stage .seat .revealed-hole .card-suit{font-size:17px}
 .game-room .seat-award{font-size:10px;max-width:140px}
 .game-room .winner-hand-description{font-size:9px}
 .game-room .table-corner-label{bottom:0;font-size:8px;left:0}
 .game-room .felt-wager-amount{font-size:11px}
 .game-room .felt-wager-2,.game-room .felt-wager-4{top:34%}
 .game-room .felt-wager-1,.game-room .felt-wager-5{top:72%}
 .game-room .game-control-dock{grid-area:2/1;width:100%;overflow:auto}
 .game-room .action-panel{padding:8px 0}
 .game-room .bet-controls{flex-direction:row;justify-content:center}
 .game-room .action-panel .action-buttons{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:6px;flex:1}
 .game-room .action-panel .action-buttons>button{height:50px;min-height:50px;font-size:16px;padding:5px 4px}
 .game-room .action-panel .action-buttons>.mobile-bet-size{width:44px}
 .game-room .action-panel .action-buttons>button>span{font-size:11px}
 .game-room .game-tools{position:static;grid-area:3/1;height:38px;pointer-events:auto;gap:8px;align-self:center}
 .game-room .game-tools>button{height:36px;min-height:36px;border:0;background:transparent;padding:5px 8px;gap:6px;font-size:10px}
 .game-room .game-tools>button span{display:inline}
 .game-room .game-tools svg{width:16px;height:16px}
 .game-room .pre-actions{display:flex;height:100%;padding:0;gap:6px}
 .game-room .pre-actions button{min-height:46px;font-size:11px;padding:6px 4px}
 .game-room .join-strip .primary-button{width:100%;min-height:48px}
 .game-room .mobile-table-sheet{width:calc(100% - 16px);max-width:480px;max-height:80dvh;margin:auto auto max(8px,env(safe-area-inset-bottom));padding:16px}
 .game-room .mobile-bet-sheet{width:calc(100% - 16px);max-width:440px;margin:auto auto max(8px,env(safe-area-inset-bottom));padding:18px}
}
@media(min-width:701px) and (max-width:1000px){
 .game-room .game-brand span{display:none}
 .game-room .seat{width:142px}
 .game-room .seat .avatar{width:48px;height:48px;left:-8px;top:0}
 .game-room .seat .seat-info{padding-left:40px}
 .game-room .seat .seat-info>strong{font-size:11px}
 .game-room .game-control-dock{width:min(560px,calc(100% - 220px))}
}
@media(max-height:600px){
 .game-room .table-topline{height:46px;min-height:46px}
 .game-room .poker-stage{--room-card-width:35px;--room-card-height:50px}
 .game-room .hero-cards .card{width:35px;height:50px}
 .game-room .hero-cards .card .card-corner,.game-room .card .card-corner{font-size:22px}
 .game-room .hero-cards .card .card-suit,.game-room .card .card-suit{font-size:25px}
 .game-room .seat .avatar{width:34px;height:34px}
 .game-room .seat .seat-info{min-height:39px;padding-top:4px;padding-bottom:4px}
 .game-room .seat .seat-info>strong{font-size:10px}
 .game-room .seat .seat-info>.seat-stack-row{font-size:12px}
 .game-room .seat{min-height:39px}
 .game-room .pot{top:31%}
 .game-room .pot strong{font-size:18px}
 .game-room .hero-cards{bottom:calc(7% + 36px)}
 .game-room .game-scene{grid-template-rows:minmax(0,1fr) 64px}
 .game-room .game-tools{bottom:14px}
 .game-room .hand-status{font-size:7px}
}
/* Keep wager chips clear of the lower seats' hidden cards. */
@media(max-width:700px) and (orientation:portrait){
 .game-room .felt-wager-1{left:27%;top:65%}
 .game-room .felt-wager-5{left:73%;top:65%}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:600px){
 .game-room .game-scene{grid-template-rows:minmax(0,1fr) 62px 36px}
 .game-room .seat .avatar{left:calc(50% - 17px);top:-27px}
 .game-room .seat-hero .avatar{left:-4px;top:0}
 .game-room .in-table .plo-stage .hero-cards .card{width:30px;height:44px}
}
.game-room .tournament-wait-card.is-eliminated{max-height:100%;overflow:auto;overscroll-behavior:contain}
@media(max-width:700px) and (orientation:portrait){
 .game-room .felt-wager-2{left:28%;top:42%}
 .game-room .felt-wager-4{left:72%;top:42%}
 .game-room .felt-wager-1{left:35%;top:72%}
 .game-room .felt-wager-5{left:65%;top:72%}
 .game-room .felt-wager-0{left:78%;top:90%}
 /* Explicit geometry beats the legacy short-container layout. */
 .game-room .poker-stage .seat-top{top:12%}
 .game-room .poker-stage .seat-left-top,.game-room .poker-stage .seat-right-top{top:31%}
 .game-room .poker-stage .seat-left-bottom,.game-room .poker-stage .seat-right-bottom{top:69%}
 .game-room .poker-stage .seat-hero{bottom:6%;top:auto}
 .game-room .poker-stage .hero-cards{bottom:calc(6% + 41px)}
 .game-room .poker-stage .community-cards{top:47%}
 .game-room .poker-stage .community-cards .card{width:var(--room-card-width);height:var(--room-card-height)}
 .game-room .poker-stage .hand-status{top:calc(47% + var(--room-card-height) + 9px)}
}
/* Game skin: material depth from the concept, using the existing lounge colors. */
.game-room .game-table-layout{background:radial-gradient(ellipse at 50% 40%,#20292a 0%,#141a1d 55%,#0e1214 100%)}
.game-room .poker-table{
 background:radial-gradient(ellipse at 48% 38%,#28503d 0%,#1e432f 54%,#153425 100%);
 border:9px solid #514630;
 box-shadow:0 0 0 2px #a48b58,0 0 0 5px #373527,inset 0 0 0 2px #b29b624d,inset 0 0 55px #05190fb3,0 6px 0 5px #292b23,0 11px 0 5px #171e18,0 20px 28px #0008;
}
.game-room .poker-table::before{opacity:.13}
.game-room .felt-line{inset:10px;border-color:#a1b78924}
.game-room .felt-brand{opacity:.75;color:#a3b99835}
.game-room .seat{--seat-nameplate-radius:15px 24px 24px 15px}
.game-room .seat .seat-info{
 border-color:#84734e;
 background:linear-gradient(170deg,#363a38 0%,#222829 35%,#151b1e 100%);
 box-shadow:inset 0 1px 0 #d1d0c922,0 4px 8px #0006;
}
.game-room .seat .avatar{border-color:#c2a56c;background:radial-gradient(circle at 35% 20%,#444b46,#20292b 80%);box-shadow:0 0 0 3px #121a1b,0 3px 8px #0007}
.game-room .seat.is-current .seat-info{background:linear-gradient(160deg,#413d2c,#282a22 70%)}
.game-room .action-panel .action-buttons>button{
 border-radius:11px;border:1px solid #767d77;
 box-shadow:inset 0 2px 0 #e0e0d42b,inset 0 -2px 0 #060b0d66,0 3px 8px #0006;
 font-weight:550;transition:filter .15s,box-shadow .15s,transform .15s;
}
.game-room .action-panel .action-buttons>button:hover:not(:disabled){filter:brightness(1.1)}
.game-room .action-panel .action-buttons>button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 5px #0005}
.game-room .action-panel .fold-button{background:linear-gradient(180deg,#41464a 0%,#30363b 38%,#22282c 100%);color:var(--cream);border-color:#62686b}
.game-room .action-panel .call-button{background:linear-gradient(180deg,#52694a 0%,#3b553b 42%,#2b432f 100%);color:#d0dcc5;border-color:#78856b}
.game-room .action-panel .raise-button{background:linear-gradient(180deg,#c1a16b 0%,#a78a57 38%,#79623d 100%);color:#f0e5cb;border-color:#cbb580}
.game-room .action-panel .action-buttons>.mobile-bet-size{background:linear-gradient(180deg,#3a4145,#22282c);border-color:#62686b;color:#c8bd9d}
.game-room .action-panel .action-buttons>button>span{opacity:.9;color:inherit}
.game-room .game-tools>button{border-radius:50%;border-color:#74623f;background:#1b2024;color:#c5b58f;box-shadow:inset 0 1px 0 #ffffff18,0 3px 6px #0003}
.game-room .game-tools>button:hover:not(:disabled),
.game-room .game-tools>button:active:not(:disabled){background:#222c31}
.game-room .pot strong{background:linear-gradient(180deg,#2f4633,#142e22);border-color:#a38b59;box-shadow:inset 0 1px 0 #e6d5aa20,0 2px 4px #0004}
.game-room .seat .seat-info>strong{font-size:14px}
.game-room .seat .seat-info>.seat-stack-row{font-size:16px}
@media(max-width:700px) and (orientation:portrait){
 .game-room .poker-table{left:7%;right:7%;border-width:5px;border-radius:48% / 39%;box-shadow:0 0 0 1px #a48b58,0 0 0 3px #373527,inset 0 0 0 1px #b29b6255,inset 0 0 38px #05190f99,0 4px 0 3px #292b23,0 7px 0 3px #171e18,0 10px 18px #0008}
 .game-room .felt-line{border-radius:48% / 39%;inset:7px}
 .game-room .seat{--seat-nameplate-radius:10px 17px 17px 10px}
 .game-room .seat .seat-info{padding-left:26px;min-height:44px;padding-top:7px}
 .game-room .seat .avatar{left:-3px;top:-10px;width:36px;height:36px}
 .game-room .seat .seat-info>strong{font-size:10px}
 .game-room .seat .seat-info>.seat-stack-row{font-size:12px}
 .game-room .seat-hero .seat-info{padding-left:39px}
 .game-room .seat-hero .avatar{width:46px;height:46px;left:-8px;top:-4px}
 .game-room .seat-hero .seat-info>strong{font-size:12px}
 .game-room .seat-hero .seat-info>.seat-stack-row{font-size:14px}
 .game-room .seat-hole-backs{right:8px;bottom:calc(100% + 2px)}
 .game-room .seat.has-revealed-cards .seat-info{padding-left:4px}
 .game-room .game-tools>button{border:0;box-shadow:none;background:transparent;border-radius:8px;color:var(--muted)}
 .game-room .game-tools>button:last-child{border:1px solid #74623f60;border-radius:50%;background:#1b2024}
 .game-room .game-tools>button:last-child span{display:none}
}
@media(min-width:1001px){
 .game-room .poker-stage{max-width:1320px;--room-card-width:72px;--room-card-height:102px}
 .game-room .poker-table{left:6%;right:6%;top:14%}
 .game-room .seat-top{top:10%}
 .game-room .seat-left-top,.game-room .seat-left-bottom{left:10%}
 .game-room .seat-right-top,.game-room .seat-right-bottom{left:90%}
 .game-room .seat{width:194px}
 .game-room .seat .avatar{width:72px;height:72px;left:-20px;top:-9px}
 .game-room .seat .seat-info{min-height:62px;padding-left:48px;padding-top:9px}
 .game-room .seat .seat-info>strong{font-size:15px}
 .game-room .seat .seat-info>.seat-stack-row{font-size:17px}
 .game-room .seat-hero{width:208px}
 .game-room .hero-cards{bottom:calc(7% + 55px)}
 .game-room .hero-cards .card{width:64px;height:90px}
 .game-room .card .card-corner{font-size:34px}
 .game-room .card .card-suit{font-size:44px}
 .game-room .hero-cards .card .card-corner{font-size:32px}
 .game-room .hero-cards .card .card-suit{font-size:40px}
 .game-room .action-panel .action-buttons>button{font-size:18px}
 .game-room .game-brand{font-size:21px}
 .game-room .game-type{font-size:16px}
}
/* Keep the range track slim without reducing its keyboard/touch target. */
.game-room .mobile-bet-sheet input[type=range]{height:32px;background:transparent}
.game-room .mobile-bet-sheet input[type=range]::-webkit-slider-runnable-track{height:4px;background:#4e5748;border-radius:4px}
.game-room .mobile-bet-sheet input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6px;background:var(--brass);border-color:#c9b782}
.game-room .mobile-bet-sheet input[type=range]::-moz-range-track{height:4px;background:#4e5748;border-radius:4px}
/* Landscape phones use a narrow action rail to preserve the table's height. */
@media(orientation:landscape) and (max-height:560px){
 .game-room .game-scene{grid-template-columns:minmax(0,1fr) 178px;grid-template-rows:minmax(0,1fr);gap:12px;padding-left:12px;padding-right:12px}
 .game-room .game-board{grid-area:1/1}
 .game-room .game-brand{display:none}
 .game-room .game-room-meta{border:0;padding-left:0}
 .game-room .table-topline{gap:5px;padding:0}
 .game-room .table-utilities{gap:0}
 .game-room .table-utilities .icon-button,.game-room .table-utilities .table-sound-button{min-width:32px;width:32px;padding:6px}
 .game-room .game-type{font-size:12px}
 .game-room #table-blinds{font-size:10px}
 .game-room .game-control-dock{grid-area:1/2;width:100%;align-self:center;max-height:calc(100% - 58px)}
 .game-room .action-panel{padding:0}
 .game-room .action-panel .action-buttons{grid-template-columns:1fr;gap:7px}
 .game-room .action-panel .action-buttons>button{height:46px;min-height:46px;font-size:15px}
 .game-room .action-panel .action-buttons>.mobile-bet-size{width:100%;height:38px;min-height:38px}
 .game-room .game-tools{left:auto;right:12px;bottom:12px;width:178px;height:36px;gap:8px}
 .game-room .game-tools>button{min-width:36px;min-height:36px;height:36px;padding:7px}
 .game-room .seat .seat-info{padding-left:30px;padding-top:4px;min-height:39px}
 .game-room .seat .seat-info>strong{font-size:10px}
 .game-room .seat .seat-info>.seat-stack-row{font-size:12px}
 .game-room .seat .avatar{width:34px;height:34px;left:-5px;top:0}
 .game-room .seat-hero{width:128px}
 .game-room .pre-actions{flex-direction:column}
 .game-room .pre-actions button{width:100%}
 .game-room .table-corner-label{font-size:8px}
}
@media(orientation:landscape) and (max-height:560px){
 .game-room .pot{top:29%}
 .game-room .pot>span{display:none}
}
/* The rail has its own lower shell; the felt is inset into a cushioned rim. */
.game-room .poker-stage{--table-left:8%;--table-top:16%;--table-bottom:12%;--table-radius:50% / 48%;--rail-width:15px;--rail-depth:12px}
.game-room .table-rail{position:absolute;left:var(--table-left);right:var(--table-left);top:var(--table-top);bottom:var(--table-bottom);border-radius:var(--table-radius);transform:translateY(var(--rail-depth));background:linear-gradient(180deg,#48473c,#32372f 50%,#141b18 90%);box-shadow:0 3px 0 #0b100d,0 12px 20px #0007;pointer-events:none}
.game-room .poker-table{left:var(--table-left);right:var(--table-left);top:var(--table-top);bottom:var(--table-bottom);height:auto;border:var(--rail-width) solid transparent;border-radius:var(--table-radius);background:radial-gradient(ellipse at 50% 38%,#264d39 0%,#1c3f2d 65%,#122e21 100%) padding-box,linear-gradient(180deg,#9d8b64 0%,#6e6047 5%,#393b31 17%,#353a30 58%,#605641 89%,#8f7c55 100%) border-box;box-shadow:0 0 0 1px #ad9665,0 0 0 3px #373c31,inset 0 0 38px #06190eb3}
.game-room .poker-table::after{content:"";position:absolute;inset:0;border:2px solid #8c805458;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 4px #07140d99}
.game-room .felt-line{inset:12px;border-radius:var(--table-radius);border-color:#93ab7825}
@media(min-width:1001px){.game-room .poker-stage{--table-left:6%;--table-top:14%;--rail-width:17px;--rail-depth:13px}}
@media(max-width:700px) and (orientation:portrait){
 .game-room .poker-stage{--table-left:7%;--table-top:10%;--table-bottom:10%;--table-radius:48% / 24%;--rail-width:10px;--rail-depth:8px}
 .game-room .felt-line{inset:7px}
}
@media(orientation:landscape) and (max-height:560px){.game-room .poker-stage{--rail-width:9px;--rail-depth:7px}}
/* Contain a fixed-proportion game canvas instead of stretching its axes.
   Extra viewport room becomes breathing space; seats and felt share one canvas. */
.game-room .game-stage-frame{position:relative;flex:1;min-height:0;width:100%;container-type:size}
.game-room .game-stage-frame>.poker-stage{
 position:absolute;left:50%;top:50%;bottom:auto;right:auto;
 transform:translate(-50%,-50%);flex:none;margin:0;
 width:min(100cqw,168cqh,1320px);height:auto;aspect-ratio:1.68;
 max-width:none;min-height:0;
 --table-left:6%;--table-top:14%;--table-bottom:12%;
 --table-radius:34% / 48%;--rail-width:1.3cqw;--rail-depth:1cqw;
}
.game-room .game-stage-frame .seat-top{top:10%}
.game-room .game-stage-frame .seat-left-top,.game-room .game-stage-frame .seat-left-bottom{left:10%}
.game-room .game-stage-frame .seat-right-top,.game-room .game-stage-frame .seat-right-bottom{left:90%}
@media(max-width:700px) and (orientation:portrait){
 .game-room .game-stage-frame>.poker-stage{
  width:min(100cqw,74cqh);height:auto;aspect-ratio:.74;
  --table-left:7%;--table-top:10%;--table-bottom:10%;
  --table-radius:48% / 34%;--rail-width:2.67cqw;--rail-depth:2.14cqw;
 }
 .game-room .game-stage-frame .seat-top{top:12%}
 .game-room .game-stage-frame .seat-left-top,.game-room .game-stage-frame .seat-left-bottom{left:14%}
 .game-room .game-stage-frame .seat-right-top,.game-room .game-stage-frame .seat-right-bottom{left:86%}
}
/* The wide canvas uses one scale for its cards and player panels, including
   short desktop windows and landscape phones. */
@media(min-width:701px), (orientation:landscape){
 .game-room .game-stage-frame .poker-stage{--room-card-width:min(5.8cqw,72px);--room-card-height:min(8.22cqw,102px)}
 .game-room .game-stage-frame .seat{width:min(15.65cqw,194px);min-height:0;max-width:none}
 .game-room .game-stage-frame .seat-hero{width:min(16.8cqw,208px);bottom:7%;top:auto}
 .game-room .game-stage-frame .seat .seat-info{min-height:min(5cqw,62px);padding:min(.73cqw,9px) min(.65cqw,8px) min(.65cqw,8px) min(3.87cqw,48px)}
 .game-room .game-stage-frame .seat .seat-info>strong{font-size:clamp(9px,1.21cqw,15px)}
 .game-room .game-stage-frame .seat .seat-info>.seat-stack-row{font-size:clamp(10px,1.37cqw,17px)}
 .game-room .game-stage-frame .seat .avatar{width:min(5.8cqw,72px);height:min(5.8cqw,72px);left:max(-1.61cqw,-20px);top:max(-.73cqw,-9px)}
 .game-room .game-stage-frame .seat .avatar-countdown{font-size:clamp(13px,1.94cqw,24px)!important}
 .game-room .game-stage-frame .seat .avatar>span:not(.avatar-level-badge):not(.seat-blind):not(.seat-dealer):not(.avatar-countdown){font-size:min(3.06cqw,38px)}
 .game-room .game-stage-frame .seat-time-track{left:min(3.4cqw,42px);right:min(.73cqw,9px)}
 .game-room .game-stage-frame .community-cards{top:44%;gap:min(.57cqw,7px)}
 .game-room .game-stage-frame .card{width:var(--room-card-width);height:var(--room-card-height)}
 .game-room .game-stage-frame .card .card-corner{font-size:min(2.74cqw,34px);left:min(.49cqw,6px);top:min(.4cqw,5px)}
 .game-room .game-stage-frame .card .card-suit{font-size:min(3.55cqw,44px)}
 .game-room .game-stage-frame .hand-status{top:calc(44% + var(--room-card-height) + 9px)}
 .game-room .game-stage-frame .hero-cards{bottom:calc(7% + min(4.44cqw,55px));gap:min(.4cqw,5px)}
 .game-room .game-stage-frame .hero-cards .card{width:min(5.16cqw,64px);height:min(7.26cqw,90px)}
 .game-room .game-stage-frame .hero-cards .card .card-corner{font-size:min(2.58cqw,32px)}
 .game-room .game-stage-frame .hero-cards .card .card-suit{font-size:min(3.23cqw,40px)}
 .game-room .game-stage-frame .plo-stage .hero-cards .card{width:min(3.71cqw,46px);height:min(5.48cqw,68px)}
 .game-room .game-stage-frame .seat-hole-backs i{width:min(1.94cqw,24px);height:min(2.58cqw,32px)}
 .game-room .game-stage-frame .seat .revealed-hole .card{width:min(3.39cqw,42px);height:min(4.68cqw,58px)}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole .card{width:min(2.58cqw,32px);height:min(3.87cqw,48px)}
 .game-room .game-stage-frame .pot{top:32%}
 .game-room .game-stage-frame .pot strong{font-size:clamp(14px,1.85cqw,23px)}
 .game-room .game-stage-frame .empty-seat-circle{width:min(3.87cqw,48px);height:min(3.87cqw,48px)}
}
@media(orientation:landscape) and (max-height:560px){
 .game-room .game-tools{position:absolute;grid-area:auto}
 .game-room .game-tools>button span{display:none}
 .game-room .game-stage-frame .pot{top:29%}
 .game-room .game-stage-frame .community-cards{top:42%}
 .game-room .game-stage-frame .hand-status{top:calc(42% + var(--room-card-height) + 6px);font-size:6px}
 .game-room .game-stage-frame .seat-hero .hero-hand-description{font-size:8px}
 .game-room .game-stage-frame .seat-left-top,.game-room .game-stage-frame .seat-right-top{top:30%}
 .game-room .game-stage-frame .seat-left-bottom,.game-room .game-stage-frame .seat-right-bottom{top:68%}
}

/* Portrait seats leave a dedicated center lane for the board. Four-card
   reveals remain with their own player instead of spilling into that lane. */
@media(max-width:700px) and (orientation:portrait){
 .game-room .game-stage-frame .poker-stage{--room-card-width:clamp(30px,9cqw,38px);--room-card-height:clamp(43px,13cqw,55px)}
 .game-room .game-stage-frame .seat{--seat-nameplate-radius:9px;width:82px;max-width:none;min-height:38px}
 .game-room .game-stage-frame .seat .seat-info{padding:5px 4px;min-height:38px}
 .game-room .game-stage-frame .seat .seat-info>strong{font-size:10px;line-height:1.3}
 .game-room .game-stage-frame .seat .seat-info>.seat-stack-row{font-size:12px;line-height:1.3}
 .game-room .game-stage-frame .seat .avatar{width:30px;height:30px;left:calc(50% - 15px);top:-27px}
 .game-room .game-stage-frame .seat .avatar>span:not(.avatar-level-badge):not(.seat-blind):not(.seat-dealer):not(.avatar-countdown){font-size:21px}
 .game-room .game-stage-frame .seat .avatar-countdown{font-size:16px!important}
 .game-room .game-stage-frame .seat-top{top:9%}
 .game-room .game-stage-frame .seat-left-top,.game-room .game-stage-frame .seat-right-top{top:24%}
 .game-room .game-stage-frame .seat-left-bottom,.game-room .game-stage-frame .seat-right-bottom{top:63%}
 .game-room .game-stage-frame .seat-hero{bottom:7%;top:auto;width:142px;max-width:none}
 .game-room .game-stage-frame .seat-hero .seat-info{padding-left:37px;min-height:42px}
 .game-room .game-stage-frame .seat-hero .avatar{width:42px;height:42px;left:-5px;top:0}
 .game-room .game-stage-frame .seat-hero .seat-info>strong{font-size:12px}
 .game-room .game-stage-frame .seat-hero .seat-info>.seat-stack-row{font-size:14px}
 .game-room .game-stage-frame .pot{top:30%}
 .game-room .game-stage-frame .pot>span{display:none}
 .game-room .game-stage-frame .pot strong{font-size:19px;padding:2px 12px}
 .game-room .game-stage-frame .community-cards{top:41%;gap:4px}
 .game-room .game-stage-frame .community-cards .card{width:var(--room-card-width);height:var(--room-card-height)}
 .game-room .game-stage-frame .community-cards .card .card-corner{font-size:22px}
 .game-room .game-stage-frame .community-cards .card .card-suit{font-size:26px}
 .game-room .game-stage-frame .hand-status{display:none}
 .game-room .game-stage-frame .felt-brand{top:55%;font-size:10px;opacity:.35}
 .game-room .game-stage-frame .hero-cards{bottom:calc(7% + 44px);gap:4px}
 .game-room .game-stage-frame .seat-hole-backs{display:none}
 .game-room .game-stage-frame .plo-stage .hero-cards .card{width:30px;height:44px}
 .game-room .game-stage-frame .seat .revealed-hole{left:50%;bottom:calc(100% + 4px);gap:2px}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole{gap:0}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole .card{width:23px;height:33px;margin-left:-3px}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole .card:first-child{margin-left:0}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole .card-corner{font-size:14px;left:3px;top:3px}
 .game-room .game-stage-frame .plo-stage .seat .revealed-hole .card-suit{font-size:16px}
 .game-room .game-stage-frame .seat .folded-indicator,.game-room .game-stage-frame .seat .sitting-out-indicator{font-size:8px;margin-top:3px}
 .game-room .game-stage-frame .seat-award{top:calc(100% + 4px);max-width:none;width:200px;padding:0;border:0;background:none;line-height:1.3;font-size:10px}
 .game-room .game-stage-frame .winner-hand-description{font-size:9px;margin-top:1px;white-space:nowrap}
 .game-room .game-stage-frame .table-corner-label{display:none}
 .game-room .game-stage-frame .felt-wager-2,.game-room .game-stage-frame .felt-wager-4{top:31%}
 .game-room .game-stage-frame .felt-wager-1,.game-room .game-stage-frame .felt-wager-5{top:73%}
 .game-room .game-stage-frame .felt-wager-0{top:83%;left:82%}
}
/* Small revealed/PLO cards have their own typography scale. Keep the rank
   and suit in separate rows even when the whole table scales down. */
.game-room .in-table .game-stage-frame .seat .revealed-hole .card,
.game-room .in-table .game-stage-frame .plo-stage .hero-cards .card{container-type:size}
.game-room .in-table .game-stage-frame .seat .revealed-hole .card .card-corner,
.game-room .in-table .game-stage-frame .plo-stage .hero-cards .card .card-corner{
 top:5%;left:0;right:0;width:auto;text-align:center;justify-content:center;
 font-size:40cqh;line-height:1;
}
.game-room .in-table .game-stage-frame .seat .revealed-hole .card .card-suit,
.game-room .in-table .game-stage-frame .plo-stage .hero-cards .card .card-suit{
 top:73%;left:50%;font-size:46cqh;line-height:1;transform:translate(-50%,-50%);
}
/* In-game panels share the felt's rim and the action dock's tactile controls. */
.game-room .mobile-table-sheet.game-sheet{
 width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 110px);
 position:fixed;inset:auto 24px 90px auto;margin:0;padding:0;
 border:1px solid #8a7954;border-radius:18px;
 background:linear-gradient(145deg,#283032,#1b2225 45%,#151c1f);
 color:var(--cream);box-shadow:inset 0 1px 0 #d9c99c29,0 0 0 3px #101719,0 18px 50px #0009;
 overflow:hidden;
}
.game-room .mobile-table-sheet.game-sheet[open]{display:flex;flex-direction:column}
.game-room .game-sheet::backdrop{background:#080d1080;backdrop-filter:blur(2px)}
.game-room .game-sheet .game-sheet-heading{flex:none;margin:0;padding:15px 16px 12px;gap:10px;background:linear-gradient(180deg,#353c3a80,transparent)}
.game-room .game-sheet-heading h2{font:600 20px/1.2 Outfit,sans-serif;letter-spacing:.1px;flex:1}
.game-room .game-sheet-emblem{width:34px;height:34px;border:1px solid #796c4d;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#343d36,#1b2523);color:#c3ac77;box-shadow:inset 0 1px 0 #d6c89a28}
.game-room .game-sheet-emblem svg{width:19px;height:19px}
.game-room .game-sheet-heading .icon-button{width:36px;min-width:36px;height:36px;min-height:36px;display:grid;place-items:center;border:1px solid #4b5455;border-radius:50%;background:linear-gradient(#343c3e,#20282c);box-shadow:inset 0 1px 0 #d2d0c514;color:#b8bdb9;font-size:17px;padding:0}
.game-room .game-sheet-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 16px 16px}
.game-room .game-sheet .table-options-card{margin:0;padding:0;border:0;background:none;box-shadow:none}
.game-room .game-sheet .room-control-actions{margin:0;gap:9px}
.game-room .game-sheet .room-control-actions .room-leave,
.game-room .game-sheet .mobile-table-options>.secondary-button{
 position:static;display:flex;align-items:center;justify-content:flex-start;gap:12px;
 width:100%;min-height:49px;padding:9px 12px;border:1px solid #53605d;border-radius:10px;
 background:#242d31;color:#cdd1c8;
 box-shadow:none;
 font:550 14px/1.3 'DM Sans',sans-serif;text-align:left;
}
.game-room .game-sheet .room-control-actions .room-leave svg,
.game-room .game-sheet .mobile-table-options>.secondary-button svg{order:-1;width:19px;height:19px;flex:none;color:#b9aa83}
.game-room .game-sheet .room-control-actions .room-leave::after,
.game-room .game-sheet .mobile-table-options>.secondary-button::after{content:'›';margin-left:auto;font:400 22px/1 Outfit,sans-serif;color:#88928c}
.game-room .game-sheet .room-control-actions .room-leave[aria-pressed=true]{border-color:#97815b}
.game-room .game-sheet .room-control-actions .room-leave:disabled{opacity:.42}
.game-room .game-sheet .room-control-actions .room-leave:active:not(:disabled),
.game-room .game-sheet .mobile-table-options>.secondary-button:active{background:#20282c;box-shadow:none;transform:translateY(1px)}
.game-room .game-sheet .mobile-table-options>.secondary-button{margin-top:12px;min-height:44px;background:#242d31;border-color:#3d4a4a;box-shadow:none}
.game-room .game-sheet .room-controls-note{font-size:12px;line-height:1.5;margin:10px 2px;color:#a4afaa}
.game-room .game-sheet .table-fairness{margin:12px 0 0;padding:12px 0 0;gap:10px;border:0;border-top:1px solid #3c4743;font-size:12px;color:#99a99c}
.game-room .game-sheet .table-fairness button{font-size:12px;min-height:36px}
.game-room .game-sheet .mobile-table-social .chat-card{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.game-room .game-sheet .mobile-table-social #history-panel{max-height:none;min-height:0;overflow:visible}
.game-room .game-hand-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #4c5a4b;border-radius:12px;background:radial-gradient(ellipse at 40% 0,#2d4935,#1b3027);box-shadow:inset 0 1px 0 #d4c89415}
.game-room .game-hand-stage,.game-room .game-hand-pot{display:flex;flex-direction:column;gap:3px}
.game-room .game-hand-eyebrow,.game-room .game-hand-pot>span{font-size:11px;color:#9db09f;font-weight:500;letter-spacing:.6px;text-transform:uppercase}
.game-room .game-hand-stage>strong{font:600 17px/1.2 Outfit,sans-serif;color:#cbd5c4}
.game-room .game-hand-pot{text-align:right}
.game-room .game-hand-pot>strong{font:600 23px/1.2 Outfit,sans-serif;color:#d0b67c}
.game-room .game-hand-board{display:flex;justify-content:center;align-items:center;gap:6px;padding:16px 0 18px}
.game-room .game-hand-board .card{width:32px;height:46px;border-radius:4px;container-type:size;box-shadow:0 2px 0 #8d9586,0 3px 6px #0004;transform:none}
.game-room .game-hand-board .card .card-corner{font-size:40cqh;left:0;right:0;top:5%;width:auto;text-align:center;justify-content:center;line-height:1}
.game-room .game-hand-board .card .card-suit{font-size:46cqh;left:50%;top:73%;line-height:1;transform:translate(-50%,-50%)}
.game-room .game-hand-board .card-back{opacity:.28;box-shadow:none}
.game-room .game-hand-board .card-back>span{font-size:23px;width:23px;height:23px}
.game-room .game-hand-columns,.game-room .game-hand-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 80px;gap:8px;align-items:center}
.game-room .game-hand-columns{padding:0 10px 8px;color:#8f9e9c;font-size:11px;text-transform:uppercase;letter-spacing:.6px}
.game-room .game-hand-columns>:last-child{text-align:right}
.game-room .game-hand-activity{display:grid;gap:5px}
.game-room .game-hand-row{min-height:49px;padding:9px 10px;margin:0;border:1px solid #354143;border-radius:8px;background:linear-gradient(115deg,#2a3436,#20292d);box-shadow:inset 0 1px 0 #adb6a508}
.game-room .game-hand-row.is-you{border-color:#75694e;background:linear-gradient(115deg,#353c30,#252f29)}
.game-room .game-hand-player{display:flex;align-items:center;gap:5px;min-width:0}
.game-room .game-hand-player>strong{font-size:13px;font-weight:550;color:#cbd0c7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.game-room .game-hand-role{font-size:8px!important;letter-spacing:.3px;color:#a9986d!important;flex:none}
.game-room .game-hand-action{justify-self:start;max-width:100%;padding:4px 6px;border:1px solid #53604c;border-radius:5px;background:#2b3b2f;color:#bfcbb3;font-size:10px;line-height:1.1;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}
.game-room .game-hand-action[data-action-kind=fold],.game-room .game-hand-action[data-action-kind=waiting]{color:#9eaaa8;border-color:#46504e;background:#252f31}
.game-room .game-hand-action[data-action-kind=raise],.game-room .game-hand-action[data-action-kind=bet],.game-room .game-hand-action[data-action-kind=all-in]{color:#d0b87e;border-color:#736444;background:#38362a}
.game-room .game-hand-contribution{font:550 14px/1.2 Outfit,sans-serif;text-align:right;color:#c4c9bf;font-variant-numeric:tabular-nums;white-space:nowrap}
.game-room .game-hand-empty{font-size:14px;line-height:1.5;text-align:center;color:#9eaba5;padding:24px 14px}
@media(max-width:700px){
 .game-room .mobile-table-sheet.game-sheet{width:calc(100% - 16px);max-width:420px;max-height:calc(100dvh - 28px);inset:auto 8px max(8px,env(safe-area-inset-bottom));margin:0 auto;border-radius:17px}
 .game-room .game-sheet .game-sheet-heading{padding:13px 12px 11px}
 .game-room .game-sheet-heading h2{font-size:19px}
 .game-room .game-sheet-body{padding:0 12px 14px}
 .game-room .game-hand-columns,.game-room .game-hand-row{grid-template-columns:minmax(0,1fr) 59px 64px;gap:6px}
 .game-room .game-hand-row{padding:8px;min-height:45px}
 .game-room .game-hand-contribution{font-size:13px}
 .game-room .game-hand-action{font-size:9px;padding:4px}
 .game-room .game-hand-player>strong{font-size:12px}
}
@media(orientation:landscape) and (max-height:560px){
 .game-room .mobile-table-sheet.game-sheet{max-height:calc(100dvh - 24px);inset:12px 12px auto auto;width:400px}
}
.game-room .game-hand-stage>strong{text-transform:capitalize}
.game-room .game-hand-row{min-height:44px;padding-top:7px;padding-bottom:7px}
.game-room .game-hand-empty>svg{width:28px;height:28px;display:block;margin:0 auto 10px;color:#b9a471}
.game-room .game-hand-empty>strong{display:block;font-size:15px;color:#c6cfc5}
.game-room .game-hand-empty>p{margin:8px 0 0}
@media(max-width:700px){.game-room .game-hand-row{min-height:42px;padding-top:7px;padding-bottom:7px}}
/* Chat keeps its composer anchored; only the message history scrolls. */
.game-room .mobile-table-sheet.game-sheet[data-panel=chat]{height:min(560px,calc(100dvh - 110px))}
.game-room .game-sheet[data-panel=chat] .game-sheet-body{display:flex;flex:1;min-height:0;overflow:hidden}
.game-room .game-sheet[data-panel=chat] .mobile-table-social,
.game-room .game-sheet[data-panel=chat] .social-column,
.game-room .game-sheet[data-panel=chat] .chat-card,
.game-room .game-sheet[data-panel=chat] #chat-panel{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-height:none;overflow:hidden}
.game-room .game-sheet[data-panel=chat] .chat-notice{flex:none;margin:0;padding:2px 0 12px;border:0;background:none;font-size:12px;line-height:1.4;color:#8f9c98}
.game-room .game-sheet[data-panel=chat] .chat-messages{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 0 14px}
.game-room .game-sheet[data-panel=chat] .chat-form{flex:none;display:flex;align-items:center;gap:8px;margin:0;padding:12px 0 0;border:0;border-top:1px solid #384344;border-radius:0;background:transparent}
.game-room .game-sheet[data-panel=chat] .chat-form input{flex:1;width:0;min-width:0;height:44px;padding:10px 12px;border:1px solid #3c494c;border-radius:9px;background:#141c20;color:var(--cream);font-size:16px;line-height:1.3}
.game-room .game-sheet[data-panel=chat] .chat-form button{flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #766544;border-radius:10px;background:linear-gradient(#403b2b,#2b2d25);color:#d2b375}
.game-room .game-tools>button[data-table-panel=chat]{position:relative}
.game-room .game-tools>button .table-chat-unread:not([hidden]){position:absolute;top:-4px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:1px solid #e0c38b;border-radius:10px;background:#d0ac62;color:#1b211f;box-shadow:0 2px 5px #0006;font:700 11px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
@media(max-width:700px){
 .game-room .mobile-table-sheet.game-sheet[data-panel=chat]{height:min(560px,calc(var(--game-chat-viewport-height,100dvh) - 16px));max-height:calc(var(--game-chat-viewport-height,100dvh) - 16px);inset:auto 8px calc(var(--game-chat-viewport-bottom,0px) + max(8px,env(safe-area-inset-bottom)))}
 .game-room .game-tools>button .table-chat-unread:not([hidden]){top:-3px;right:-3px}
}
@media(orientation:landscape) and (max-height:560px) and (min-width:701px){
 .game-room .mobile-table-sheet.game-sheet[data-panel=chat]{height:calc(100dvh - 24px)}
}

/* Phone navigation stays beside Hand, with room for every label and tap target. */
.game-room .mobile-table-layout .table-utilities [data-ui=switch-table],
.game-room .mobile-table-layout .table-utilities [data-view=lobby]{display:none}
.game-room .mobile-table-layout .game-tools{position:static;grid-area:3/1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.25fr) repeat(2,minmax(0,1fr));width:100%;height:48px;gap:2px;align-self:center;pointer-events:auto}
.game-room .mobile-table-layout .game-tools>button{position:relative;display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;height:48px;min-height:44px;margin:0;padding:5px 1px;border:1px solid #334047;border-radius:8px;background:#1b2024;box-shadow:none;color:#c3ccca;font:600 10px/1.15 'DM Sans',sans-serif;white-space:nowrap;text-shadow:none;filter:none}
.game-room .mobile-table-layout .game-tools>button>span:not([hidden]){display:inline}
.game-room .mobile-table-layout .game-tools>button svg{flex:none;width:18px;height:18px;stroke-width:1.8}
.game-room .mobile-table-layout .game-tools>.has-turn{color:var(--brass)}
.game-room .mobile-table-layout .game-tools>button>.table-switch-count,
.game-room .mobile-table-layout .game-tools>button>.table-chat-unread:not([hidden]){display:grid;top:0;right:calc(50% - 23px)}
/* Gentle gradients retain crisp labels without glossy highlights or blur. */
.game-room .action-panel .action-buttons>button{background:linear-gradient(180deg,#343f45,#263036);color:#e1e4dd;border-color:#536066;box-shadow:0 2px 0 #0b1013;font-weight:600;text-shadow:none;filter:none;transition:background-color .12s,border-color .12s,transform .12s}
.game-room .action-panel .action-buttons>.call-button{background:linear-gradient(180deg,#3b6048,#2b4936);color:#e1eadb;border-color:#63816a}
.game-room .action-panel .action-buttons>.raise-button{background:linear-gradient(180deg,#d0af70,#b99452);color:#221c12;border-color:#d5b577}
.game-room .action-panel .action-buttons>.mobile-bet-size{background:linear-gradient(180deg,#303c42,#202a30);color:#cfb77f;border-color:#536066}
.game-room .action-panel .action-buttons>button>span{opacity:1;font-weight:600}
.game-room .action-panel .action-buttons>button:hover:not(:disabled){filter:none;border-color:#b6b9a9}
.game-room .action-panel .action-buttons>button:active:not(:disabled){box-shadow:none;transform:translateY(1px)}
.game-room .mobile-table-layout .game-tools>button:hover:not(:disabled),
.game-room .mobile-table-layout .game-tools>button:active:not(:disabled){background:#222c31;border-color:#657471;color:#e1e4dd}
@media(orientation:portrait){
 .game-room .mobile-table-layout .game-scene{grid-template-rows:minmax(0,1fr) 70px 48px}
}
@media(orientation:portrait) and (max-height:600px){
 .game-room .mobile-table-layout .game-scene{grid-template-rows:minmax(0,1fr) 62px 48px}
}
@media(orientation:landscape){
 .game-room .mobile-table-layout .game-scene{grid-template-columns:minmax(0,1fr) 178px;grid-template-rows:minmax(0,1fr) 48px;gap:4px 12px}
 .game-room .mobile-table-layout .game-tools{grid-area:2/1/3/-1}
 .game-room .mobile-table-layout .game-control-dock{grid-area:1/2;max-height:100%}
}

/* Switch-table overlay follows the same game panel treatment as hand/options. */
.game-room #app-dialog:has([data-table-switcher]){width:min(460px,calc(100vw - 28px));padding:20px;border:1px solid #80704b;border-radius:20px;background:linear-gradient(150deg,#242d30,#151d20 70%);box-shadow:inset 0 1px 0 #e4cf9926,0 16px 60px #0009;max-height:calc(100dvh - 32px)}
.game-room #app-dialog:has([data-table-switcher])::backdrop{background:#080f14b8;backdrop-filter:blur(4px)}
.game-room #app-dialog:has([data-table-switcher]) #dialog-title{font:600 22px/1.3 Outfit,sans-serif;color:#d5c59c;margin-bottom:18px}
.game-room #app-dialog [data-table-switcher] .table-switcher-hint{font-size:12px;margin:0 0 16px;color:#a1adae}
.game-room #app-dialog [data-table-switcher] .table-switcher-list{gap:10px;max-height:55dvh;padding:2px}
.game-room #app-dialog [data-table-switcher] .table-switch-row{display:flex;position:static;margin:0;min-height:76px;padding:12px;gap:12px;border:1px solid #465253;border-radius:13px;background:linear-gradient(155deg,#293438,#1b2327);box-shadow:inset 0 1px 0 #ffffff0c,0 3px 7px #0003;color:#d1d0c9}
.game-room #app-dialog [data-table-switcher] .table-switch-row.is-current{border-color:#8a7549;background:linear-gradient(150deg,#37372c,#232b28);opacity:1}
.game-room #app-dialog [data-table-switcher] .table-switch-row.has-turn{border-color:#c4a565;box-shadow:0 0 12px #c4a56520}
.game-room #app-dialog [data-table-switcher] .table-switch-row:hover:not(:disabled){border-color:#af955e;background:#2d393c}
.game-room .table-switch-emblem{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid #796b4c;border-radius:50%;background:#172121;color:#c9b785;font:26px/1 Georgia}
.game-room .table-switch-copy{flex:1;min-width:0}
.game-room .table-switch-copy strong{font-size:15px}
.game-room .table-switch-copy small{font-size:12px;margin-top:3px}
.game-room .table-switch-current,.game-room .table-switch-turn{max-width:65px;text-align:right;font-size:11px;line-height:1.4;color:#c9b785}
@media(max-width:400px){.game-room #app-dialog:has([data-table-switcher]){padding:16px}.game-room .table-switch-emblem{width:32px;height:32px;font-size:22px}.game-room #app-dialog [data-table-switcher] .table-switch-row{gap:9px;padding:10px}}

/* Small tactile response for poker actions; no layout shift or touch hover. */
.game-room .action-panel .action-buttons>button:is(.fold-button,.call-button,.raise-button){transition:transform .16s ease-out,box-shadow .16s ease-out,border-color .16s ease-out}
@media(hover:hover) and (pointer:fine){
 .game-room .action-panel .action-buttons>button:is(.fold-button,.call-button,.raise-button):hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 0 #0b1013,0 7px 12px #0003}
 .game-room .action-panel .action-buttons>button:is(.fold-button,.call-button,.raise-button):active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px #0003}
}
@media(prefers-reduced-motion:reduce){
 .game-room .action-panel .action-buttons>button:is(.fold-button,.call-button,.raise-button){transition:none}
 .game-room .action-panel .action-buttons>button:is(.fold-button,.call-button,.raise-button):is(:hover,:active):not(:disabled){transform:none}
}

/* Compact mobile brand: keep the logo visible without crowding table controls. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 .game-room .table-topline{gap:6px}
 .game-room .game-brand{display:flex;width:36px;height:44px;justify-content:center;gap:0}
 .game-room .game-brand img{width:30px;height:30px}
 .game-room .game-brand span{display:none}
 .game-room .game-room-meta{flex:1;min-width:0;border:0;padding-left:0}
 .game-room .game-type{max-width:100%}
 .game-room #table-blinds{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Board ranks and suits scale with each card, in separate padded rows. */
.game-room .game-stage-frame .community-cards .card{container-type:size}
.game-room .game-stage-frame .community-cards .card .card-corner{
 top:8%;left:8%;right:8%;width:auto;text-align:center;justify-content:center;
 font-size:36cqh;line-height:1;
}
.game-room .game-stage-frame .community-cards .card .card-suit{
 top:73%;left:50%;font-size:40cqh;line-height:1;transform:translate(-50%,-50%);
}

/* Stage-anchored text never changes the table size or covers controls. */
.game-room .table-preparation-overlay{position:absolute;top:calc(44% + var(--room-card-height) + 10px);left:20%;right:20%;z-index:25;display:flex;justify-content:center;pointer-events:none;background:none}
.game-room .table-preparation-overlay[hidden]{display:none}
.game-room .table-preparation-card{display:flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid #9aab9e26;border-radius:8px;background:#101b18b3;box-shadow:none;color:#b7c0b8}
.game-room .table-preparation-emblem{position:relative;width:12px;height:12px;flex:none;font-size:0}
.game-room .table-preparation-emblem>span{position:absolute;inset:0;border:1.5px solid #a8997440;border-radius:50%}
.game-room .is-busy .table-preparation-emblem>span{border-top-color:#b8aa85;animation:table-preparation-spin 2s linear infinite}
.game-room .table-preparation-eyebrow{display:none}
.game-room #table-preparation-title{font:500 12px/1.4 'DM Sans',sans-serif;color:#bdc5bd}
.game-room #table-preparation-detail{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes table-preparation-spin{to{transform:rotate(360deg)}}
@media(max-width:700px) and (orientation:portrait){
 .game-room .table-preparation-overlay{top:calc(41% + var(--room-card-height) + 10px);left:12%;right:12%}
}
@media(prefers-reduced-motion:reduce){.game-room .is-busy .table-preparation-emblem>span{animation:none}}

/* Align side-mounted avatars to the nameplate itself, including bounty rows.
   The grid area excludes folded/sitting-out captions below the nameplate. */
@media(min-width:701px), (orientation:landscape){
 .game-room .game-stage-frame .seat>.avatar{grid-area:1 / 1 / 2 / 2;top:50%;bottom:auto;transform:translateY(-50%)}
}
@media(max-width:700px) and (orientation:portrait){
 .game-room .game-stage-frame .seat-hero>.avatar{grid-area:1 / 1 / 2 / 2;top:50%;bottom:auto;transform:translateY(-50%)}
}

/* Bet sizing shares the table's charcoal and muted brass controls. */
.game-room .mobile-bet-sheet{border:1px solid #82734f;border-radius:18px;background:#182023;color:#cdd1c8;box-shadow:0 18px 48px #0009,inset 0 1px 0 #d6c89a18;padding:16px}
.game-room .mobile-bet-sheet::backdrop{background:#080d1080}
.game-room .mobile-bet-sheet .game-sheet-heading{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #394340}
.game-room .mobile-bet-sheet .raise-input{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #394542;border-radius:10px;background:#11191b;color:#a7b0ad;font-size:14px}
.game-room .mobile-bet-sheet .raise-input strong{color:#d6b876;font:600 24px/1.2 Outfit,sans-serif;font-variant-numeric:tabular-nums}
.game-room .mobile-bet-sheet .bet-presets button{flex:1;min-width:0;min-height:44px;padding:8px 4px;border:1px solid #53605d;border-radius:9px;background:#242d31;color:#cdd1c8;box-shadow:none;font:600 14px/1.2 'DM Sans',sans-serif}
.game-room .mobile-bet-sheet>.primary-button{border:1px solid #ad9562;border-radius:10px;background:#c6a568;color:#211e16;box-shadow:inset 0 1px 0 #ead5a333;font:600 16px/1.3 Outfit,sans-serif;min-height:46px}
.game-room .mobile-bet-sheet input[type=range]::-webkit-slider-runnable-track{height:4px;background:#46524e;border-radius:4px}
.game-room .mobile-bet-sheet input[type=range]::-moz-range-track{height:4px;background:#46524e;border-radius:4px}
.game-room .mobile-bet-sheet input[type=range]::-moz-range-thumb{width:16px;height:16px;border:2px solid #c9b782;border-radius:50%;background:#c6a568}
@media(hover:hover){.game-room .mobile-bet-sheet .bet-presets button:hover{background:#303a3d;border-color:#97815b}.game-room .mobile-bet-sheet>.primary-button:hover{background:#d0b177}}

/* Seat buy-in uses the same compact charcoal/brass treatment as table sheets. */
#app-dialog:has(#join-form){width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;border:1px solid #82734f;border-radius:18px;background:#182023;color:#cdd1c8;box-shadow:0 18px 48px #0009,inset 0 1px 0 #d6c89a18;overflow:auto}
#app-dialog:has(#join-form)::backdrop{background:#080d1080}
#app-dialog:has(#join-form) .dialog-header{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid #394340}
#app-dialog:has(#join-form) .dialog-header h2{font:600 22px/1.25 Outfit,sans-serif;margin:0;flex:1}
#app-dialog:has(#join-form) #dialog-close{display:grid;place-items:center;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #4b5455;border-radius:50%;background:#242d31;color:#b8bdb9;font-size:17px}
#app-dialog:has(#join-form) #dialog-body>p{margin:0 0 14px;color:#a7b0ad;font-size:14px;line-height:1.5}
#app-dialog #join-form{gap:12px;margin-top:16px}
#app-dialog #join-form label{gap:8px;color:#a7b0ad;font-size:14px}
#app-dialog #join-form input{min-height:48px;padding:10px 12px;border:1px solid #46534e;border-radius:10px;background:#11191b;color:#d6b876;font:600 22px/1.25 Outfit,sans-serif;font-variant-numeric:tabular-nums}
#app-dialog #join-form .buyin-presets{gap:8px;margin:0}
#app-dialog #join-form .buyin-presets button{min-height:44px;padding:8px;border:1px solid #53605d;border-radius:9px;background:#242d31;color:#cdd1c8;font-size:14px;box-shadow:none}
#app-dialog #join-form .buyin-presets button[aria-pressed=true]{background:#343023;border-color:#97815b;color:#d6b876}
#app-dialog #join-form .buyin-summary{padding:12px;border:1px solid #394542;border-radius:10px;background:#11191b;gap:8px}
#app-dialog #join-form .buyin-summary dt{font-size:13px}
#app-dialog #join-form .buyin-summary dd{font-size:14px}
#app-dialog #join-form>.primary-button{justify-content:center;min-height:46px;padding:10px 14px;border:1px solid #ad9562;border-radius:10px;background:#c6a568;color:#211e16;box-shadow:inset 0 1px 0 #ead5a333;font:600 16px/1.3 Outfit,sans-serif}
#app-dialog #join-form .form-error:empty{display:none}
@media(hover:hover){#app-dialog #join-form .buyin-presets button:hover:not(:disabled){background:#303a3d;border-color:#97815b}#app-dialog #join-form>.primary-button:hover:not(:disabled){background:#d0b177}}
@media(max-width:380px){#app-dialog:has(#join-form){padding:14px}#app-dialog:has(#join-form) .dialog-header h2{font-size:20px}#app-dialog #join-form .buyin-summary>div{flex-wrap:wrap;gap:3px 10px}}

/* Seat buy-in uses the same compact charcoal/brass treatment as table sheets. */
#app-dialog:has(#top-up-form){width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;border:1px solid #82734f;border-radius:18px;background:#182023;color:#cdd1c8;box-shadow:0 18px 48px #0009,inset 0 1px 0 #d6c89a18;overflow:auto}
#app-dialog:has(#top-up-form)::backdrop{background:#080d1080}
#app-dialog:has(#top-up-form) .dialog-header{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid #394340}
#app-dialog:has(#top-up-form) .dialog-header h2{font:600 22px/1.25 Outfit,sans-serif;margin:0;flex:1}
#app-dialog:has(#top-up-form) #dialog-close{display:grid;place-items:center;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #4b5455;border-radius:50%;background:#242d31;color:#b8bdb9;font-size:17px}
#app-dialog:has(#top-up-form) #dialog-body>p{margin:0 0 14px;color:#a7b0ad;font-size:14px;line-height:1.5}
#app-dialog #top-up-form{gap:12px;margin-top:16px}
#app-dialog #top-up-form label{gap:8px;color:#a7b0ad;font-size:14px}
#app-dialog #top-up-form input{min-height:48px;padding:10px 12px;border:1px solid #46534e;border-radius:10px;background:#11191b;color:#d6b876;font:600 22px/1.25 Outfit,sans-serif;font-variant-numeric:tabular-nums}
#app-dialog #top-up-form .buyin-presets{gap:8px;margin:0}
#app-dialog #top-up-form .buyin-presets button{min-height:44px;padding:8px;border:1px solid #53605d;border-radius:9px;background:#242d31;color:#cdd1c8;font-size:14px;box-shadow:none}
#app-dialog #top-up-form .buyin-presets button[aria-pressed=true]{background:#343023;border-color:#97815b;color:#d6b876}
#app-dialog #top-up-form .buyin-summary{padding:12px;border:1px solid #394542;border-radius:10px;background:#11191b;gap:8px}
#app-dialog #top-up-form .buyin-summary dt{font-size:13px}
#app-dialog #top-up-form .buyin-summary dd{font-size:14px}
#app-dialog #top-up-form>.primary-button{justify-content:center;min-height:46px;padding:10px 14px;border:1px solid #ad9562;border-radius:10px;background:#c6a568;color:#211e16;box-shadow:inset 0 1px 0 #ead5a333;font:600 16px/1.3 Outfit,sans-serif}
#app-dialog #top-up-form .form-error:empty{display:none}
@media(hover:hover){#app-dialog #top-up-form .buyin-presets button:hover:not(:disabled){background:#303a3d;border-color:#97815b}#app-dialog #top-up-form>.primary-button:hover:not(:disabled){background:#d0b177}}
@media(max-width:380px){#app-dialog:has(#top-up-form){padding:14px}#app-dialog:has(#top-up-form) .dialog-header h2{font-size:20px}#app-dialog #top-up-form .buyin-summary>div{flex-wrap:wrap;gap:3px 10px}}

/* A text-labelled sizing/raise action, distinct from the brass quick bet. */
.game-room .action-panel .action-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-room .action-panel .action-buttons>.dedicated-raise-button{width:100%;padding:6px 8px;background:linear-gradient(180deg,#713b40,#51282e);border-color:#8c555b;color:#eadcda;font-weight:650}
@media(hover:hover) and (pointer:fine){
 .game-room .action-panel .action-buttons>.dedicated-raise-button:hover:not(:disabled){transform:translateY(-2px);border-color:#ac7076;box-shadow:0 4px 0 #0b1013,0 7px 12px #0003}
}
@media(orientation:landscape) and (max-height:560px){
 .game-room .action-panel .action-buttons{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .game-room .action-panel .action-buttons>.dedicated-raise-button:hover:not(:disabled){transform:none}
}

.game-room .game-board{position:relative}
.game-room .bet-confirmation{position:absolute;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:max-content;max-width:100%;padding:3px 9px;background:#192220;color:#d7dfd4;border-radius:6px;font-size:12px;text-align:center}
.game-room .bet-confirmation button{color:#dfbc77;background:transparent;padding:5px;border:0}
@media(orientation:portrait){
 .game-room .mobile-table-layout .action-buttons{grid-template-columns:repeat(4,minmax(0,1fr));align-content:center}
 .game-room .mobile-table-layout .action-buttons>button{min-width:0;height:48px;min-height:48px;touch-action:manipulation}
 .game-room .mobile-table-layout .game-control-dock{align-self:stretch;min-height:0}
}
.game-room .game-hand-nav{
 display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;
 gap:8px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #374044;text-align:center;
}
.game-room .game-hand-nav strong{font:550 15px/1.3 Outfit,sans-serif;color:#ccd1c9}
.game-room .game-hand-nav small{display:block;font:400 11px/1.4 'DM Sans',sans-serif;color:#9da9a5;font-variant-numeric:tabular-nums}
.game-room .game-hand-nav button{
 width:44px;height:44px;display:grid;place-items:center;padding:0;
 border:1px solid #4b5658;border-radius:10px;background:#242d31;color:#cdb886;
}
.game-room .game-hand-nav button:disabled{color:#768180;border-color:#354044;background:transparent}
.game-room .game-hand-nav button:enabled:hover,.game-room .game-hand-nav button:focus-visible{background:#303a3c;border-color:#a49470}
.game-room .game-hand-person{display:grid;gap:3px;min-width:0}
.game-room .game-hand-won{color:#d8bb7c;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}
.game-room .game-hand-rank{font-size:12px;line-height:1.35;color:#c6ccc1;overflow-wrap:break-word}
.game-room .game-hand-no-action{color:#8e9996}
.game-room .game-hand-reveal{display:flex;gap:3px;flex-wrap:wrap;margin-top:2px}
.game-room .game-hand-reveal .card{
 display:flex;align-items:center;justify-content:center;gap:1px;
 width:auto;height:22px;min-width:28px;padding:2px 4px;border-radius:4px;
 box-shadow:none;transform:none;line-height:1;
}
.game-room .game-hand-reveal .card .card-corner,.game-room .game-hand-reveal .card .card-suit{
 position:static;width:auto;height:auto;margin:0;transform:none;font-size:14px;line-height:1;
}

#player-verification {
  box-sizing: border-box;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #706347;
  border-radius: 14px;
  background: #1b2223;
  color: #d7d6cd;
  box-shadow: 0 14px 44px #0006;
}
#player-verification::backdrop { background: rgb(10 16 16 / 62%); }
#player-verification header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#player-verification h2 { margin: 0; font-size: 1.45rem; }
#player-verification p { margin: .7rem 0 0; color: #b6bcb8; line-height: 1.5; }
#player-verification strong { color: #d8d7cd; }
#player-verification .verification-clock { color: #dbb96e; font-size: .95rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
#player-verification .verification-body { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #384044; }
#player-verification .verification-step { margin: 0; color: #d9b773; font-size: .9rem; }
#player-verification h3 { margin: .35rem 0 .9rem; font-size: 1.18rem; line-height: 1.3; }
#player-verification .verification-tools { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
#player-verification .verification-tools h3 { grid-area: 2 / 1 / 3 / -1; }
#player-verification button { border: 1px solid #455054; border-radius: 8px; background: #252e30; color: #d7d6cd; padding: .65rem .35rem; min-height: 44px; cursor: pointer; }
#player-verification [data-listen] { grid-area: 1 / 2; min-height: 36px; padding: .4rem .7rem; font-size: .86rem; }
#player-verification .verification-path { position: relative; margin-bottom: 6px; }
#player-verification .verification-clue { display: block; width: 100%; aspect-ratio: 600 / 96; object-fit: contain; border-radius: 8px; }
/* Align the two progress lights with the numbered slots in the 600 × 96 clue strip. */
#player-verification .verification-path-slots { position: absolute; inset: 0 20%; display: grid; grid-template-columns: repeat(2,1fr); place-items: center; pointer-events: none; }
#player-verification .verification-path-slots span:not(:empty) { box-sizing: border-box; display: grid; place-items: center; width: 45%; height: 54%; border: 1px solid #ebcc89; border-radius: 5px; background: #d7b36e; box-shadow: 0 0 7px #c59f514d; color: #24231f; font-size: 1rem; font-weight: 700; line-height: 1; }
#player-verification .verification-order-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#player-verification .verification-board { position: relative; width: 100%; aspect-ratio: 600 / 290; }
#player-verification .verification-board img { display: block; width: 100%; height: 100%; border-radius: 8px; user-select: none; }
#player-verification .verification-choices { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
#player-verification [data-choice] { position: relative; min-height: 0; padding: 0; margin: 2px; border: 2px solid transparent; background: transparent; box-shadow: none; }
#player-verification [data-choice][aria-pressed="true"] { border-color: #e0b862; box-shadow: inset 0 0 0 2px #332919; }
#player-verification [data-order]::after { content: attr(data-order); position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: .8rem; font-weight: 700; color: #201c15; background: #e0b862; }
#player-verification .verification-position { display: none; }
#player-verification .verification-image-error img { visibility: hidden; }
#player-verification .verification-image-error [data-choice] { background: #252e30; }
#player-verification .verification-image-error .verification-position { display: inline; }
#player-verification .verification-submit { width: 100%; margin-top: .85rem; background: #d4af6b; color: #201c15; font-weight: 650; border-color: #d4af6b; }
#player-verification button:disabled { opacity: .5; cursor: default; }
#player-verification button:focus-visible { outline: 2px solid #e4c68e; outline-offset: 2px; }
#player-verification .verification-feedback:empty { display: none; }
#player-verification .verification-terms { font-size: .92rem; }
@media (hover: hover) {
  #player-verification [data-choice]:hover { border-color: #d0b877; }
}

@media (min-width: 650px) and (max-height: 650px) {
  #player-verification { padding: 14px 20px; }
  #player-verification .verification-body { margin-top: 10px; padding-top: 10px; }
  #player-verification h3 { margin-bottom: 7px; }
  #player-verification .verification-submit { margin-top: 8px; }
}

.game-room .desktop-table-layout .game-tools>.sit-out-shortcut{margin-left:auto}
.game-room .desktop-table-layout .game-tools>.sit-out-shortcut+button{margin-left:0}
.game-room .mobile-table-layout .game-tools:has(.sit-out-shortcut){grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(0,1fr)}

.game-room .desktop-table-layout .table-topline .game-brand{display:none}
.game-room .desktop-table-layout .table-topline .game-room-meta{border-left:0;padding-left:0}

.game-room .desktop-table-layout .poker-stage,
.game-room .desktop-table-layout .game-control-dock {
  scale: .95;
  transform-origin: center;
}

.desktop-table-tabs{display:flex;align-items:center;gap:4px;flex:none;margin:8px auto 0;padding:3px;width:fit-content;max-width:calc(100% - 12px);background:#181e21;border:1px solid #343d41;border-radius:9px}
.desktop-table-tab,.desktop-tabs-lobby{display:flex;align-items:center;min-width:0;border-radius:6px}
.desktop-table-tab.is-active{background:#22332e;box-shadow:inset 0 0 0 1px #456355}
.desktop-table-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:6px 8px;border:0;background:transparent;color:var(--muted);font-weight:600;line-height:1.4;font-family:inherit;font-size:13px;cursor:pointer}
.desktop-table-tab.is-active button:first-child{color:var(--cream);opacity:1;cursor:default}
.desktop-table-tab button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop-table-tabs svg{width:15px;height:15px;flex:none}
.desktop-table-tabs button[data-close-table-tab]{padding-inline:5px}
.desktop-table-tabs button:hover:not(:disabled){color:var(--brass)}

.desktop-table-tabs .desktop-table-tab.has-turn{
 position:relative;
 overflow:hidden;
}

.desktop-table-tab.has-turn::after{
 content:"";
 position:absolute;
 pointer-events:none;
 bottom:0;
 left:0;
 width:40%;
 height:3px;
 border-radius:3px;
 background:linear-gradient(90deg,transparent,#91d7aa 35%,#deedbf 50%,#91d7aa 65%,transparent);
 animation:table-turn-sweep 1.65s ease-in-out infinite alternate;
}
@keyframes table-turn-sweep{
 from{transform:translateX(0)}
 to{transform:translateX(150%)}
}
@media (prefers-reduced-motion:reduce){
 .desktop-table-tab.has-turn::after{animation:none;width:100%}
}
