/* Poker Night portrait table. Independent of viewport width when forced. */
.mobile-view-choice{display:flex;align-items:center;gap:.45rem;margin:.6rem 0;color:var(--muted);font-size:.85rem}
.mobile-view-choice[hidden],#mobile-tray[hidden],#mobile-tray-toggle[hidden],#mobile-info-open[hidden]{display:none!important}
.mobile-top-tools{display:flex;align-items:center;gap:.3rem;justify-content:end;float:right}
#mobile-display{position:relative;z-index:8}
#mobile-display summary{list-style:none;cursor:pointer;padding:.35rem .55rem}
#mobile-display label{position:absolute;right:0;top:100%;white-space:nowrap;background:#191c20;border:1px solid #595e63;padding:.65rem;border-radius:8px}
.mobile-felt-mark,.mobile-stack,.mobile-table-status,.mobile-wagers,.mobile-amount-presets,#mobile-tray-toggle,.mobile-equity{display:none}
body[data-mobile-poker]{background:#111216}
body[data-mobile-poker] #main{max-width:480px;padding-inline:clamp(4px,1.35vw,9px);margin-inline:auto}
body[data-mobile-poker] #game{max-width:460px;margin-inline:auto;color:#fafafa;background:radial-gradient(ellipse at 50% 18%,#292a2d,#141517 86%);padding:4px 0 12px;border-radius:12px}
body[data-mobile-poker] #game-grid{display:block}
body[data-mobile-poker] #game .game-main{min-width:0}
body[data-mobile-poker] #game .game-heading{gap:.25rem;padding-inline:.3rem;min-height:36px}
body[data-mobile-poker] #game .game-meta{gap:.35rem}
body[data-mobile-poker] #game .game-heading button{min-height:32px}
body[data-mobile-poker] #game .table-heading{padding:.18rem .38rem;align-items:center;gap:.16rem;min-height:35px;margin-bottom:0}
body[data-mobile-poker] #game .table-heading h1{font-size:clamp(.95rem,4vw,1.18rem);margin:0}
body[data-mobile-poker] #game .table-heading .eyebrow{font-size:.58rem}
body[data-mobile-poker] #game .table-heading-meta{gap:.2rem}
body[data-mobile-poker] #game .table-heading-meta :is(.badge,.seat-count){font-size:.58rem;padding:.14rem .25rem}
body[data-mobile-poker] #game :is(#tournament,#break,.turn-row,#hand-stakes,.dealer-rail,.felt-label,#my-hand-stats){display:none}
body[data-mobile-poker] #game .mobile-top-tools{float:right;position:relative;z-index:10;margin:0 .3rem 0 .1rem}
body[data-mobile-poker] #game .mobile-top-tools button{min-height:34px;padding:.14rem .42rem;font-size:1.12rem}
body[data-mobile-poker] #game .table-layout{display:block;clear:both;position:relative;container-type:inline-size;height:clamp(425px,calc(100svh - 245px),690px);margin:0 0 2px}
body[data-mobile-poker] #game .table-layout .felt{
 position:absolute;inset:11% 3.5% 14%;width:auto;height:auto;min-height:0;padding:0;overflow:visible;z-index:0;
 border:clamp(10px,3.2cqw,15px) solid #151619;border-bottom-color:#24262d;border-radius:42% / 23%;
 background:radial-gradient(ellipse at 50% 47%,var(--mobile-felt,#1d742d) 12%,var(--mobile-felt-mid,#135522) 75%,#06170c 100%);
 box-shadow:inset 0 0 13px 5px #000b,0 4px 0 #5f6069,0 12px 23px #000a;
}
body[data-mobile-poker] #game[data-theme="blue"]{--mobile-felt:#215b87;--mobile-felt-mid:#123656}
body[data-mobile-poker] #game[data-theme="burgundy"]{--mobile-felt:#77283f;--mobile-felt-mid:#4b1126}
body[data-mobile-poker] #game[data-theme="violet"]{--mobile-felt:#683b8b;--mobile-felt-mid:#352150}
body[data-mobile-poker] #game .felt :is(.mobile-felt-mark,.mobile-stack,.mobile-table-status,#pot,#board,.mobile-wagers){position:absolute;z-index:1}
body[data-mobile-poker] #game .mobile-felt-mark{display:block;top:49%;left:50%;width:76%;transform:translateX(-50%);text-align:center;font-size:clamp(.78rem,4.3cqw,1.30rem);font-weight:950;letter-spacing:.1em;text-transform:uppercase;color:#fff;opacity:.105;pointer-events:none}
body[data-mobile-poker] #game .mobile-stack{display:grid;justify-items:center;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
body[data-mobile-poker] #game .mobile-denoms{display:flex;align-items:end;justify-content:center;gap:2px}
body[data-mobile-poker] #game .mobile-denom{display:grid;place-items:center;width:clamp(16px,5cqw,25px);aspect-ratio:1;border:2px dashed #faf5e4;border-radius:50%;background:#fff;color:#172028;box-shadow:inset 0 0 0 2px var(--denom),0 2px 0 var(--denom),0 4px 3px #0008;font:bold clamp(7px,2cqw,10px) system-ui}
body[data-mobile-poker] #game .mobile-denom[data-height="2"]{box-shadow:inset 0 0 0 2px var(--denom),0 3px 0 var(--denom),0 5px 2px #0008}
body[data-mobile-poker] #game .mobile-denom[data-height="3"],body[data-mobile-poker] #game .mobile-denom[data-height="4"]{box-shadow:inset 0 0 0 2px var(--denom),0 3px 0 var(--denom),0 5px 0 #12161a,0 7px 0 var(--denom),0 9px 3px #000a;margin-bottom:4px}
body[data-mobile-poker] #game .mobile-wager b{color:#fff;background:#051a11bf;border-radius:12px;padding:2px 5px;font-size:clamp(.68rem,3.0cqw,.82rem);font-variant-numeric:tabular-nums}
body[data-mobile-poker] #game #pot{top:59%;left:50%;transform:translateX(-50%);border:0;color:white;background:#092817d9;padding:.18rem .4rem;margin:0;white-space:nowrap;font-size:clamp(.79rem,3.2cqw,1.02rem);font-weight:850}
body[data-mobile-poker] #game #board{top:67%;left:50%;transform:translateX(-50%);width:83%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:3px;min-height:0;margin:0;padding:0}
body[data-mobile-poker] #game #board .card{width:100%;font-size:clamp(1rem,5.4cqw,1.55rem)}
body[data-mobile-poker] #game #board .deal-flip-frame{width:100%}
body[data-mobile-poker] #game .mobile-table-status{display:grid;top:37%;left:50%;transform:translateX(-50%);width:49%;gap:3px;text-align:center;color:#c5e2cbbf;font-size:clamp(.61rem,2.9cqw,.87rem);line-height:1.2;pointer-events:none}
body[data-mobile-poker] #game .mobile-table-status:not(:empty){background:#071c1170;border-radius:6px;padding:3px 4px}
body[data-mobile-poker] #game .mobile-wagers{display:block;inset:0;pointer-events:none}
body[data-mobile-poker] #game .mobile-wager{display:flex;align-items:center;position:absolute;left:var(--w-x,50%);top:var(--w-y,48%);transform:translate(-50%,-50%);white-space:nowrap}
body[data-mobile-poker] #game .mobile-wager-chip{width:clamp(13px,4.5cqw,20px);aspect-ratio:1;border-radius:50%;border:2px dashed #dce9fb;background:#3677c6;box-shadow:0 2px 2px #000a}
body[data-mobile-poker] #game .felt-holdings{z-index:2}
body[data-mobile-poker] #game .table-layout .seats{display:contents}
body[data-mobile-poker] #game .table-layout .seat[data-position]{
 position:absolute;left:var(--m-x);top:var(--m-y);bottom:auto;inset-inline-end:auto;transform:translate(-50%,-50%);z-index:3;width:clamp(55px,20cqw,90px);max-width:none;min-width:0;
 padding:0;margin:0;background:none;border:none;box-shadow:none;isolation:isolate;opacity:1;
}
body[data-mobile-poker] #game .table-layout .seat.mine{width:clamp(83px,28cqw,130px);z-index:5;left:17%;top:88%;transform:translate(-50%,-20%)}
body[data-mobile-poker] #game .seat[data-position="0"]{--m-x:17%;--m-y:83%}
body[data-mobile-poker] #game .seat[data-position="1"]{--m-x:12%;--m-y:66%}
body[data-mobile-poker] #game .seat[data-position="2"]{--m-x:12%;--m-y:48%}
body[data-mobile-poker] #game .seat[data-position="3"]{--m-x:12%;--m-y:30%}
body[data-mobile-poker] #game .seat[data-position="4"]{--m-x:35%;--m-y:14%}
body[data-mobile-poker] #game .seat[data-position="5"]{--m-x:65%;--m-y:14%}
body[data-mobile-poker] #game .seat[data-position="6"]{--m-x:88%;--m-y:30%}
body[data-mobile-poker] #game .seat[data-position="7"]{--m-x:88%;--m-y:48%}
body[data-mobile-poker] #game .seat[data-position="8"]{--m-x:88%;--m-y:66%}
body[data-mobile-poker] #game .table-layout[data-heads-up] .seat:not(.mine){--m-x:50%;--m-y:14%}
body[data-mobile-poker] #game .table-layout .seat:is(.out-of-hand,.away){opacity:.51}
body[data-mobile-poker] #game .table-layout .seat.acting{opacity:1;z-index:4}
body[data-mobile-poker] #game .seat-row{position:relative;display:grid;justify-items:center;gap:0;align-items:end}
body[data-mobile-poker] #game .seat-row :is(.avatar,.seat-avatar,.seat-photo,.seat-identity,.seat-identity-picture){width:clamp(37px,13cqw,61px);height:clamp(37px,13cqw,61px);margin:0;border-radius:50%}
body[data-mobile-poker] #game .seat-row > :first-child:not(.seat-plate){width:clamp(37px,13cqw,61px)!important;height:clamp(37px,13cqw,61px)!important;flex:none;margin:0}
body[data-mobile-poker] #game .seat-row > :first-child img{width:100%;height:100%;object-fit:cover}
body[data-mobile-poker] #game .mine .seat-row > :first-child:not(.seat-plate){width:clamp(50px,17cqw,74px)!important;height:clamp(50px,17cqw,74px)!important}
body[data-mobile-poker] #game .seat-details-button{display:block;width:100%;min-height:0;padding:0;border:0;background:none;color:inherit}
body[data-mobile-poker] #game .seat-plate{
 position:relative;z-index:2;display:grid;width:100%;margin-top:-4px;text-align:center;overflow:hidden;border:1px solid #4d4d53;border-radius:5px;background:linear-gradient(#222326,#121315 50%);
 color:#fafafa;line-height:1.24;box-shadow:0 2px 3px #0005;
}
body[data-mobile-poker] #game .seat-row .seat-plate strong{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:2px 3px;color:#e5e5ea;font-size:clamp(.61rem,2.75cqw,.84rem);font-weight:550}
body[data-mobile-poker] #game .seat-row .seat-plate small{display:block;width:100%;padding:2px 1px;color:#fff;font-size:clamp(.7rem,3.06cqw,1rem);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-mobile-poker] #game .mine .seat-plate small{font-size:clamp(.9rem,4.15cqw,1.23rem)}
body[data-mobile-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="1"]{background:#efce77;color:#16120a}
body[data-mobile-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="2"]{background:#cbccd0;color:#16171b}
body[data-mobile-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="3"]{background:#c79d77;color:#1c120a}
body[data-mobile-poker] #game .acting .seat-plate{border-color:#d4d9d9}
body[data-mobile-poker] #game .acting .seat-plate::after{position:absolute;content:"";inset:0 auto 0 0;width:var(--mobile-timer,100%);background:#d8e3eb;opacity:.3;pointer-events:none;transition:width .25s linear}
body[data-mobile-poker] #game :is(.active-seat-timer,.seat-label,.seat-row .dealer-button){position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:0}
body[data-mobile-poker] #game .seat-row .mobile-recent-action{color:#8ae1ff;font-weight:750}
body[data-mobile-poker] #game .seat-row .mobile-seat-cards{
 position:absolute;z-index:1;left:50%;top:auto;bottom:2.0rem;transform:translateX(-50%);margin:0;display:flex;gap:2px;
}
body[data-mobile-poker] #game .seat-row .mobile-seat-cards .card{width:clamp(18px,6.5cqw,31px);font-size:clamp(.61rem,2.6cqw,.83rem)}
body[data-mobile-poker] #game .seat-row .mobile-seat-cards.revealed .card{width:clamp(21px,8cqw,36px)}
body[data-mobile-poker] #game .mobile-equity{display:block;position:absolute;top:2px;right:2px;z-index:3;color:#fff;background:#205085;border-radius:4px;padding:2px 4px;font-size:.67rem;line-height:1.05;white-space:nowrap;font-weight:800;pointer-events:none}
body[data-mobile-poker] #game .seat.mine .own-pocket{position:absolute;z-index:2;left:50%;bottom:3.75rem;transform:translateX(-50%);width:max-content;flex-wrap:nowrap;margin:0;padding:0;border:0}
body[data-mobile-poker] #game .seat.mine .own-seat-holding .card{width:clamp(31px,12.6cqw,57px);font-size:clamp(.95rem,4.7cqw,1.44rem)}
body[data-mobile-poker] #game .mine .seat-bank{display:none}
body[data-mobile-poker] #game .mine .seat-bank:not([hidden]){display:flex;justify-content:center;gap:4px;font-size:.62rem;margin-top:1px}
body[data-mobile-poker] #game .mine .seat-bank .clock{font-size:inherit}
body[data-mobile-poker] #game .mine .pocket-reveal-hint{position:absolute;width:max-content;left:104%;bottom:0;font-size:.64rem}
body[data-mobile-poker] #game #mobile-tray-toggle{display:block;position:absolute;z-index:5;right:2%;bottom:12%;border:1px solid #6b7772;background:#101418e8;padding:0 .58rem;min-height:44px;font-size:.78rem}
body[data-mobile-poker] #game #mobile-tray{margin:2px 4px 6px;padding:5px 7px;border:1px solid #4a4c54;border-radius:7px;background:#111217}
body[data-mobile-poker] #game #mobile-tray :is(#game-rebuy,.phone-play-tools,.presence){position:static;margin:0;padding:.23rem;min-height:0;background:none;border:0}
body[data-mobile-poker] #game #mobile-tray .phone-play-tools:not([hidden]){display:flex;justify-content:flex-start;gap:5px}
body[data-mobile-poker] #game #mobile-tray .presence-info,body[data-mobile-poker] #game #mobile-tray #presence-info{display:none}
body[data-mobile-poker] #game .player-area:not([hidden]){display:block;position:relative;padding:0 4px;width:100%;min-height:110px;margin:0;z-index:6;background:transparent}
body[data-mobile-poker] #game[data-watching] .player-area,body[data-mobile-poker] #game .phone-action-idle{display:none}
body[data-mobile-poker] #game .player-area #actions{display:flex;flex-direction:column;gap:4px;background:none;padding:0;margin:0;min-height:0}
body[data-mobile-poker] #game .player-area #action-buttons{display:flex;width:100%;height:auto;gap:5px;order:3}
body[data-mobile-poker] #game .player-area #action-buttons:empty{display:none}
body[data-mobile-poker] #game .player-area #action-buttons button{flex:1 1 0;min-width:0;margin:0;white-space:normal}
body[data-mobile-poker] #game[data-your-turn] .player-area #action-buttons button{
 min-height:53px;padding:.15rem .15rem;border:1px solid #d34a46;border-radius:12px;background:linear-gradient(#b82d2a,#811515);color:white;font-weight:850;font-size:clamp(.9rem,4vw,1.12rem);
}
body[data-mobile-poker] #game .player-area #raise-controls:not([hidden]){display:grid;order:1;gap:4px;width:min(68%,320px);align-self:flex-end;padding:0;margin:0;border:0;background:none}
body[data-mobile-poker] #game .player-area #raise-controls>label,body[data-mobile-poker] #game #raise-button{display:none}
body[data-mobile-poker] #game .player-area #raise-controls>div{display:flex;align-items:center;gap:4px;min-width:0}
body[data-mobile-poker] #game .player-area #raise-controls #raise{width:62px;min-width:0;font-size:16px;height:31px;min-height:0;padding:1px 4px}
body[data-mobile-poker] #game .player-area #raise-controls #raise-slider{flex:1;min-width:0;min-height:29px;height:29px}
body[data-mobile-poker] #game .mobile-amount-presets button{flex:1 1 0;min-width:0;font-size:.79rem;min-height:32px;padding:1px;background:#8e2422;color:#fff;border:1px solid #d0514c;border-radius:5px}
body[data-mobile-poker] #game .mobile-amount-presets button[data-size="half-pot"]{flex-grow:1.24}
body[data-mobile-poker] #game #pre-actions:not([hidden]){display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;order:2}
body[data-mobile-poker] #game #pre-actions label:not([hidden]){min-height:37px;justify-content:flex-start;color:#fff;background:#1e2024}
body[data-mobile-poker] #game :is(.game-side,#phone-table-tools,#results){margin-top:4px}
body[data-mobile-poker] #game .game-side{display:block}
body[data-mobile-poker] #game :is(#game-side,#results,#phone-table-tools)>:not([hidden]){margin-bottom:.25rem}
body[data-mobile-poker] #game .phone-chat-toggle{display:inline-block}
body[data-mobile-poker] #game #table-chat:not([data-phone-open]) #chat-form{display:none}
body[data-mobile-poker] footer{display:none}
#mobile-tournament-info{width:min(100% - 16px,460px);max-height:calc(100svh - 22px);padding:14px;background:#151718f5;color:#f8f8f8;border:1px solid #5a5a5a;border-radius:12px}
#mobile-tournament-info::backdrop{background:#000a}
#mobile-info-close{float:right;font-size:1.5rem;min-height:39px;padding:0 .64rem}
#mobile-info-title{padding:5px 42px 4px 2px;font-size:1.04rem}
#mobile-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 0}
#mobile-info-grid div{min-width:0;padding:7px 3px;text-align:center;border-bottom:1px solid #45484b;border-right:1px solid #45484b}
#mobile-info-grid div:nth-child(even){border-right:0}
#mobile-info-grid dt{font-size:.76rem;color:#c1c6c6}
#mobile-info-grid dd{margin:2px 0 0;font-size:clamp(.94rem,4vw,1.28rem);font-weight:850;font-variant-numeric:tabular-nums}
#mobile-info-grid div:nth-child(-n+2) dd{font-size:clamp(2.1rem,10vw,3.1rem)}
@media(prefers-reduced-motion:reduce){body[data-mobile-poker] #game .acting .seat-plate::after{transition:none}}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="0"]{--w-x:35%;--w-y:93%;--hole-x:35%;--hole-y:95%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="1"]{--w-x:21%;--w-y:72%;--hole-x:21%;--hole-y:77%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="2"]{--w-x:23%;--w-y:49%;--hole-x:23%;--hole-y:54%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="3"]{--w-x:21%;--w-y:28%;--hole-x:21%;--hole-y:33%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="4"]{--w-x:35%;--w-y:11%;--hole-x:35%;--hole-y:16%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="5"]{--w-x:65%;--w-y:11%;--hole-x:65%;--hole-y:16%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="6"]{--w-x:79%;--w-y:28%;--hole-x:79%;--hole-y:33%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="7"]{--w-x:77%;--w-y:49%;--hole-x:77%;--hole-y:54%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="8"]{--w-x:79%;--w-y:72%;--hole-x:79%;--hole-y:77%}
/* Override shared desktop and compact-table form rules in both automatic and forced mode. */
body[data-mobile-poker] #game:not([data-watching]) .player-area #actions{
 display:flex!important;flex-flow:column nowrap!important;align-items:stretch;justify-content:flex-start;
 width:100%;height:auto;min-width:0;box-sizing:border-box;
}
body[data-mobile-poker] #game:not([data-watching]) .player-area #action-buttons{flex:0 0 auto;height:auto;flex-wrap:nowrap;align-items:stretch;box-sizing:border-box}
body[data-mobile-poker] #game:not([data-watching]) .player-area #raise-controls:not([hidden]){flex:none;align-self:flex-end;width:68%;box-sizing:border-box}
body[data-mobile-poker] #game:not([data-watching]) .player-area #raise-controls > div{display:flex}
body[data-mobile-poker] #game:not([data-watching]) .player-area{height:auto;min-height:118px;block-size:auto}
body[data-mobile-poker] #game .game-heading #leave{display:none}
body[data-mobile-poker] #game .game-heading #back{padding:.18rem .36rem;font-size:.72rem}
body[data-mobile-poker] #game .game-heading .eyebrow{font-size:.6rem;letter-spacing:.035em}
body[data-mobile-poker] #game .table-heading{min-height:29px;padding-block:0}
body[data-mobile-poker] #game .table-layout{height:clamp(345px,calc(100svh - 226px),685px)}
body[data-mobile-poker] #game .table-layout .seat[data-position]{box-sizing:border-box;width:clamp(65px,21cqw,96px)}
body[data-mobile-poker] #game .table-layout .seat.mine{width:clamp(84px,28cqw,130px);top:84%;outline:none}
body[data-mobile-poker] #game .seat-row{width:100%;box-sizing:border-box}
body[data-mobile-poker] #game .seat-plate{width:100%;min-width:0;box-sizing:border-box}
body[data-mobile-poker] #game .table-layout .seat.acting{outline:none}
body[data-mobile-poker] #game .seat-row .seat-plate small{font-size:clamp(.66rem,3cqw,1rem)}
body[data-mobile-poker] #game .mine .seat-plate small{font-size:clamp(.85rem,4cqw,1.2rem)}
body[data-mobile-poker] #game .seat-row .seat-plate small[data-seat-status]{font-size:clamp(.55rem,2.38cqw,.76rem)}
body[data-mobile-poker] #game .seat-row>.avatar:first-child{font-size:clamp(.85rem,4cqw,1.2rem)}
body[data-mobile-poker] #game #pot{top:63%}
body[data-mobile-poker] #game #board{top:70%;width:76%}
body[data-mobile-poker] #game #board .card.empty{visibility:hidden}
body[data-mobile-poker] #game .seat[data-position="1"],body[data-mobile-poker] #game .seat[data-position="8"]{--m-y:59.5%}
body[data-mobile-poker] #game .seat[data-position="2"],body[data-mobile-poker] #game .seat[data-position="7"]{--m-y:43%}
body[data-mobile-poker] #game .seat[data-position="3"],body[data-mobile-poker] #game .seat[data-position="6"]{--m-y:27%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor):is([data-position="1"],[data-position="8"]){--w-y:63%;--hole-y:59%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor):is([data-position="2"],[data-position="7"]){--w-y:42%;--hole-y:46%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor):is([data-position="3"],[data-position="6"]){--w-y:29%;--hole-y:27%}
body[data-mobile-poker] #game[data-heads-up] .mobile-wager[data-position="5"]{--w-x:50%}
body[data-mobile-poker] #game #turn{display:none}
body[data-mobile-poker] #game #table-chat .chat-messages{height:clamp(5.5rem,22svh,10rem);min-height:0;max-height:none;overflow:auto}
body[data-mobile-poker] #game .phone-table-tools:not([hidden]){display:flex;gap:.4rem;flex-wrap:wrap}
@media(max-height:730px){
 body[data-mobile-poker] #game .table-layout{height:clamp(338px,calc(100svh - 212px),530px)}
 body[data-mobile-poker] #game .table-layout .seat.mine{top:85%}
 body[data-mobile-poker] #game .seat-row>.avatar:first-child{height:clamp(32px,10cqw,44px)!important;width:clamp(32px,10cqw,44px)!important}
}
body[data-mobile-poker] #game .game-heading{height:36px;min-height:36px;padding-block:0}
body[data-mobile-poker] #game .game-heading #back,body[data-mobile-poker] #game .game-heading .table-mute{min-height:32px}
body[data-mobile-poker] #game .table-heading{margin:0!important;padding-block:0}
body[data-mobile-poker] #game .table-layout{height:clamp(305px,calc(100svh - 251px),665px)}
@media(max-height:730px){
 body[data-mobile-poker] #game .table-layout{height:clamp(290px,calc(100svh - 248px),485px)}
}

body[data-mobile-poker] #game .mobile-felt-mark[data-brand="campaign"]{top:47%;height:17%;opacity:.11;display:grid;place-items:center}
body[data-mobile-poker] #game .mobile-felt-mark img{display:block;height:100%;width:auto;max-width:100%;max-height:100%;object-fit:contain;filter:grayscale(1);mix-blend-mode:screen}
body[data-mobile-poker] #game #board{top:73%;width:73%}
body[data-mobile-poker] #game #pot{top:66%}
@media(min-width:651px){
 body[data-mobile-poker] #game .table-layout{height:clamp(305px,calc(100svh - 275px),665px)}
}
body[data-mobile-poker] #game .mobile-felt-mark[data-brand="campaign"]{top:47%;width:40%;height:clamp(50px,21cqw,94px);opacity:.09;overflow:hidden}
body[data-mobile-poker] #game .mobile-felt-mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;min-height:0;min-width:0}
body[data-mobile-poker] #game .mobile-table-status{top:37%;width:46%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="2"]{--w-x:18%;--w-y:34%}
body[data-mobile-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="7"]{--w-x:82%;--w-y:34%}
body[data-mobile-poker] #game .mobile-felt-mark:is([data-brand="remax"],[data-brand="vet"]){left:50%;top:48%;width:43%;height:clamp(40px,17cqw,72px);opacity:.15;transform:translateX(-50%);overflow:hidden}
body[data-mobile-poker] #game .mobile-felt-mark[data-brand="remax"] img{filter:none;mix-blend-mode:normal}

body[data-mobile-poker] #game .own-seat-holding{position:relative}
body[data-mobile-poker] #game .felt-dealer-anchor[data-position="0"]{--hole-x:47%;--hole-y:91%}
body[data-mobile-poker] #game .felt-dealer-chip{font-size:.74rem}

body[data-mobile-poker] #game .felt-lines{display:none}
/* Keep recognizable artwork on compact felt, below the cards and controls. */
body[data-mobile-poker] #game[data-theme] .felt .mobile-felt-mark{
 top:38%;width:57%;height:clamp(72px,31cqw,142px);opacity:.145;z-index:0;
}
body[data-mobile-poker] #game[data-theme] .felt .mobile-felt-mark:is([data-brand="remax"],[data-brand="vet"]){
 top:49%;transform:translate(-50%,-50%);opacity:.23;
}
body[data-mobile-poker] #game[data-theme]:not([data-theme="classic"]) .felt-lines{
 display:block;inset:0;z-index:0;border:0;pointer-events:none;
}
body[data-mobile-poker] #game[data-theme]:not([data-theme="classic"]) .felt-lines::before{
 top:15%;left:11%;width:clamp(29px,12cqw,57px);opacity:.46;
}
body[data-mobile-poker] #game[data-theme]:not([data-theme="classic"]) .felt-lines::after{
 right:11%;bottom:13%;width:clamp(24px,9cqw,45px);opacity:.34;
}
body[data-mobile-poker] #game[data-theme="pinup"] .felt-lines::before{width:clamp(44px,15cqw,70px);opacity:.78}
body[data-mobile-poker] #game[data-theme="pinup"] .felt-lines::after{width:clamp(36px,12cqw,58px);opacity:.59}
body[data-mobile-poker] #game[data-theme]:is([data-theme="remax"],[data-theme="vet"]) .felt-lines{display:none}
body[data-mobile-poker] #game[data-theme]:not(:is([data-theme="classic"],[data-theme="blue"],[data-theme="burgundy"],[data-theme="violet"],[data-theme="remax"],[data-theme="vet"])){
 --mobile-felt:var(--tf);--mobile-felt-mid:var(--te)
}
body[data-mobile-poker] #game[data-watching] #mobile-tray-toggle{display:none}

