/* One viewport for play. Secondary content scrolls only inside dialogs. */
.flying-card{position:fixed;display:block;z-index:1000;pointer-events:none;transform-style:preserve-3d;perspective:700px;will-change:transform,opacity}
.flying-card>.card{width:100%;height:100%;font-size:clamp(10px,1.2vw,18px);padding:9%;margin:0;box-shadow:0 5px 12px #0006}
.flying-card>.card span{font-size:1.15em}.flying-card>.card.back{font-size:18px;padding:0}
.motion-running .result-banner,.motion-running .seat-award,.motion-running .seat.winner .seat-state{visibility:hidden}
.motion-running .seat.winner{box-shadow:none}.motion-running .seat.winner .table-portrait .character-avatar{box-shadow:none}
.motion-running .reveal-hand,.motion-running .study-button{pointer-events:none}
@media(prefers-reduced-motion:reduce){.flying-card{will-change:auto}}
.table-stage .house-dealer{height:116px;justify-content:flex-start;padding:5px 0;background:linear-gradient(#233d2a,#15271d);border-radius:24px 24px 10px 10px;overflow:hidden}
.dealer-portrait{display:block;width:96px;height:88px;object-fit:cover;object-position:center 34%;border-radius:18px 18px 6px 6px}
.table-stage .house-dealer strong{margin-top:3px}.table-stage .house-dealer small{display:none}
@media(max-width:800px){.table-stage .house-dealer{height:77px;padding:3px 0;border-radius:17px 17px 7px 7px}.dealer-portrait{width:64px;height:60px;border-radius:12px 12px 4px 4px}.table-stage .house-dealer strong{font-size:7px;margin-top:2px}}
#player-count{display:block;width:100%;padding:12px;border:1px solid #73826d;border-radius:7px;background:#101b15;color:#edf1ec;font:inherit;min-height:44px}
.ev-report{width:100%;font-size:11px;line-height:1.7;margin-top:12px}.ev-report summary{cursor:pointer;color:#e6bc76}.ev-report p,.ev-report li{font-size:10px}.ev-scroll{max-width:100%;overflow-x:auto}.ev-scroll table{min-width:420px;font-size:10px}.ev-scroll th,.ev-scroll td{padding:8px}.grade-null{color:#b5c7ce;background:#29404a}
.table-stage .character-avatar{display:block;position:relative;width:34px;height:34px;flex:0 0 34px;border:2px solid var(--portrait-color,#8ba78f);border-radius:50%;background:#182b20;overflow:visible}
.character-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%;border-radius:50%}
.character-nit{--portrait-color:#9bb5d8}.character-tight-passive{--portrait-color:#a3c9bd}.character-tag{--portrait-color:#e5c17c}.character-loose-passive{--portrait-color:#87bc83}.character-lag{--portrait-color:#d68d72}
.portrait-badge{position:absolute;right:-4px;bottom:-3px;font-size:6px;line-height:10px;min-width:13px;padding:0 2px;text-align:center;background:var(--portrait-color);color:#18241c;border:1px solid #142219;border-radius:4px;font-weight:700}
.seat.active .character-avatar{box-shadow:0 0 0 2px #f5cf7a,0 0 12px #e6bc7660}.seat.winner .character-avatar{box-shadow:0 0 0 2px #f5d58a,0 0 16px #e9c86270}.seat.folded .character-avatar img{filter:grayscale(.65);opacity:.7}.seat-identity{min-width:0}.review-character-heading{display:flex;gap:12px;align-items:center;margin-bottom:12px}.review-character-heading h3{margin:0}.review-character-heading .character-avatar{display:block;position:relative;width:48px;height:48px;flex:0 0 48px;border-radius:50%;border:2px solid var(--portrait-color,#8ba78f)}
@media(max-width:800px){.table-stage .seat-top .character-avatar{display:block;width:26px;height:26px;flex-basis:26px;border-width:1px}.table-stage .seat-top{gap:3px}.table-stage .character-avatar .portrait-badge{font-size:5px;line-height:8px;min-width:11px;right:-3px;bottom:-2px;padding:0 1px}.table-stage .seat-identity .stack{font-size:9px}.table-stage .seat-identity small{font-size:6px}}
body.playing{height:100dvh;overflow:hidden;padding:0;display:flex;flex-direction:column}
body.playing>header{flex:0 0 56px;height:56px;position:relative;padding:0 20px}
body.playing>main{flex:1;min-height:0;width:100%;max-width:1440px;padding:6px 16px 0;display:flex;flex-direction:column;overflow:hidden}
.playing .heading{height:42px;flex:none;margin:0;gap:12px}.playing .heading h1,.playing .heading .eyebrow,.playing .session>span{display:none}.playing #blinds-info{font-size:12px;margin:0;max-width:none}.playing .session strong{margin:0;font-size:12px}
.playing #table-area{flex:1;min-height:0;display:grid;grid-template-rows:22px minmax(0,1fr) auto auto;gap:0}
.playing .table-summary{grid-row:1;margin:0;font-size:11px;text-align:center;line-height:22px}.playing .bet-legend{display:none}
.playing .arena{grid-row:2;position:relative;height:auto;min-height:0;width:100%;margin:0;overflow:hidden}
.table-stage{position:absolute;left:50%;top:50%;width:1080px;height:650px;transform:translate(-50%,-50%) scale(var(--stage-scale,1));transform-origin:center}
.table-stage .table{inset:65px 65px 65px;border-radius:46%;border-width:10px}
.table-stage .table-label{top:42px}.table-stage .center,.table-stage .hand-complete .center{top:135px}
.table-stage .seat{width:144px;height:165px;padding:6px}.table-stage .seat-0,.table-stage .seat-3{left:468px}.table-stage .seat-0{bottom:0}.table-stage .seat-3{top:0}.table-stage .seat-2{left:0;top:70px}.table-stage .seat-4{right:0;top:70px}.table-stage .seat-1{left:0;bottom:80px}.table-stage .seat-5{right:0;bottom:80px}
.table-stage .seat-state{font-size:9px;margin-bottom:3px}.table-stage .seat-top{gap:5px}.table-stage .avatar{width:22px;height:22px}.table-stage .hole .card{width:29px;height:39px;padding:4px;font-size:11px}.table-stage .hole .card span{font-size:14px}.table-stage .hole{margin:4px 0}.table-stage .reveal-hint{font-size:7px;line-height:10px;padding:0}.table-stage .action-badge{font-size:10px;padding:4px 1px;min-height:21px;margin-top:3px}.table-stage .profile{font-size:8px;margin-top:2px;padding-top:3px}.table-stage .player-label,.table-stage .seat-award{font-size:9px;line-height:12px;margin:1px 0}.table-stage .ante-paid{font-size:7px;line-height:10px;margin:0}.table-stage .study-button{width:28px;height:28px}.table-stage .position-markers{top:4px;left:5px;gap:2px}.table-stage .position-marker{font-size:8px;padding:2px 5px}.table-stage .seat-state{padding-left:38px;min-height:12px}.table-stage .seat-0 .table-bet{left:16px;bottom:calc(100% + 10px)}.table-stage .seat-3 .table-bet{left:16px;top:calc(100% + 10px)}.table-stage .seat-1 .table-bet,.table-stage .seat-2 .table-bet{left:calc(100% + 10px);top:50px}.table-stage .seat-4 .table-bet,.table-stage .seat-5 .table-bet{right:calc(100% + 10px);top:50px}
.dealer-chip{position:absolute;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;width:46px;height:46px;border:3px solid #f9f6e7;border-radius:50%;background:radial-gradient(circle,#fffdf0 50%,#d7d2be 52%,#f6f1db 67%);box-shadow:0 3px 0 #9b9786,0 5px 10px #0008;color:#162b21;pointer-events:none}.dealer-chip b{font-size:23px;line-height:24px}.dealer-chip small{font-size:6px;letter-spacing:.5px}.seat-0 .dealer-chip{right:-54px;top:-18px}.seat-3 .dealer-chip{right:-54px;bottom:-18px}.seat-1 .dealer-chip,.seat-2 .dealer-chip{right:-56px;top:0}.seat-4 .dealer-chip,.seat-5 .dealer-chip{left:-56px;top:0}
.playing .controls{grid-row:3;position:relative;inset:auto;width:100%;min-height:80px;max-height:none;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;border-radius:12px 12px 0 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));margin:0;flex-wrap:wrap}.playing .decision{display:block}.playing .decision strong{font-size:12px;margin:5px 0 0}.playing #actions{display:flex;gap:6px}.playing #actions>button{min-width:70px;min-height:42px}.playing .raise{display:flex;gap:6px;grid-row:auto;grid-column:auto;min-height:42px}.playing .raise input{width:90px}.playing .raise button{min-height:42px;min-width:80px}.playing .hand-tools{position:static;justify-content:flex-end;gap:6px}.playing .hand-tools #review-button,.playing .hand-tools #next{min-height:42px;padding:10px 16px}.playing .play-summary{grid-row:4;margin:0;padding:5px 16px;border-radius:0;min-height:30px;gap:12px;flex-wrap:nowrap}.playing .summary-grade{font-size:20px}.playing .play-summary small{width:auto;margin-left:auto}.playing .play-summary span{font-size:10px}
#history-dialog .bottom{display:grid;margin:16px 0;gap:20px}#history-dialog .note{display:block}#history-dialog .history{border:0;padding:0}#history-dialog .history ol{max-height:45dvh}#history-dialog{width:min(850px,95vw)}
@media(max-width:800px){
 .playing>header{height:46px;flex-basis:46px;padding:0 8px}.brand{font-size:19px}.brand span{font-size:6px}.header-actions{gap:4px}.header-actions button{padding:8px;font-size:10px;min-height:34px}.playing>main{padding:0 6px}.playing .heading{height:28px;gap:5px}.playing #blinds-info{font-size:9px;line-height:1.4;max-width:none}.playing .session strong{font-size:9px}.playing #table-area{grid-template-rows:18px minmax(0,1fr) auto auto}.playing .table-summary{font-size:9px;line-height:18px}
 .table-stage{width:360px;height:600px}.table-stage .table{inset:60px 7px 50px;border-width:6px;border-radius:43%}.table-stage .table-label{top:110px}.table-stage .center{top:139px}.table-stage .seat{width:98px;height:140px;padding:4px}.table-stage .seat-0,.table-stage .seat-3{left:131px}.table-stage .seat-0{bottom:0}.table-stage .seat-3{top:0}.table-stage .seat-2{top:70px;left:0}.table-stage .seat-4{top:70px;right:0}.table-stage .seat-1{bottom:100px;left:0}.table-stage .seat-5{bottom:100px;right:0}.table-stage .avatar{display:none}.table-stage .seat strong{font-size:9px}.table-stage .stack{font-size:10px}.table-stage .study-button{width:26px;height:26px;font-size:14px}.table-stage .seat-state{font-size:7px;padding-left:28px;min-height:10px;line-height:10px}.table-stage .seat-top{gap:2px}.table-stage .hole .card{width:25px;height:32px;font-size:10px;padding:3px}.table-stage .hole .card span{font-size:12px}.table-stage .hole{margin:3px 0}.table-stage .reveal-hint{font-size:6px;line-height:8px}.table-stage .action-badge{font-size:8px;padding:3px 0;min-height:17px;margin-top:2px}.table-stage .previous-action{font-size:7px}.table-stage .profile{font-size:6px;padding-top:2px;margin-top:1px}.table-stage .seat-award,.table-stage .player-label{font-size:7px;line-height:9px}.table-stage .ante-paid{font-size:6px;line-height:8px}.table-stage .position-markers{left:2px;top:2px}.table-stage .position-marker{font-size:6px;padding:2px 3px}
 .table-stage .center .card{width:28px;height:41px;font-size:12px}.table-stage .center .card span{font-size:15px}.table-stage .center .cards{gap:3px}.table-stage .pot{margin:5px 0 8px;gap:4px}.table-stage .pot strong{font-size:18px}.table-stage #street{font-size:8px}.table-stage #status{font-size:8px;line-height:1.2;margin-top:5px;max-width:150px}.table-stage .center .result-banner{width:154px;margin-top:5px;padding:5px}.table-stage .center .result-banner strong{font-size:10px}.table-stage .center .result-banner b{font-size:12px}.table-stage .center .result-banner div{font-size:8px}
 .table-stage .table-bet{min-width:64px;padding:3px 4px}.table-stage .table-bet strong{font-size:10px}.table-stage .table-bet small{font-size:5px}.table-stage .table-bet .chip-pile{max-width:18px;min-width:16px}.table-stage .seat-0 .table-bet{left:16px;bottom:calc(100% + 7px)}.table-stage .seat-3 .table-bet{left:16px;top:calc(100% + 7px)}.table-stage .seat-1 .table-bet,.table-stage .seat-2 .table-bet{left:16px;top:calc(100% + 5px)}.table-stage .seat-4 .table-bet,.table-stage .seat-5 .table-bet{right:16px;top:calc(100% + 5px)}
 .dealer-chip{width:36px;height:36px;border-width:2px}.dealer-chip b{font-size:20px;line-height:21px}.dealer-chip small{font-size:5px}.seat-0 .dealer-chip{right:-41px;top:-6px}.seat-3 .dealer-chip{right:-41px;bottom:-6px}.seat-1 .dealer-chip,.seat-2 .dealer-chip{right:-41px;top:2px}.seat-4 .dealer-chip,.seat-5 .dealer-chip{left:-41px;top:2px}
 .playing .controls{padding:7px 8px calc(7px + env(safe-area-inset-bottom));gap:6px;min-height:0;display:grid;grid-template-columns:1fr auto}.playing .decision{display:flex;gap:4px;align-items:center;justify-content:flex-start}.playing .decision .eyebrow{display:none}.playing .decision strong{font-size:10px;margin:0}.playing .hand-tools{grid-column:2;grid-row:1}.playing .hand-tools #review-button,.playing .hand-tools #next{min-height:34px;padding:7px 10px;font-size:10px}.playing #actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.playing #actions>button{min-height:38px;padding:8px;min-width:0;font-size:12px}.playing .raise{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:50px 1fr 90px;min-height:38px;padding-left:8px}.playing .raise input{width:100%;min-width:0;font-size:15px;padding:6px}.playing .raise button{min-height:38px;padding:8px;font-size:12px}.playing .play-summary{gap:6px;padding:4px 8px;min-height:26px}.playing .play-summary span{font-size:8px}.playing .play-summary b{font-size:10px}.playing .play-summary small{display:none}.playing .summary-grade{font-size:18px}
}
@media(max-height:500px) and (orientation:landscape){
 .playing>header{height:40px;flex-basis:40px}.playing>main{position:relative;padding-right:248px}.playing .controls{position:fixed;left:auto;right:0;top:40px;bottom:0;width:240px;display:flex;flex-direction:column;justify-content:center;border-radius:0;padding:10px}.playing #actions{display:grid;width:100%;grid-template-columns:repeat(3,1fr)}.playing .raise{grid-template-columns:36px 1fr 66px}.playing .raise button{min-width:0}.playing .hand-tools{flex-wrap:wrap}.playing .heading,.playing .table-summary{margin-right:0}.playing .arena{margin-right:0;min-width:0}.playing .play-summary{display:none}.playing .table-stage{width:1080px;height:650px}
}
@media(max-width:800px) and (max-height:500px) and (orientation:landscape){
 .table-stage .seat{width:144px;height:165px;padding:6px}.table-stage .seat-0,.table-stage .seat-3{left:468px}.table-stage .seat-2{left:0;top:70px}.table-stage .seat-4{right:0;top:70px}.table-stage .seat-1{left:0;bottom:80px}.table-stage .seat-5{right:0;bottom:80px}.table-stage .table{inset:65px;border-radius:46%}.table-stage .center{top:135px}.table-stage .table-label{top:42px}
}
@media(max-width:800px) and (min-height:501px){
 .seat-0 .dealer-chip{left:31px;right:auto;top:-42px;bottom:auto}
 .seat-3 .dealer-chip{left:31px;right:auto;top:auto;bottom:-42px}
 .seat-2 .dealer-chip{right:-41px;top:calc(100% + 5px);bottom:auto}
 .seat-4 .dealer-chip{left:-41px;top:calc(100% + 5px);bottom:auto}
 .seat-1 .dealer-chip{right:-41px;top:60px;bottom:auto}
 .seat-5 .dealer-chip{left:-41px;top:60px;bottom:auto}
}
/* Keep portraits visible above the legacy initial-only avatar rules. */
.table-stage .seat .character-avatar{display:block;width:34px;height:34px;flex:0 0 34px}
@media(min-width:801px){.table-stage .seat{height:178px}}
@media(max-width:800px){.table-stage .seat .character-avatar{display:block;width:26px;height:26px;flex-basis:26px}}
/* Large rail portraits occupy their own layer, not the name row. */
.table-stage .seat .table-portrait{position:absolute;top:-34px;left:50%;transform:translateX(-50%);z-index:3;width:64px;height:64px}
.table-stage .seat .table-portrait .avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;border:3px solid #b0bd9e;background:#253d30;font-size:13px;color:#e9d39e;box-shadow:0 4px 14px #0008}
.table-stage .seat .table-portrait .character-avatar{display:block;border-color:var(--portrait-color);width:64px;height:64px}
.table-stage .table-portrait .portrait-badge{font-size:8px;line-height:14px;min-width:20px;right:-3px;bottom:-2px}
.table-stage .seat{height:190px;padding:44px 6px 5px}
.table-stage .seat-3{top:36px}
.table-stage .seat-state{position:absolute;top:31px;left:0;right:0;padding:0;margin:0;text-align:center;min-height:11px}
.table-stage .seat-top{justify-content:center;position:relative;min-height:28px}
.table-stage .seat-identity{text-align:center}
.table-stage .seat-top .study-button{position:absolute;right:0;top:0;margin:0}
.table-stage .position-markers{top:7px;left:4px}
.table-stage .seat-0 .table-bet{left:calc(100% + 12px);top:35px;bottom:auto}
.table-stage .seat-3 .table-bet{left:calc(100% + 12px);top:85px;bottom:auto}
.table-stage .seat.active .table-portrait .character-avatar{box-shadow:0 0 0 3px #f5cf7a,0 0 22px #e6bc7670}
.table-stage .seat.winner .table-portrait .character-avatar{box-shadow:0 0 0 3px #f5d58a,0 0 24px #e9c86280}
@media(max-width:800px){
 .table-stage .seat{height:156px;padding:32px 4px 3px}
 .table-stage .seat-3{top:24px}
 .table-stage .seat .table-portrait{width:44px;height:44px;top:-22px}
 .table-stage .seat .table-portrait .avatar,.table-stage .seat .table-portrait .character-avatar{width:44px;height:44px;border-width:2px;font-size:10px}
 .table-stage .table-portrait .portrait-badge{font-size:6px;line-height:10px;min-width:15px;right:-2px;bottom:-2px}
 .table-stage .seat-state{top:23px;min-height:9px;font-size:7px}
 .table-stage .seat-top{min-height:23px}
 .table-stage .seat-top .study-button{width:23px;height:23px;right:-1px;font-size:12px}
 .table-stage .seat-identity{padding-right:6px}
 .table-stage .seat-0 .table-bet{left:16px;top:-64px;bottom:auto}
 .table-stage .seat-3 .table-bet{left:16px;top:calc(100% + 5px);bottom:auto}
 .table-stage .seat-0 .dealer-chip{left:auto;right:-10px;top:-30px;bottom:auto}
 .table-stage .seat-3 .dealer-chip{left:auto;right:-10px;top:-22px;bottom:auto}
}
/* Fixed house dealer; numbered player seats follow the left-to-right rail. */
.house-dealer{position:absolute;left:480px;top:0;width:120px;height:76px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#1b2b23;border:1px solid #cab78280;border-radius:35px 35px 12px 12px;box-shadow:0 4px 16px #0005;color:#e7d5ad}
.dealer-person{font-size:27px;line-height:30px}.house-dealer strong{font-size:10px;letter-spacing:2px}.house-dealer small{font-size:8px;color:#9fb19c;margin-top:3px}
.table-stage{height:720px}.table-stage .table{inset:85px 65px 50px}.table-stage .table-label{display:none}.table-stage .seat{height:210px}.table-stage .seat-0{left:340px;bottom:0;top:auto;right:auto}.table-stage .seat-3{left:596px;bottom:0;top:auto;right:auto}.table-stage .seat-2{left:80px;top:72px;bottom:auto;right:auto}.table-stage .seat-1{left:0;top:350px;bottom:auto;right:auto}.table-stage .seat-4{right:80px;left:auto;top:72px;bottom:auto}.table-stage .seat-5{right:0;left:auto;top:350px;bottom:auto}
.seat-number{position:absolute;left:-10px;top:35px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #ccba80;background:#e1d1a5;color:#1c3024;font-size:12px;font-weight:700;z-index:4}
.bb-value{font-size:9px;color:#bad3bd;white-space:nowrap;font-variant-numeric:tabular-nums}.table-stage .stack .bb-value{font-size:8px;display:block}.table-stage .seat-top{min-height:37px}.table-stage .action-badge small{font-size:8px}.table-stage .table-bet .bb-value{font-size:8px;color:#d7e7bf}.table-stage .center .result-banner{width:180px;max-width:180px;padding:8px 10px}.table-stage .center .result-banner strong{font-size:14px}.table-stage .center .result-banner b{font-size:16px}.table-stage .center .result-banner div{font-size:11px}
.playing .raise{position:relative}.playing .raise #amount-bb{font-size:9px;min-width:58px;padding-right:5px}.table-stage .seat-3 .table-bet{left:-116px;top:35px}.table-stage .seat-0 .table-bet{left:calc(100% + 12px);top:35px}.table-stage .seat-0 .dealer-chip,.table-stage .seat-3 .dealer-chip{left:auto;right:-54px;top:-12px;bottom:auto}
@media(max-width:800px){
 .table-stage{height:650px}.table-stage .table{inset:62px 7px 36px}.house-dealer{left:143px;top:3px;width:74px;height:56px;border-radius:25px 25px 9px 9px}.dealer-person{font-size:20px;line-height:22px}.house-dealer strong{font-size:7px;letter-spacing:1px}.house-dealer small{font-size:6px;margin-top:1px}
 .table-stage .seat{height:164px}.table-stage .seat-0{left:76px;bottom:0;top:auto;right:auto}.table-stage .seat-3{left:186px;bottom:0;top:auto;right:auto}.table-stage .seat-2{left:0;top:66px;bottom:auto;right:auto}.table-stage .seat-1{left:0;top:auto;bottom:195px;right:auto}.table-stage .seat-4{right:0;left:auto;top:66px;bottom:auto}.table-stage .seat-5{right:0;left:auto;top:auto;bottom:195px}.table-stage .center{top:180px}
 .seat-number{width:18px;height:18px;left:-5px;top:25px;font-size:9px}.table-stage .seat-top{min-height:31px}.table-stage .stack .bb-value{font-size:7px}.table-stage .action-badge{font-size:7px}.table-stage .action-badge small{font-size:6px}.table-stage .table-bet .bb-value{font-size:6px}.table-stage .center .result-banner{width:154px;max-width:154px;padding:5px}.table-stage .center .result-banner strong{font-size:10px}.table-stage .center .result-banner div{font-size:8px}.table-stage .center .result-banner b{font-size:12px}
 .playing .raise{grid-template-columns:40px minmax(0,1fr) 58px 72px}.playing .raise #amount-bb{font-size:8px;min-width:0;padding:0}.playing #pot-bb{font-size:7px}
 .table-stage .seat-0 .table-bet{left:16px;top:-64px;bottom:auto}.table-stage .seat-3 .table-bet{left:16px;top:-64px;bottom:auto}
 .table-stage .dealer-chip{width:28px;height:28px;border-width:2px}.table-stage .dealer-chip b{font-size:16px;line-height:17px}.table-stage .dealer-chip small{font-size:4px}
 .table-stage .seat-0 .dealer-chip,.table-stage .seat-3 .dealer-chip{left:auto;right:-14px;top:-12px;bottom:auto}
 .table-stage .seat-2 .dealer-chip{right:-32px;left:auto;top:168px;bottom:auto}.table-stage .seat-4 .dealer-chip{left:-32px;right:auto;top:168px;bottom:auto}.table-stage .seat-1 .dealer-chip{right:-32px;left:auto;top:138px;bottom:auto}.table-stage .seat-5 .dealer-chip{left:-32px;right:auto;top:138px;bottom:auto}
}
@media(max-height:500px) and (orientation:landscape){
 .playing .table-stage{width:1080px;height:720px}.table-stage .house-dealer{left:480px;top:0;width:120px;height:76px}.table-stage .table{inset:85px 65px 50px}.table-stage .center{top:135px}.table-stage .seat{width:144px;height:210px}
 .table-stage .seat-0{left:340px;bottom:0;top:auto;right:auto}.table-stage .seat-3{left:596px;bottom:0;top:auto;right:auto}.table-stage .seat-2{left:80px;top:72px;bottom:auto;right:auto}.table-stage .seat-1{left:0;top:350px;bottom:auto;right:auto}.table-stage .seat-4{right:80px;left:auto;top:72px;bottom:auto}.table-stage .seat-5{right:0;left:auto;top:350px;bottom:auto}
 .playing .raise{display:grid;grid-template-columns:32px minmax(0,1fr) 48px}.playing .raise button{grid-column:1/-1;width:100%}.playing .raise #amount-bb{min-width:0;font-size:8px}
}

/* Unscaled overlay anchored beside the hero; narrow screens use the space above. */
.live-ev-layer{position:fixed;z-index:20;box-sizing:border-box;width:208px;padding:10px 12px;border:1px solid #d6b87199;border-radius:12px;background:#10251ff5;color:#edf3e9;box-shadow:0 6px 22px #0006;pointer-events:none;font-size:12px}
.live-ev-layer[hidden]{display:none}.live-ev-layer>strong{color:#edce85;font-size:12px}.live-ev-layer ol{list-style:none;margin:7px 0;padding:0}.live-ev-layer li{display:grid;grid-template-columns:1fr auto;gap:4px;padding:6px 0;border-top:1px solid #ffffff16}.live-ev-layer li span{font-size:11px}.live-ev-layer li b{color:#edce85;margin-right:3px}.live-ev-layer em{font-style:normal;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.live-ev-layer small{display:block;font-size:9px;color:#a9c1b5;line-height:1.4}.live-ev-layer li small{grid-column:1/-1}
@media(max-width:800px){.live-ev-layer{padding:7px 9px}.live-ev-layer li{padding:4px 0}}

.seat-refund{font-size:9px;color:#b9d0c2;margin-top:4px}.table-stage .seat-refund{font-size:8px}

.seat-net{margin-top:5px;font-weight:700;font-size:11px}.seat-net small{display:block;font-size:8px}.net-loss .hero-net,.seat-net.net-loss{color:#ff9696}.net-profit .hero-net,.seat-net.net-profit{color:#f5d581}.net-even .hero-net,.seat-net.net-even{color:#c5d8ce}.result-banner .hero-net{display:block}.result-banner span{display:block;margin-top:5px}.table-stage .seat.folded:has(.seat-net){opacity:1}.table-stage .seat-net{line-height:1.4}
@media(max-width:800px){.table-stage .seat-net{font-size:8px;margin-top:3px}.table-stage .seat-net small{font-size:7px}}

/* The preflop reference belongs to the player's cards, independently of live EV. */
.starting-hand-rank{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 auto 2px;line-height:1.25;font-size:11px;color:#c1d9cb;white-space:nowrap;font-variant-numeric:tabular-nums}
.starting-hand-rank b{color:#f5d581;font-weight:800}
[data-seat-player="0"]:has(.hole .card[style*="visibility: hidden"]) .starting-hand-rank{visibility:hidden}
@media(max-width:800px){.starting-hand-rank{font-size:9px;gap:4px}}

/* Independent layout track: the hand board never overlaps the arena's EV overlay. */
.playing #table-area{grid-template-rows:22px minmax(0,1fr) auto auto}
.playing .hand-insight{grid-row:3}
.playing .controls{grid-row:4}
.hand-insight{display:grid;gap:12px;padding:14px;border:1px solid #54765d;border-radius:12px;background:linear-gradient(150deg,#21392e,#15251f);color:#e4f0e8;font-variant-numeric:tabular-nums}
.hand-insight[hidden]{display:none}
.hand-insight-heading{margin:0;font-size:15px;color:#b2cdbb;font-weight:700}
.hand-insight-rank{display:grid;gap:4px;align-items:baseline}
.hand-insight-rank>small,.hand-insight-draw small{color:#b2cdbb;font-size:12px}
.hand-insight-rank>b{color:#fae39a;font-size:32px;line-height:1.13}
.hand-insight-rank>span{font-size:18px;font-weight:700}
.hand-insight-rank>em{font-size:13px;color:#cdddba;font-style:normal}
.hand-insight-odds{border-top:1px solid #8aae9250;padding-top:10px;min-width:0}
.hand-insight-odds h3{margin:0 0 6px;font-size:13px;color:#b2cdbb}
.hand-insight-odds ul{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.hand-insight-draw{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;background:#2b4738}
.hand-insight-draw span{min-width:0;display:grid;gap:2px}
.hand-insight-draw b{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.hand-insight-draw strong{font-size:22px;color:#fae39a;white-space:nowrap}
@media(min-width:1180px) and (min-height:560px){
 body.playing>main{max-width:1650px}
 .playing #table-area{grid-template-columns:clamp(216px,17vw,282px) minmax(0,1fr);column-gap:16px}
 .playing .table-summary,.playing .arena{grid-column:2}
 .playing .hand-insight{grid-column:1;grid-row:2;align-self:center;max-height:100%;overflow:auto}
 .playing .controls{grid-column:1/-1}
}
@media(max-width:1179px),(max-height:559px){
 .hand-insight{gap:6px;padding:8px 10px;margin-bottom:4px}
 .hand-insight-heading{font-size:12px}
 .hand-insight-rank{display:flex;flex-wrap:wrap;gap:3px 8px}
 .hand-insight-rank>b{font-size:21px}
 .hand-insight-rank>span{font-size:14px}
 .hand-insight-odds{padding-top:5px}
 .hand-insight-odds h3{margin-bottom:4px;font-size:11px}
 .hand-insight-odds ul{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:4px}
 .hand-insight-draw{padding:3px 5px;gap:4px}
 .hand-insight-draw b,.hand-insight-draw small{font-size:11px}
 .hand-insight-draw strong{font-size:16px}
}
@media(max-width:800px){.playing #table-area{grid-template-rows:18px minmax(0,1fr) auto auto}}
@media(max-height:500px) and (orientation:landscape){
 .hand-insight{max-height:28dvh;overflow:auto}
 .hand-insight-heading{display:none}
}

.cpu-reveal-option{position:absolute;z-index:5;left:50%;top:-37px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;min-height:28px;padding:3px 9px;border:1px solid #b9ca935e;border-radius:18px;background:#17382b;color:#f4eddc;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.cpu-reveal-option input{width:14px;height:14px;margin:0;padding:0;accent-color:#e7c179;cursor:pointer}
.cpu-reveal-option:focus-within{outline:2px solid #e7c179;outline-offset:2px}
.reveal-hand[aria-disabled="true"]{cursor:default}
@media(max-width:800px) and (orientation:portrait){.cpu-reveal-option{top:-30px;min-height:24px;padding:2px 6px;gap:4px;font-size:9px}.cpu-reveal-option input{width:12px;height:12px}}

.review-actions{list-style:none;margin:0;padding:0}
.review-actions li{display:grid;grid-template-columns:minmax(48px,auto) minmax(55px,auto) minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid #ffffff18}
.review-actions li>span:first-child{color:#a7c7b5}

/* Keep localized header labels and the language switch usable at narrow widths. */
#language{width:auto;min-width:0;min-height:36px;padding:5px 8px;background:#172421;color:#f1e8d4;border:1px solid #56675d;border-radius:7px;font:inherit;font-size:12px}
#language:focus-visible{outline:2px solid #e7c179;outline-offset:2px}
@media(max-width:800px){.header-actions{gap:4px;min-width:0}.header-actions button,#language{min-width:0;padding:4px 6px;font-size:10px}.header-actions button{line-height:1.15;white-space:normal;overflow-wrap:anywhere}#language{max-width:88px;min-height:28px}}
