.desktop-bottom-rail{display:contents}
#desktop-chat-dock:empty{display:none}
body[data-desktop-poker] #main{max-width:1480px;padding-inline:clamp(8px,2vw,27px)}
body[data-desktop-poker] #game{background:radial-gradient(ellipse at 55% 0,#202338,#0e1119 88%);border-radius:14px;padding:8px 12px;position:relative}
body[data-desktop-poker] #game-grid{display:block}
body[data-desktop-poker] #game .game-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px;margin-top:8px}
body[data-desktop-poker] #game .game-heading{min-height:35px}
body[data-desktop-poker] #game .table-heading{margin:2px 0 0}
body[data-desktop-poker] #game .table-heading h1{font-size:clamp(1.2rem,2.15vw,1.75rem);line-height:1.1}
body[data-desktop-poker] #game .mobile-top-tools{position:relative;z-index:10;margin-inline-start:.6rem}
body[data-desktop-poker] #game :is(.dealer-rail,.felt-label,#tournament,.turn-row,#hand-stakes,#break){display:none}
body[data-desktop-poker] #game .felt-lines{display:none}
body[data-desktop-poker] #game .table-layout{display:block;height:clamp(355px,57svh,610px);min-height:0;margin:0;width:100%;clear:both;position:relative;container-type:inline-size}
body[data-desktop-poker] #game .table-layout .felt{
 position:absolute;inset:14% 12% 19%;width:auto;height:auto;min-height:0;border:clamp(10px,1.4cqw,22px) solid #191b21;border-bottom-color:#282a31;
 border-radius:49% / 48%;padding:0;overflow:visible;box-shadow:inset 0 0 22px 9px #050908d4,0 5px 0 #41454d,0 14px 28px #0008;
 background:radial-gradient(ellipse at 50% 52%,var(--desktop-felt,var(--tf,#1a6e32)) 0,var(--desktop-edge,var(--te,#104e26)) 76%,#071311 100%)
}
body[data-desktop-poker] #game .felt :is(.mobile-stack,.mobile-table-status,#board,#pot,.mobile-wagers){position:absolute;z-index:1}
/* One desktop watermark, below the board, pot, and betting overlays.
   Keep its footprint constant between the lobby state and play. */
body[data-desktop-poker] #game[data-theme] .felt .mobile-felt-mark{
 position:absolute;display:block;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:62%;height:65%;
 z-index:0;pointer-events:none;background:var(--desktop-felt-art,var(--tm)) center/contain no-repeat;
 opacity:var(--desktop-felt-opacity,.22);filter:var(--desktop-felt-filter,saturate(.55));
 transition:opacity .3s ease,filter .3s ease
}
body[data-desktop-poker] #game .felt .mobile-felt-mark>img{display:none}
body[data-desktop-poker] #game[data-casual][data-felt-idle] .felt .mobile-felt-mark{
 opacity:var(--desktop-felt-idle-opacity,.65);filter:none
}
@media(prefers-reduced-motion:reduce){
 body[data-desktop-poker] #game[data-theme] .felt .mobile-felt-mark{transition:none}
}
body[data-desktop-poker] #game .mobile-table-status:empty{display:none}
body[data-desktop-poker] #game .mobile-table-status:not(:empty){display:grid;top:9%;left:50%;transform:translateX(-50%);min-width:28%;max-width:50%;text-align:center;line-height:1.26;color:#d7eddb;background:#071d1499;border-radius:7px;padding:3px 8px;font-size:clamp(.72rem,1.22cqw,.92rem);pointer-events:none}
body[data-desktop-poker] #game #pot{top:32%;left:50%;transform:translateX(-50%);margin:0;padding:.16rem .55rem;background:#071d14cc;border:0;color:#fff;font-size:clamp(.79rem,1.28cqw,1.1rem);white-space:nowrap}
body[data-desktop-poker] #game #board{top:47%;left:50%;transform:translateX(-50%);width:42%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0;padding:0;align-items:start}
body[data-desktop-poker] #game #board .card,body[data-desktop-poker] #game #board .deal-flip-frame{width:100%;font-size:clamp(1.04rem,2.35cqw,1.8rem)}
body[data-desktop-poker] #game #board .card.empty{visibility:hidden}
body[data-desktop-poker] #game .mobile-stack:not(:empty){display:grid;justify-items:center;gap:1px;top:79%;left:50%;transform:translateX(-50%);color:#fff}
body[data-desktop-poker] #game .mobile-denoms{display:flex;justify-content:center;align-items:end;gap:3px}
body[data-desktop-poker] #game .mobile-denom{display:grid;place-items:center;width:clamp(15px,2.05cqw,31px);aspect-ratio:1;border-radius:50%;border:2px dashed #fff;background:#fff;box-shadow:inset 0 0 0 2px var(--denom),0 2px 0 var(--denom),0 4px 3px #000a;color:#131a20;font-size:clamp(7px,.98cqw,10px);font-weight:900}
body[data-desktop-poker] #game .mobile-denom[data-height="3"],body[data-desktop-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-desktop-poker] #game .mobile-wager b{color:#fff;background:#071b11d9;border-radius:12px;padding:1px 6px;font-size:clamp(.67rem,1.2cqw,.94rem);white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-desktop-poker] #game .mobile-wagers{display:block;inset:0;pointer-events:none}
body[data-desktop-poker] #game .mobile-wager{display:flex;align-items:center;position:absolute;left:var(--w-x);top:var(--w-y);transform:translate(-50%,-50%);white-space:nowrap}
body[data-desktop-poker] #game .mobile-wager-chip{width:clamp(14px,2cqw,24px);aspect-ratio:1;border-radius:50%;border:2px dashed #dce9fb;background:#3779c1;box-shadow:0 2px 2px #000a}
body[data-desktop-poker] #game .table-layout .seats{display:contents}
body[data-desktop-poker] #game .table-layout .seat[data-position]{
 position:absolute;inset:auto auto auto auto;top:var(--wide-y);left:var(--wide-x);width:clamp(76px,14.7cqw,200px);max-width:none;
 transform:translate(-50%,-50%);z-index:3;min-width:0;padding:0;margin:0;outline:0;box-shadow:none;background:none;border:0
}
body[data-desktop-poker] #game .table-layout .seat.mine{top:88%;left:43%;width:clamp(120px,17cqw,233px);z-index:5}
body[data-desktop-poker] #game .table-layout[data-heads-up] .seat:not(.mine){--wide-x:56%;--wide-y:9%}
body[data-desktop-poker] #game .table-layout .seat:is(.away,.out-of-hand){opacity:.51}
body[data-desktop-poker] #game .table-layout .seat.acting{opacity:1;z-index:4}
body[data-desktop-poker] #game .seat-row{display:flex;position:relative;gap:0;align-items:center;min-width:0;width:100%;isolation:isolate}
body[data-desktop-poker] #game .seat-row .seat-plate{min-width:0;flex:1;overflow:hidden;border:1px solid #545956;background:#17191b;border-radius:999px;text-align:center;position:relative;line-height:1.12}
body[data-desktop-poker] #game .seat-row .seat-plate strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:clamp(.72rem,1.20cqw,.99rem);padding:3px 5px;font-weight:670}
body[data-desktop-poker] #game .seat-row .seat-plate small{display:block;color:#fff;background:#101111;font-size:clamp(.84rem,1.44cqw,1.24rem);font-weight:800;padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
body[data-desktop-poker] #game .seat-row .seat-plate small[data-seat-status]{font-size:clamp(.63rem,1.04cqw,.90rem)}
body[data-desktop-poker] #game .seat.acting .seat-plate{border-color:#dde5e2}
body[data-desktop-poker] #game .seat.acting .seat-plate::after{position:absolute;content:"";inset:0 auto 0 0;width:var(--mobile-timer,100%);background:#e5edf2;opacity:.32;pointer-events:none;transition:width .25s linear}
body[data-desktop-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="1"]{background:#efce77;color:#16120a}
body[data-desktop-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="2"]{background:#cbccd0;color:#16171b}
body[data-desktop-poker] #game :is(.seat-plate small,.mobile-rank)[data-medal="3"]{background:#c79d77;color:#1c120a}
body[data-desktop-poker] #game .seat-row .mobile-recent-action{color:#9ae3ff}
body[data-desktop-poker] #game .seat-row > :first-child:not(.seat-plate){width:clamp(34px,5.1cqw,62px);height:clamp(34px,5.1cqw,62px);z-index:2;flex:none;margin:0 -10px 0 0;isolation:isolate}
body[data-desktop-poker] #game .seat-row > :first-child img{max-width:100%;object-fit:cover}
body[data-desktop-poker] #game .seat:is(.mine,[data-position="1"],[data-position="2"],[data-position="3"]) .seat-row{flex-direction:row-reverse}
body[data-desktop-poker] #game .seat:is(.mine,[data-position="1"],[data-position="2"],[data-position="3"]) .seat-row > :first-child:not(.seat-plate){margin:0 0 0 -10px}
body[data-desktop-poker] #game .seat:is(.mine,[data-position="1"],[data-position="2"],[data-position="3"]) .seat-plate :is(strong,small){padding-inline-end:11px}
body[data-desktop-poker] #game .seat:not(:is(.mine,[data-position="1"],[data-position="2"],[data-position="3"])) .seat-plate :is(strong,small){padding-inline-start:11px}
body[data-desktop-poker] #game .seat-details-button{display:block;width:100%;padding:0;border:0;background:none;color:inherit;min-height:0}
body[data-desktop-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;margin:0;border:0}
body[data-desktop-poker] #game .seat-row .mobile-seat-cards{display:flex;gap:2px;position:absolute;left:51%;top:auto;bottom:70%;transform:translateX(-50%);z-index:-1}
body[data-desktop-poker] #game .seat-row .mobile-seat-cards .card{width:clamp(20px,3.32cqw,44px);font-size:clamp(.75rem,1.4cqw,1.1rem)}
body[data-desktop-poker] #game .seat.mine .own-pocket{position:absolute;z-index:1;left:45%;bottom:72%;transform:translateX(-50%);width:max-content;flex-wrap:nowrap;margin:0;padding:0;border:0}
body[data-desktop-poker] #game .seat.mine .own-seat-holding .card{width:clamp(36px,4.4cqw,65px);font-size:clamp(1.12rem,2.4cqw,1.65rem)}
body[data-desktop-poker] #game .seat-bank:not([hidden]){display:flex;justify-content:center;gap:.32rem;color:#dce7df;font-size:.7rem}
body[data-desktop-poker] #game .seat-bank b{font-size:inherit}
body[data-desktop-poker] #game .seat.mine .pocket-reveal-hint{position:absolute;min-width:max-content;left:100%;bottom:0}
body[data-desktop-poker] #game .mobile-equity{display:block;position:absolute;right:0;top:0;z-index:2;background:#234d80;border-radius:4px;color:#fff;font-weight:850;font-size:.75rem;padding:1px 3px}
body[data-desktop-poker] #game .desktop-bottom-rail{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px;align-items:stretch}
body[data-desktop-poker] #game .desktop-bottom-rail:has(#desktop-chat-dock>#table-chat[hidden]){grid-template-columns:minmax(0,1fr);justify-items:end}
body[data-desktop-poker] #game #desktop-chat-dock{min-width:0}
body[data-desktop-poker] #game #desktop-chat-dock:has(#table-chat[hidden]){display:none}
body[data-desktop-poker] #game #table-chat{padding:.36rem .52rem}
body[data-desktop-poker] #game #table-chat .chat-messages{height:60px;min-height:60px}
body[data-desktop-poker] #game #table-chat .chat-caption:not(#chat-status){display:none}
body[data-desktop-poker] #game .desktop-bottom-rail .player-area{position:static;align-self:start;width:100%;max-width:780px;margin:0;padding:4px}
body[data-desktop-poker] #game .desktop-bottom-rail #actions{display:flex;flex-flow:column nowrap;align-items:stretch;gap:5px;width:100%;justify-content:start}
body[data-desktop-poker] #game .desktop-bottom-rail #action-buttons{display:flex;flex-flow:row nowrap;order:3;width:100%;gap:6px}
body[data-desktop-poker] #game .desktop-bottom-rail #action-buttons button{min-width:0;flex:1 1 0;margin:0;line-height:1.2}
body[data-desktop-poker] #game[data-your-turn] .desktop-bottom-rail #action-buttons button{padding:.25rem;min-height:47px;border:1px solid #cb4b43;border-radius:9px;color:white;background:linear-gradient(#b52d29,#801312);font-size:clamp(.9rem,1.45vw,1.23rem);font-weight:850}
body[data-desktop-poker] #game .desktop-bottom-rail #raise-controls:not([hidden]){display:grid;order:1;align-self:end;width:73%;gap:4px;margin:0;padding:0;border:0;background:none}
body[data-desktop-poker] #game .desktop-bottom-rail #raise-controls>div{display:flex;gap:5px;align-items:center;width:100%}
body[data-desktop-poker] #game .desktop-bottom-rail #raise-controls>label,body[data-desktop-poker] #game #raise-button{display:none}
body[data-desktop-poker] #game .desktop-bottom-rail #raise{width:72px;min-width:0;min-height:29px;font-size:.94rem;padding:1px 4px}
body[data-desktop-poker] #game .desktop-bottom-rail #raise-slider{flex:1;min-height:28px;margin:0}
body[data-desktop-poker] #game .desktop-bottom-rail .mobile-amount-presets button{flex:1;min-height:29px;min-width:0;padding:0;background:#902524;border:1px solid #c7413d;color:#fff}
body[data-desktop-poker] #game #pre-actions{order:1;align-self:end}
@media(prefers-reduced-motion:reduce){body[data-desktop-poker] #game .seat.acting .seat-plate::after{transition:none}}
body[data-desktop-poker] #game .seat[data-position="0"]{--wide-x:43%;--wide-y:88%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="0"]{--w-x:44%;--w-y:91%;--hole-x:44%;--hole-y:91%}
body[data-desktop-poker] #game .seat[data-position="1"]{--wide-x:16%;--wide-y:75%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="1"]{--w-x:19%;--w-y:74%;--hole-x:19%;--hole-y:74%}
body[data-desktop-poker] #game .seat[data-position="2"]{--wide-x:13%;--wide-y:50%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="2"]{--w-x:14%;--w-y:55%;--hole-x:14%;--hole-y:55%}
body[data-desktop-poker] #game .seat[data-position="3"]{--wide-x:18%;--wide-y:25%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="3"]{--w-x:21%;--w-y:26%;--hole-x:21%;--hole-y:26%}
body[data-desktop-poker] #game .seat[data-position="4"]{--wide-x:34%;--wide-y:11%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="4"]{--w-x:36%;--w-y:13%;--hole-x:36%;--hole-y:13%}
body[data-desktop-poker] #game .seat[data-position="5"]{--wide-x:65%;--wide-y:11%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="5"]{--w-x:63%;--w-y:13%;--hole-x:63%;--hole-y:13%}
body[data-desktop-poker] #game .seat[data-position="6"]{--wide-x:82%;--wide-y:25%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="6"]{--w-x:79%;--w-y:26%;--hole-x:79%;--hole-y:26%}
body[data-desktop-poker] #game .seat[data-position="7"]{--wide-x:87%;--wide-y:50%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="7"]{--w-x:86%;--w-y:55%;--hole-x:86%;--hole-y:55%}
body[data-desktop-poker] #game .seat[data-position="8"]{--wide-x:81%;--wide-y:75%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="8"]{--w-x:80%;--w-y:75%;--hole-x:80%;--hole-y:75%}
body[data-desktop-poker] #game #board{top:43%;width:min(37%,345px)}
body[data-desktop-poker] #game .mobile-stack:not(:empty){top:78%}
body[data-desktop-poker] #game .table-layout .seat.mine{top:91%;left:44%}
body[data-desktop-poker] #game .seat.mine .seat-row{z-index:2}
body[data-desktop-poker] #game .desktop-bottom-rail:has(#desktop-chat-dock>#table-chat[hidden]) .player-area{max-width:min(680px,62%)}
/* Keep the desktop turn indicator readable without taking room beside actions. */
body[data-desktop-poker] #game .seat .active-seat-timer{
 clip-path:none;position:absolute!important;top:auto;bottom:calc(100% + 2px);left:auto;right:0;
 width:auto;height:auto;max-width:5.3rem;white-space:nowrap;overflow:hidden;
 background:#f4d179;color:#17130a;border-radius:999px;padding:1px 5px;font-size:.62rem;
}
body[data-desktop-poker] #game .seat .active-seat-timer :is(.seat-timer-track,.seat-timer-label){display:none}
body[data-desktop-poker] #game .seat.mine .own-pocket{bottom:83%}
body[data-desktop-poker] #game .mobile-wager[data-position="0"]{--w-x:33%;--w-y:91%}
body[data-desktop-poker] #game .seat.mine .own-pocket{bottom:107%}
body[data-desktop-poker] #game .mobile-stack:not(:empty){left:53%}
body[data-desktop-poker] #game .table-layout .seat.mine{left:34%;top:91%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="0"]{--w-x:29%;--w-y:88%;--hole-x:31%;--hole-y:86%}
body[data-desktop-poker] #game .table-layout .seat.mine{left:29%}
body[data-desktop-poker] #game :is(.mobile-wager,.felt-dealer-anchor)[data-position="0"]{--w-x:39%;--w-y:91%;--hole-x:42%;--hole-y:89%}

/* Desktop keeps one clear pot total above the board. */
body[data-desktop-poker] #game .mobile-table-status:not(:empty){top:1.5%}
body[data-desktop-poker] #game #pot{top:34%}
body[data-desktop-poker] #game #board{top:46%}
/* Reuse the same clay denominations as the pot, but reserve room for the total. */
body[data-desktop-poker] #game .mobile-wager{gap:3px}
body[data-desktop-poker] #game .mobile-wager .mobile-denoms{gap:1px}
body[data-desktop-poker] #game .mobile-wager .mobile-denom{
 width:clamp(13px,1.55cqw,21px);border-width:1px;box-sizing:border-box;
 font-size:clamp(6px,.65cqw,9px);line-height:1
}
body[data-desktop-poker] #game .mobile-wager .mobile-denom[data-height]:not([data-height="1"]){
 box-shadow:inset 0 0 0 2px var(--denom),0 3px 0 var(--denom),0 5px 3px #000a;margin-bottom:1px
}
body[data-desktop-poker] #game .seat-row > :first-child:not(.seat-plate){
 width:clamp(38px,5.5cqw,70px);height:clamp(38px,5.5cqw,70px)
}
/* Keep the lower side wagers away from the home pocket pair. */
body[data-desktop-poker] #game .mobile-wager[data-position="1"]{--w-y:62%}
body[data-desktop-poker] #game .mobile-wager[data-position="2"]{--w-x:22%;--w-y:51%}
body[data-desktop-poker] #game .mobile-wager[data-position="5"]{--w-x:72%;--w-y:17%}
body[data-desktop-poker] #game .mobile-wager[data-position="4"]{--w-x:30%;--w-y:26%}
body[data-desktop-poker] #game .mobile-wager[data-position="5"]{--w-y:26%}
/* Keep both of the local player's clocks together under the seat. */
body[data-desktop-poker] #game .desktop-seat-timing{display:flex;align-items:center;justify-content:center;gap:.4rem;white-space:nowrap}
body[data-desktop-poker] #game .desktop-seat-timing:not(:has(:is(.active-seat-timer,.seat-bank:not([hidden])))){display:none}
body[data-desktop-poker] #game .desktop-seat-timing .active-seat-timer{
 position:static!important;flex:none;width:max-content;max-width:none;transform:none;margin:0
}
body[data-desktop-poker] #game .desktop-seat-timing .active-seat-track{width:18px}
body[data-desktop-poker] #game .desktop-seat-timing :is(.active-seat-count,#seat-bank-clock){font-size:inherit}
body[data-desktop-poker] #game .desktop-seat-timing .active-seat-cue::before{content:none}
/* Opponents use the seat shading for ordinary turns; show a chip-sized
   countdown only once their time bank is running. */
body[data-desktop-poker] #game .seat:not(.mine) .active-seat-timer:not([data-bank-in-use]){display:none}
body[data-desktop-poker] #game .seat:not(.mine) .active-seat-timer[data-bank-in-use]{
 left:50%;right:auto;top:calc(100% + 3px);bottom:auto;transform:translateX(-50%);
 width:max-content;max-width:none;overflow:visible;z-index:2
}
body[data-desktop-poker] #game .seat:not(.mine) .active-seat-timer[data-bank-in-use]::before{content:"TIME BANK"}
body[data-desktop-poker] #game .seat:not(.mine) .active-seat-timer .active-seat-track{display:none}
/* The photo and ribbon share one portrait; the original 29px image sizing must not win. */
body[data-desktop-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-desktop-poker] #game .seat-row .seat-identity-picture.has-both>.seat-badge{
 bottom:0;right:0;width:clamp(15px,1.55cqw,22px)!important;height:clamp(15px,1.55cqw,22px)!important;
}