/* Keep the optional override compact and inside the casual lobby card. */
#fun-entry .fun-entry-controls{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}
#fun-entry #mobile-choice-lobby{gap:.1rem;margin:0}
#fun-entry #mobile-choice-lobby label{display:inline-flex;align-items:center;gap:.35rem;min-height:32px;white-space:nowrap;margin:0;color:var(--text)}
#fun-entry #mobile-choice-lobby input[type="checkbox"]{flex:0 0 15px;width:15px;height:15px;min-width:15px;min-height:15px;margin:0;padding:0}
#fun-entry .mobile-view-help{position:relative}
#fun-entry .mobile-view-help summary{list-style:none;display:grid;place-items:center;width:32px;height:32px;cursor:pointer;color:var(--muted)}
#fun-entry .mobile-view-help summary::-webkit-details-marker{display:none}
#fun-entry .mobile-view-help summary span{display:grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font:700 .71rem/1 system-ui,sans-serif}
#fun-entry .mobile-view-help summary:focus-visible{outline:2px solid currentColor;outline-offset:-3px;border-radius:5px}
#fun-entry .mobile-view-help p{position:absolute;top:100%;right:0;z-index:4;margin:.15rem 0 0;padding:.6rem .7rem;width:min(13rem,62vw);background:#172b25;border:1px solid #648579;border-radius:7px;color:#edf8f0;font-size:.82rem;line-height:1.35;box-shadow:0 6px 14px #0008}
@media(max-width:500px){
 #fun-entry .fun-entry-controls{width:100%;justify-content:space-between;gap:.35rem}
 #fun-entry .mobile-view-help p{right:auto;left:-85px}
}
/* Make the primary image fill the portrait with a small, attached badge. */
body[data-mobile-poker] #game .seat-row .seat-identity-picture.has-both > :not(.seat-badge){
 width:100%;height:100%;min-width:0;flex:none;object-fit:cover;
}
body[data-mobile-poker] #game .seat-row .seat-identity-picture.has-both>.seat-badge{
 bottom:1px;right:1px;width:clamp(13px,4.05cqw,18px)!important;height:clamp(13px,4.05cqw,18px)!important;
}
/* The casual waiting screen can show the full-color badge without shrinking cards. */
body[data-mobile-poker] #game[data-casual][data-theme] .felt :is(.mobile-felt-mark,.mobile-felt-mark>img){transition:opacity .3s ease,filter .3s ease}
body[data-mobile-poker] #game[data-casual][data-theme][data-felt-idle] .felt .mobile-felt-mark{
 top:21%;left:50%;width:76%;height:55%;opacity:1;transform:translateX(-50%);
}
body[data-mobile-poker] #game[data-casual][data-felt-idle] .felt .mobile-felt-mark>img{filter:none;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){
 body[data-mobile-poker] #game[data-casual][data-theme] .felt :is(.mobile-felt-mark,.mobile-felt-mark>img){transition:none}
}

/* Keep the mobile hero's identity and hole cards beside one another, not stacked. */
body[data-mobile-poker] #game .table-layout .felt{inset-block:3.5% 18%}
body[data-mobile-poker] #game .table-layout .seat.mine{top:81%}
body[data-mobile-poker] #game .seat.mine .own-pocket{
 left:calc(50% + 10cqw);top:14px;bottom:auto;transform:none;
}
body[data-mobile-poker] #game .mine .pocket-reveal-hint{left:calc(50% + 10cqw);top:clamp(57px,calc(18cqw + 12px),93px);bottom:auto}
.mobile-quick-options{display:none}
body[data-mobile-poker] #game .mobile-quick-options{
 display:flex;align-items:center;justify-content:space-between;gap:5px;margin:3px 0 4px;
}
body[data-mobile-poker] #game #mobile-presence:not([hidden]){
 display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:0;padding:0 8px;
 color:#fff;font-size:.82rem;
}
body[data-mobile-poker] #game #mobile-sit-out{
 appearance:auto;flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;accent-color:#76b995;
}
body[data-mobile-poker] #game #mobile-tray-toggle{position:static;min-height:40px;margin-left:auto}
body[data-mobile-poker] #game #mobile-tray{margin:0 0 5px}
body[data-mobile-poker] #game #mobile-tray #straddle-description:not([hidden]){
 position:static;width:auto;margin:3px 0 0;box-shadow:none;
}
body[data-mobile-poker] #game #pot{top:59%}
body[data-mobile-poker] #game #board{top:66%}
/* The mobile options row is still useful when no betting or advance action is available. */
body[data-mobile-poker] #game:not([data-watching]) .player-area:has(#action-buttons:empty):has(#raise-controls[hidden]):has(#pre-actions[hidden]){
 display:block;min-height:0;
}
body[data-mobile-poker] #game:not([data-watching]) .player-area:has(#action-buttons:empty):has(#raise-controls[hidden]):has(#pre-actions[hidden]) .phone-action-idle{display:none}

/* Use the space above the felt to increase the gaps between the upper seats. */
body[data-mobile-poker] #game .seat:is([data-position="4"],[data-position="5"]){--m-y:10.5%}
body[data-mobile-poker] #game .table-layout[data-heads-up] .seat:not(.mine){--m-y:10.5%}
body[data-mobile-poker] #game .seat:is([data-position="3"],[data-position="6"]){--m-y:21%}
body[data-mobile-poker] #game .seat:is([data-position="2"],[data-position="7"]){--m-y:41.5%}
body[data-mobile-poker] #game .seat:is([data-position="1"],[data-position="8"]){--m-y:62%}

@media(max-height:610px){
 body[data-mobile-poker] #game .seat:is([data-position="3"],[data-position="6"]){--m-y:21%}
 body[data-mobile-poker] #game .seat:is([data-position="2"],[data-position="7"]){--m-y:42%}
 body[data-mobile-poker] #game .seat:is([data-position="1"],[data-position="8"]){--m-y:63%}
}

body[data-mobile-poker] #game .mobile-wager{gap:3px}
body[data-mobile-poker] #game .mobile-wager .mobile-denoms{
 gap:1px;flex-wrap:wrap;max-width:clamp(46px,16cqw,74px);
}
body[data-mobile-poker] #game .mobile-wager .mobile-denom{
 width:clamp(13px,4.3cqw,20px);flex:none;box-sizing:border-box;border-width:1px;
 font-size:clamp(6px,1.8cqw,8px);line-height:1;
}
body[data-mobile-poker] #game .mobile-wager .mobile-denom[data-height="2"]{margin-bottom:2px}
body:is([data-mobile-poker],[data-desktop-poker]) #game .flying-chip:not(.payout-chip){background:var(--flight-denom,#66402a)}
/* Give the hero's full wager a separate lane to the right of the hole cards. */
body[data-mobile-poker] #game .mobile-wager[data-position="0"]{
 --w-x:63%;--w-y:98%;transform:translateY(-50%);
}
@media(min-width:451px) and (max-height:860px){
 body[data-mobile-poker] #game #pot{top:56%}
 body[data-mobile-poker] #game #board{top:63%}
}
@media(max-height:610px){
 body[data-mobile-poker] #game #pot{top:55%}
 body[data-mobile-poker] #game #board{top:62%}
}

/* Mirror the side bets with a reserved inner edge for the full amount. */
body[data-mobile-poker] #game .mobile-wager:is([data-position="1"],[data-position="2"],[data-position="3"]){
 --w-x:33%;transform:translate(-100%,-50%);
}
body[data-mobile-poker] #game .mobile-wager:is([data-position="6"],[data-position="7"],[data-position="8"]){
 --w-x:67%;transform:translateY(-50%);flex-direction:row-reverse;
}
body[data-mobile-poker] #game .mobile-wager:is([data-position="3"],[data-position="6"]){--w-y:28%}
body[data-mobile-poker] #game .mobile-wager:is([data-position="2"],[data-position="7"]){--w-y:45%}
body[data-mobile-poker] #game .mobile-wager:is([data-position="1"],[data-position="8"]){--w-y:57%}
body[data-mobile-poker] #game .mobile-wager:not([data-position="0"]) .mobile-denoms{
 flex-wrap:nowrap;max-width:none;gap:0;padding-inline-end:1px;
}
body[data-mobile-poker] #game .mobile-wager:not([data-position="0"]) .mobile-denom + .mobile-denom{margin-inline-start:-6px}
body[data-mobile-poker] #game .mobile-wager:not([data-position="0"]) .mobile-denom:nth-child(n+5){margin-inline-start:-10px}
body[data-mobile-poker] #game .mobile-wager:not([data-position="0"]) b{
 flex:none;padding:2px 4px;background:#08281e;font-size:clamp(.63rem,2.85cqw,.78rem);
}
body[data-mobile-poker] #game .mobile-wager:is([data-position="4"],[data-position="5"]){--w-y:max(19%,58px)}
body[data-mobile-poker] #game .mobile-wager[data-position="4"]{--w-x:35%;transform:translate(-100%,-50%)}
body[data-mobile-poker] #game .mobile-wager[data-position="5"]{--w-x:65%;transform:translateY(-50%);flex-direction:row-reverse}
body[data-mobile-poker] #game .table-layout[data-heads-up] .mobile-wager[data-position="5"]{--w-x:63%}
body[data-mobile-poker] #game .mobile-table-status{width:29%}
@media (min-width:351px) and (max-height:730px){
 body[data-mobile-poker] #game .mobile-wager:is([data-position="4"],[data-position="5"]){--w-y:max(19%,65px)}
}
@media(max-width:350px){
 body[data-mobile-poker] #game .mobile-wager:is([data-position="1"],[data-position="2"],[data-position="3"]){--w-x:37%}
 body[data-mobile-poker] #game .mobile-wager:is([data-position="6"],[data-position="7"],[data-position="8"]){--w-x:63%}
 body[data-mobile-poker] #game .mobile-wager:is([data-position="3"],[data-position="6"]){--w-y:35%}
 body[data-mobile-poker] #game .mobile-wager:is([data-position="2"],[data-position="7"]){--w-y:45%}
 body[data-mobile-poker] #game .mobile-wager:is([data-position="1"],[data-position="8"]){--w-y:55%}
 body[data-mobile-poker] #game .mobile-wager[data-position="4"]{--w-x:41%}
 body[data-mobile-poker] #game .mobile-wager[data-position="5"]{--w-x:59%}
 body[data-mobile-poker] #game #pot{top:62%}
 body[data-mobile-poker] #game #board{top:73%}
 body[data-mobile-poker] #game .mobile-table-status{width:22%;font-size:.55rem}
}

/* Separate the upper pair from their bets without shifting either side rail. */
body[data-mobile-poker] #game .table-layout:not([data-heads-up]) .seat:is([data-position="4"],[data-position="5"]){
 --m-y:calc(10.5% - 6px);
}
body[data-mobile-poker] #game .table-layout:not([data-heads-up]) .mobile-wager:is([data-position="4"],[data-position="5"]){
 top:calc(var(--w-y) + 3px);
}
@media (min-width:351px) and (max-height:730px){
 body[data-mobile-poker] #game .table-layout:not([data-heads-up]) .mobile-wager:is([data-position="4"],[data-position="5"]){
  top:calc(var(--w-y) + 1px);
 }
}

/* Give a queued show decision a clear lift on the original pocket card. */
body[data-mobile-poker] #game .seat.mine .own-seat-holding .pocket-queued{transform:translateY(-7px);outline-width:2px}

/* Keep tournament status above the pot pile, even when its text wraps. */
body[data-mobile-poker] #game .mobile-stack:not(:empty) + .mobile-table-status{
 top:auto;bottom:calc(50% + 20px)
}
