/* Une décision, un espace : le rail reste monté pendant la partie. */
body{background:var(--bg);color:var(--text-1)}
.scanlines,.ambient-ring{display:none}
.shell{max-width:1440px;width:100%;padding:0 32px;margin:auto}
.topbar{height:76px;margin:0;border-bottom:1px solid var(--line)}
.train-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;padding-top:24px;align-items:start;align-content:start}
#title-screen[hidden]{display:none}
.lobby-today,#lobby-progress,#daily-deck,#daily-state,#lobby-title{display:none}
#mode-grid{display:flex;flex-direction:column;gap:18px}
#mode-grid section{display:block;margin:0;padding:0;border:0}
#mode-grid section>h2{font:500 11px var(--body);color:var(--muted);text-transform:none;letter-spacing:0;padding:0 12px;margin:0 0 8px}
.mode-tile{position:relative;display:block;margin:2px 0;border:0;background:none;border-radius:10px}
#mode-grid .mode-card{width:100%;min-height:44px;height:auto;display:flex;align-items:center;gap:12px;padding:10px 42px 10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;transform:none;animation:none;text-align:left;color:var(--text);font:500 14px var(--body);cursor:pointer}
#mode-grid .mode-card:hover{transform:none;background:var(--raise);box-shadow:none}
#mode-grid .mode-card[aria-pressed=true]{background:var(--raise-2);border-color:var(--line-2)}
.mode-card span{flex:1}.mode-card small{font:12px var(--mono);color:var(--muted)}
.mode-card kbd{position:static;font-size:10px;opacity:.45;background:none;border:0;box-shadow:none}
#mode-grid .tile-settings{position:absolute;inset:5px 5px auto auto;width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;background:transparent;border-radius:6px;color:var(--muted);font-size:18px}
.tile-import{position:static;display:block;padding:0 12px 8px;font-size:12px;color:var(--accent-text)}
.play-layout{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.arena{padding:0;background:none;border:0;box-shadow:none;min-width:0}
.arena-top{height:24px;font:11px var(--mono);padding:0 8px}.arena-top #level{display:none}
.hud{display:block;padding:0;margin:0;border:0;min-height:0;height:auto;background:none;box-shadow:none}
body :is(#game-screen,#end-screen) :is(.score-block,.lives-block,.combo-card,.solver-standby,.streak-footer,.effective,.source-line,.matchup,.story-line,.end-rank,.end-points,.end-stats,.record-line,.rematch-key,#loss,#why,#result-hand,#result-board){display:none}
.clock-block{position:absolute;top:0;right:0;font-size:13px;display:flex;gap:12px;pointer-events:none}.clock-block>.eyebrow{display:none}
#run-progress{display:flex;gap:4px;padding:0 0 18px;max-width:65%}#run-progress i{flex:1;min-width:2px;height:5px;background:var(--raise-3);border-radius:2px}#run-progress .perfect,#run-progress .correct{background:var(--gain)}#run-progress .error{background:var(--loss)}
.decision-area{padding:20px 0 0}.situation{margin:0;padding:0;min-height:0}.facing{font-size:12px;text-align:center;margin-bottom:12px}
.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.action{flex:1;min-width:95px;min-height:52px;background:var(--raise-2);border:1px solid var(--line-2);color:var(--text-1);box-shadow:none;border-radius:10px;padding:10px;font-size:14px}.action.aggressive,.action.passive{background:var(--raise-2);color:var(--text-1)}.action.correct-choice{background:color-mix(in srgb,var(--gain) 16%,var(--raise));border-color:var(--gain)}.action.wrong-choice{background:color-mix(in srgb,var(--loss) 16%,var(--raise));border-color:var(--loss)}.action kbd{color:var(--muted);font-size:10px}.action-label{font-size:14px}.action-amount{font-size:12px}
.coach{display:block;min-width:0;padding:0;background:none;border:0;box-shadow:none}.solver-panel{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--raise)}.result-top{margin:0 0 16px}.result-top strong{font-size:17px}
#range-grid{max-width:290px;margin:12px 0}.range-grid [role=gridcell]{font-size:9px}.grid-heading{font-size:11px}.feedback-timer{display:none}.next-hand{min-height:48px;width:100%;margin-top:16px;background:var(--accent);color:var(--accent-ink);border:0;border-radius:9px}.fullhand-controls{display:flex;gap:12px}
#end-screen[hidden]{display:none}.end-main{padding:0;text-align:left}.end-main h1{font:500 26px var(--body);margin:0 0 16px}.end-main .eyebrow{display:none}.end-review{padding:16px 0}.end-review>h2{display:none}.play-button{width:100%;font-size:15px;min-height:52px}.mistake{background:var(--raise);border:1px solid var(--line)}.mistake-number,.mistake-copy small{display:none}.mistake-copy b{font-size:13px}#finish-run{font-size:12px;margin:18px 0;color:var(--muted)}
#profile-screen{grid-column:1/-1;padding:16px;min-width:0}.run-chart{width:100%;max-height:180px;color:var(--accent-text);margin:20px 0}#profile-modes details{padding:14px 0;border-bottom:1px solid var(--line-2)}#profile-modes summary{cursor:pointer;font-size:14px}#profile-modes summary b{float:right}#profile-modes details>.run-miss{padding:10px;font-size:13px}.mode-loss{padding:12px 0;font:13px var(--mono)}
@media(max-width:700px){.shell{padding:0 14px}.topbar{height:60px;gap:8px}.topbar #mode-name{display:none}.sound-button{font-size:11px;padding:6px}#sound-label{display:none}.train-workspace{display:flex;flex-direction:column;gap:16px;padding-top:14px}#title-screen{position:static;width:100%}#mode-grid{display:flex;flex-direction:row;overflow-x:auto;gap:12px;padding-bottom:4px}#mode-grid section{flex:0 0 auto;min-width:160px}#mode-grid section>h2{font-size:10px;margin-bottom:3px}#mode-grid .mode-card{min-height:36px;padding:7px 36px 7px 8px;font-size:12px}.mode-card kbd{display:none}#game-screen{width:100%}.arena-top{height:20px}#run-progress{padding-bottom:12px}.decision-area{padding-top:8px}.actions{gap:6px}.action{min-width:85px;min-height:48px}.action-label{font-size:12px}.coach:has(.solver-panel:not([hidden])){position:fixed;z-index:40;bottom:0;left:0;right:0;max-height:52svh;overflow-y:auto;box-shadow:0 -20px 40px color-mix(in srgb,var(--shadow-ink) 60%,transparent);animation:sheet-in .25s ease-out}.solver-panel{border-radius:16px 16px 0 0;padding:16px 18px max(16px,env(safe-area-inset-bottom))}.ev-row{grid-template-columns:100px minmax(0,1fr) 74px;gap:8px}.next-hand{position:sticky;bottom:0;margin-top:12px}#range-grid{max-width:210px}.range-grid{gap:1px}.range-grid .grid-cell{font-size:8px;padding:0}.play-layout{gap:8px}#end-screen{width:100%}.end-main h1{font-size:22px}@keyframes sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}}

#lobby-personal,#lobby-preflop,#lobby-postflop{display:block}
#mode-navigation .mode-grid .mode-card{display:flex;min-height:44px;padding:10px 42px 10px 12px;animation:none;transform:none;background:transparent;box-shadow:none;border:1px solid transparent}
#mode-navigation .mode-grid .mode-card:hover,#mode-navigation .mode-grid .mode-card:focus-visible{transform:none;background:var(--raise)}
#mode-navigation .mode-grid .mode-card[aria-pressed=true]{background:var(--raise-2);border-color:var(--line-2)}
#mode-navigation .mode-grid .mode-card kbd{position:static;width:auto;height:auto;font-size:10px}
#mode-navigation .mode-grid .mode-card small{margin:0;font-size:12px}
#game-screen .hud{height:0;margin:0;min-height:0}#game-screen .play-layout{display:flex;gap:16px}
#game-screen .diamond-table{height:auto;aspect-ratio:1.9;min-height:260px;max-height:430px}
#game-screen .pot-display b{font:500 15px var(--mono)}
#game-screen .solver-panel:not([hidden]){display:block;position:static;max-height:none;background:var(--raise)}
body[data-mode=fullhand] #game-screen .diamond-table{height:auto}
@media(max-width:700px){
 body:has(#game-screen:not([hidden])) .shell{height:auto;min-height:100dvh;overflow:visible;padding:0 14px}
 body:has(#title-screen:not([hidden])) .topbar{display:flex;height:60px;min-height:60px;padding:0;gap:6px}
 body:has(#title-screen:not([hidden])) .shell{padding-inline:14px}
 body:has(#title-screen:not([hidden])) .home-button{font-size:14px}
 #tracker-menu{margin-left:auto}.site-nav{display:none}#tracker-menu[open] .site-nav{display:flex;position:absolute;z-index:60;background:var(--raise);padding:16px;right:0;top:60px}
 #game-screen:not([hidden]){display:block;padding:0;width:100%}
 #game-screen .diamond-table{min-height:230px;aspect-ratio:1.65;height:auto}
 #game-screen .coach{display:block}
 #game-screen .coach:has(.solver-panel:not([hidden])){position:fixed;z-index:40;bottom:0;left:0;right:0;max-height:52svh;overflow-y:auto;display:block}
 #game-screen .solver-panel:not([hidden]){position:static;max-height:none;padding:16px 18px;border-radius:16px 16px 0 0}
 #game-screen .actions{display:flex;flex-wrap:wrap;justify-content:center}
 #game-screen .action{min-height:48px;min-width:85px}
 #mode-navigation .mode-grid .mode-card{min-height:36px;font-size:12px;padding:7px 34px 7px 8px}
 #mode-navigation .mode-grid .mode-card kbd{display:none}
 #game-screen .hero-seat{font-size:10px}
 .topbar #profile,.topbar #language,.topbar #sound{min-width:32px;padding:6px;font-size:11px}
 #game-screen .table-stage .board{top:39%}
 #game-screen .table-stage .hero-cards{top:66%}
}
#game-screen:not([hidden]){display:block;padding:0}
#game-screen .arena{display:block;padding-bottom:0}
#game-screen .hero-seat{background:var(--raise);box-shadow:none;border-color:var(--line-2);font:12px var(--mono);top:94%;left:50%;transform:translateX(-50%)}
#game-screen .pot-display{color:var(--text-1)}
#game-screen .diamond-table:has(.replay-seat-villain) .opponent-seat{display:none}
#game-screen .diamond-table .replay-seat-hero{display:none}
@media(max-width:700px){#mode-grid{flex-direction:row;overflow-x:auto;width:100%;gap:12px}#title-screen{min-width:0}#game-screen .table-stage .replay-seat-hero-center{left:84%;top:25%}.topbar{max-width:100%}.topbar #tracker-menu summary{font-size:11px;padding:6px}.home-button{font-size:13px}.topbar #sound{width:28px;min-width:28px}.topbar #sound-icon{width:15px}.topbar #profile{font-size:10px}}
#game-screen .diamond-table[data-hero-order] .hero-position,
body[data-mode=fullhand] #game-screen .diamond-table[data-hero-order] .fullhand-replay-seat>b{position:static;width:auto;height:auto;clip-path:none;overflow:visible;border:0;padding:0}
#game-screen .diamond-table .action-order{display:none}
#game-screen .diamond-table .hero-seat{gap:8px;box-shadow:none;border-color:var(--line-2)}
#game-screen .diamond-table .fullhand-seat-cards{order:2}
#game-screen .diamond-table .fullhand-replay-seat{border:0;box-shadow:none;background:none}
#game-screen .diamond-table .fullhand-replay-seat>b{color:var(--text-1)}
#game-screen .diamond-table .fullhand-replay-status:empty{display:none}
#game-screen .solver-panel #frequencies{display:block}
#game-screen .solver-panel .range-grid{flex:none;grid-template-rows:repeat(13,1fr)}
#game-screen .solver-panel .grid-cell{aspect-ratio:1;font-size:9px}
@media(max-width:700px){.correcting #game-screen .solver-panel:not([hidden]){position:static;max-height:none;overflow:visible}#game-screen .coach:has(.solver-panel:not([hidden])){padding:0;bottom:0;max-height:54svh;overflow:auto}#game-screen .solver-panel #range-grid{max-width:185px}#game-screen .solver-panel .grid-cell{font-size:7px}#game-screen .diamond-table .fullhand-seat-stack{font-size:10px}}
.miss-cards{display:flex;gap:4px}.miss-cards .card{width:30px;height:42px}.miss-cards .card-corner{font-size:10px}.miss-cards .card-suit{font-size:18px}.miss-cards .card-bottom{display:none}
#game-screen #solver-panel[hidden]{display:none}
#game-screen .diamond-table #pot{color:var(--text-1)}
html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
@media(min-width:701px){
 #game-screen .diamond-table{min-height:280px;max-height:320px}
 #game-screen .diamond-table .card{width:clamp(42px,7.3cqw,60px);height:clamp(58px,10.2cqw,84px)}
 #game-screen .diamond-table .hero-cards .card{width:clamp(46px,7.6cqw,64px);height:clamp(64px,10.7cqw,90px)}
 #game-screen .diamond-table .card-corner,#game-screen .diamond-table .card-bottom{font-size:17px}
 #game-screen .diamond-table .card-corner small,#game-screen .diamond-table .card-bottom small{font-size:13px}
 #game-screen .diamond-table .card-suit{font-size:35px}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:0 18px}
 #solver-result .result-top{grid-column:1/-1}
 #game-screen .solver-panel #range-grid{grid-column:2;grid-row:2/5;width:180px;margin:0}
 #game-screen .solver-panel .grid-heading{display:none}
 #game-screen .solver-panel #frequencies,#game-screen .solver-panel #mode-reveal{grid-column:1}
 #game-screen .solver-panel .ev-row{margin:7px 0}
 #game-screen .next-hand{margin-top:10px;min-height:44px}
}
.loading-cards span{animation:none}
@media(max-width:700px){body[data-mode=fullhand] #game-screen .fullhand-replay-seat[data-player=villain]{left:84%;top:15%}}
#game-screen .diamond-table .table-feedback.fullhand-showdown-result{inset:106% 0 auto;min-height:32px;padding:6px 8px;font-size:12px;line-height:20px}
@media(max-width:700px){body[data-mode=fullhand] #game-screen .fullhand-replay-seat[data-player=villain]{left:93%;top:15%;width:70px;min-width:0}#game-screen .diamond-table .board{gap:.7cqw}#game-screen .diamond-table .board .card{width:10.5cqw;height:14.7cqw}}
.history-hand{max-width:700px;margin:30px auto 20px;min-height:260px}.history-hand .opponent-seat{display:block}.history-hand .pot-display{color:var(--text-1)}.diamond-table [data-table=pot-chips]{display:none}
.history-hand.diamond-table .card{animation:none}
#game-screen .coach:has(.solver-panel[hidden]){display:none}
@media(min-width:701px){#game-screen .diamond-table #board{top:36%}#game-screen .diamond-table #hero-cards{top:64%}}
/* Rail indépendant des hauteurs de correction et fin de partie. */
#game-screen{min-width:0;padding:0;position:relative;grid-column:2;grid-row:1}
#end-screen{padding:0;display:block;min-height:0;border:0;grid-column:2;grid-row:2}
#mode-grid .mode-card kbd{display:none}
#game-screen .arena-top{margin:0 0 6px;padding:0 8px;display:flex;align-items:center;gap:12px}
#game-screen #finish-run{position:static;margin:0 0 0 auto;padding:0;background:none;border:0}
#game-screen .street-pill{font-size:14px}
#game-screen .decision-area{display:flex;flex-wrap:wrap;gap:10px;padding-top:28px}
#game-screen .situation{height:auto;min-height:0;flex-basis:100%;margin:0}
#game-screen .actions{flex:1;min-height:52px}
#game-screen .next-hand{width:auto;flex:0 0 120px;margin:0;min-height:52px}
#game-screen .source-line{display:none}
#game-screen #solver-panel .strategy-range .strategy-range-cell{font-size:8px;color:var(--text-1)}
#game-screen .solver-panel .grid-cell.hero-hand{outline:2px solid var(--text-1);outline-offset:1px}
#game-screen .hero-seat,#game-screen .replay-position,#game-screen .fullhand-seat-stack,#game-screen .opponent-seat>span,#game-screen .table-player>span{padding:5px 7px;border:1px solid var(--line-2);border-radius:6px;background:var(--raise);color:var(--text-1);font:11px var(--mono);box-shadow:none}
#game-screen .replay-position{white-space:normal}
#game-screen .replay-status{white-space:normal;max-width:110px;font-size:10px;padding:3px}
#game-screen .replay-folded .replay-status{display:none}
body[data-mode=fullhand] #game-screen .opponent-seat{display:none}
#game-screen .fullhand-seat-cards{display:flex;gap:3px}
#game-screen .fullhand-replay-seat .fullhand-replay-status{position:static;max-width:none;white-space:nowrap}
.run-miss{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:700px){
 #mode-grid{height:44px;gap:8px;overflow-y:hidden}
 #mode-grid section,#lobby-personal,#lobby-preflop,#lobby-postflop{display:contents}
 #mode-grid section>h2{display:none}
 #mode-grid .mode-tile{flex:0 0 auto;margin:0}
 #mode-grid .tile-import{display:none}
 #game-screen .diamond-table{min-height:290px}
 #game-screen .diamond-table .hero-cards{top:66%}
 #game-screen .diamond-table .hero-seat{top:94%}
 #game-screen .decision-area{padding-top:24px}
 #game-screen .replay-position{font-size:9px;padding:3px}
 #game-screen .replay-status{font-size:8px;max-width:70px}
 #game-screen .diamond-table .replay-cards .card{width:20px;height:28px}
 #game-screen .table-player{font-size:9px}
 #game-screen .table-player>span{font-size:9px;padding:3px}
 #game-screen .next-hand{flex-basis:85px}
}
#title-screen{display:block;padding:0;min-height:0;top:20px;position:static;align-self:start;grid-row:1;margin:0}
#title-screen{grid-column:2}#mode-navigation{grid-column:1;grid-row:1;min-width:0}
body[data-screen=end] #mode-navigation{grid-row:1/3}
body[data-screen=profile] #mode-navigation{display:none}
body[data-screen=game] #title-screen{display:none}
#game-screen .diamond-table .replay-cards .card{width:28px;height:39px}
#game-screen .diamond-table .replay-seat-top{top:15%}
#game-screen .solver-panel{padding:12px}
#game-screen .solver-panel #solver-result{display:block;padding:0;border:0}
#game-screen .solver-panel .result-top>strong{font-size:18px;line-height:1.2;letter-spacing:0}
#game-screen .solver-panel .result-top{margin:0 0 12px}
#game-screen .solver-panel .ev-row{margin:6px 0}
#game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{grid-template-rows:auto auto auto}
@media(max-width:700px){#game-screen .diamond-table .replay-cards .card{width:24px;height:34px;padding:0}}
@media(max-width:359px){#game-screen .diamond-table .replay-cards .card{width:20px;height:28px}}
body[data-mode=fullhand] #game-screen .hero-seat{display:none}
#game-screen .fullhand-replay-seat>b{display:block;font:11px var(--mono)}
#game-screen .fullhand-replay-seat[data-player=hero] .fullhand-seat-stack{padding:0;border:0}
#game-screen .fullhand-replay-seat[data-player=hero] .fullhand-seat-cards:empty{display:none}
#game-screen .fullhand-replay-seat[data-player=hero] .fullhand-replay-status{position:absolute;top:-25px;font-size:10px}
#game-screen .fullhand-replay-seat[data-player=villain] .fullhand-seat-stack{padding:0;border:0;background:none}
#game-screen .diamond-table .fullhand-seat-cards .card{width:32px;height:44px}
#game-screen .diamond-table .hero-cards{display:flex;gap:8px}
#game-screen .diamond-table .card{transform:none;margin:0;flex-shrink:0;--rotation:0deg}
@media(max-width:700px){#game-screen .solver-panel>.next-hand{width:100%;margin-top:12px;position:sticky;bottom:0}}
#game-screen .opponent-seat:after{display:none}
#game-screen .fullhand-seat-stack{font-variant-numeric:tabular-nums}
#game-screen .diamond-table .replay-seat.replay-seat-villain{left:50%;top:12%}
body:not([data-mode=fullhand]) #game-screen .diamond-table[data-street]:not([data-street=preflop]) .replay-seat.replay-seat-villain{left:var(--seat-left)!important;top:var(--seat-top)!important}
body:not([data-mode=fullhand]) #game-screen .diamond-table .replay-seat.seat-relative .replay-status{position:static!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;max-width:140px}
#game-screen .diamond-table .replay-seat.replay-seat-villain .replay-cards{display:flex;gap:3px;order:2}
#game-screen .diamond-table .replay-seat.replay-seat-villain.replay-seat-hero-center{left:50%;top:12%}
#game-screen .solver-head{display:flex;justify-content:flex-end}
#game-screen .solver-head>.eyebrow,#game-screen .solver-head>.solver-dot{display:none}
#game-screen .fullhand-replay-seat[data-player=villain] .fullhand-seat-cards{order:4;width:100%;justify-content:center;height:auto}
#game-screen .fullhand-replay-seat[data-player=villain] .fullhand-replay-status{order:3;display:none}
#game-screen .fullhand-replay-seat[data-player=villain] .fullhand-replay-status:not(:empty){display:block;position:absolute;left:calc(100% + 24px);top:30px;max-width:140px;font-size:9px;white-space:nowrap}
#game-screen .diamond-table .fullhand-seat-stack{box-shadow:none;font-size:11px}
#game-screen .replay-folded .frame-state,#game-screen .replay-folded .frame-action{display:none}
#game-screen .fullhand-replay-seat[data-player=hero] .fullhand-replay-status:not(:empty){left:calc(100% + 8px);top:0;width:auto;max-width:140px;white-space:nowrap}
#dismiss-correction{font-size:12px}
#game-screen .ev-row:has(.ev-bar--loss)>span{color:var(--loss)}
#game-screen .ev-row:has(.ev-bar--gain)>span{color:var(--gain)}
#game-screen .diamond-table .seat-plate>b,#game-screen .diamond-table .seat-plate>span{position:static;display:block;width:auto;height:auto;clip-path:none;padding:0;margin:0;border:0;background:none;box-shadow:none;color:inherit;font:inherit}
#game-screen .diamond-table .fullhand-replay-seat[data-player=hero]{display:flex;flex-direction:row;gap:7px;top:88%;transform:translateX(-50%);width:auto;min-width:0;border-radius:6px;left:50%;padding:0;border:0;background:none}
body[data-mode=fullhand] #game-screen .diamond-table .fullhand-replay-seat[data-player=villain] .seat-plate{order:0}
body[data-mode=fullhand] #game-screen .diamond-table .fullhand-replay-seat[data-player=villain] .fullhand-seat-cards{order:1}
@media(max-width:700px){#game-screen .diamond-table .replay-position.seat-plate{font-size:9px;padding:3px;gap:4px}#game-screen .diamond-table .table-player>.seat-plate{font-size:9px;padding:3px}}
body[data-mode=fullhand] #game-screen .diamond-table .fullhand-replay-seat[data-player=villain]{min-width:0;transform:translate(-50%,-50%);display:flex;align-items:center;left:50%;justify-content:center;top:8%;flex-direction:column;flex-wrap:nowrap;gap:4px;width:110px}
#game-screen .diamond-table .replay-seat.replay-seat-villain .replay-status{order:3;white-space:nowrap;max-width:140px;font-size:9px;line-height:12px;padding:3px}
#game-screen .diamond-table .replay-cards{position:static;inset:auto;transform:none}
#game-screen .diamond-table .replay-seat.replay-seat-villain,#game-screen .diamond-table .replay-seat.replay-seat-villain.replay-seat-hero-center{top:14%}
@media(min-width:701px){
 #game-screen .diamond-table #board{top:38%}
 #game-screen .diamond-table #board .card{width:54px;height:76px}
 #game-screen .diamond-table #hero-cards{top:66%}
 #game-screen .diamond-table #hero-cards .card{height:84px}
}
#game-screen .diamond-table .seat-plate{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:5px 7px;border:1px solid var(--line-2);border-radius:6px;background:var(--raise);color:var(--text-1);font:11px var(--mono);box-shadow:none;white-space:nowrap;font-variant-numeric:tabular-nums}
/* Paysage court : mêmes décisions, table et rail restent accessibles. */
@media(min-width:701px) and (max-height:800px){
 #game-screen .diamond-table{min-height:220px;max-height:220px}
 #game-screen .diamond-table .pot-display{top:28%}
 #game-screen .diamond-table #board{top:40%}
 #game-screen .diamond-table #board .card{height:50px;width:38px}
 #game-screen .diamond-table #hero-cards .card{height:60px;width:44px}
 #game-screen .diamond-table .replay-cards .card{height:28px;width:20px}
 #game-screen .diamond-table .replay-seat.replay-seat-villain,#game-screen .diamond-table .replay-seat.replay-seat-villain.replay-seat-hero-center{top:8%}
 #game-screen .diamond-table .card-corner,#game-screen .diamond-table .card-bottom{font-size:12px}
 #game-screen .diamond-table .card-suit{font-size:25px}
}
@media(min-width:701px) and (max-height:600px){
 .topbar{height:50px;min-height:50px}
 .train-workspace{padding-top:8px}
 #title-screen{max-height:calc(100svh - 58px);overflow-y:auto}
 #run-progress{padding-bottom:6px}
 #game-screen .arena-top{height:16px;margin-bottom:2px}
 #game-screen #finish-run{height:16px;min-height:16px;line-height:16px}
 #game-screen .decision-area{padding-top:14px}
 #game-screen .facing{font-size:12px;line-height:16px;margin-bottom:4px}
 #game-screen .action{min-height:44px;max-height:44px;padding:6px 10px}
 #game-screen .action-label{font-size:12px}
 #game-screen .action-amount{font-size:11px}
 body:not([data-mode=fullhand]) #game-screen .table-stage[data-street=preflop] .dealer-button{top:28%;right:10%}
}
/* La correction des erreurs partage la disposition commune, sans anciens panneaux. */
@media(min-width:1366px){
 body[data-mode=mistakes] #game-screen .coach:has(.has-result){display:block}
 body[data-mode=mistakes] #game-screen #solver-result{display:block;grid-template:none}
 body[data-mode=mistakes] #game-screen #solver-result>*{grid-column:auto;grid-row:auto;align-self:auto}
 body[data-mode=mistakes] #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto auto auto;gap:0 18px}
 body[data-mode=mistakes] #game-screen #solver-result>.result-top{grid-column:1/-1;grid-row:1}
 body[data-mode=mistakes] #game-screen #solver-result>#range-grid{grid-column:2;grid-row:2/5}
 body[data-mode=mistakes] #game-screen #solver-result>#frequencies{grid-column:1;grid-row:2}
 body[data-mode=mistakes] #game-screen #solver-result>#mode-reveal{grid-column:1;grid-row:3}
 body[data-mode=mistakes] #game-screen #solver-result>#real-hand{grid-column:1;grid-row:4;margin:0}
}
@media(min-width:701px) and (max-height:600px){
 #game-screen .action{min-width:44px;padding:4px;gap:2px;align-items:center;justify-content:center}
 #game-screen .action kbd,#game-screen .next-hand kbd{display:none}
 #game-screen .next-hand{min-height:44px;max-height:44px;padding:6px 10px;flex-basis:100px}
}
body #game-screen .coach:has(.solver-panel:not([hidden])){display:block;grid-template:none;padding:0;border:0;box-shadow:none}
@media(min-width:701px) and (max-height:800px){
 #game-screen .solver-panel{padding:10px}
 #game-screen .solver-panel .result-top{margin-bottom:6px}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{grid-template-columns:minmax(0,1fr) 160px}
 #game-screen .solver-panel #range-grid{width:160px;max-width:160px}
 body[data-mode=mistakes] #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{grid-template-columns:minmax(0,1fr) 160px}
}
body:is([data-mode]) #game-screen #solver-panel #range-grid{min-height:0;height:auto;aspect-ratio:auto}
@media(max-width:700px) and (max-height:700px){#game-screen .diamond-table{min-height:230px}}
body[data-mode=equity] #game-screen .opponent-cards .card{width:clamp(34px,12cqw,64px);height:clamp(48px,17cqw,90px)}
body[data-mode=equity] #game-screen .opponent-cards .card-corner,body[data-mode=equity] #game-screen .opponent-cards .card-bottom{font-size:14px}
body[data-mode=equity] #game-screen .opponent-cards .card-corner small,body[data-mode=equity] #game-screen .opponent-cards .card-bottom small{font-size:10px}
body[data-mode=equity] #game-screen .opponent-cards .card-suit{font-size:24px}
#game-screen .diamond-table .pot-display{color:var(--text-1);left:50%;top:31%;line-height:16px}
#game-screen .diamond-table .pot-display b{font:500 14px/16px var(--mono)}
#game-screen .diamond-table .pot-display>span,#game-screen .diamond-table .pot-display small{line-height:16px}
@media(min-width:701px) and (max-height:800px){#game-screen .diamond-table .pot-display{top:28%}}
#tracker-menu{position:relative}
#tracker-menu:not([open]) .site-nav{display:none}
#tracker-menu[open] .site-nav{display:flex;position:absolute;z-index:60;top:calc(100% + 16px);right:0;gap:16px;padding:12px;background:var(--raise);border-radius:8px}
#tracker-menu .site-nav a{white-space:nowrap}
@media(max-width:700px) and (max-height:700px){#game-screen .coach:has(.solver-panel:not([hidden])){max-height:44svh}}
body[data-mode=equity] #game-screen #actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
body[data-mode=equity] #game-screen #actions .action{min-width:0;padding:8px 4px;align-items:center;text-align:center}
/* Axe hors du viewBox : sa taille reste lisible sur téléphone. */
.run-chart-wrap{position:relative;padding:18px 0;color:var(--accent-text)}
.run-chart-wrap .run-chart{display:block;margin:0}
.run-chart-axis{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;font:11px/14px var(--mono)}
.run-miss>details{flex:0 0 100%;width:100%;min-width:0}
.history-hand.diamond-table .hero-cards .card,.history-hand.diamond-table .opponent-cards .card{transform:none;--rotation:0deg}
.run-loss{color:var(--loss)}.run-loss-caption{color:var(--muted);font-size:.7em}
@media(max-width:700px){body #game-screen .coach:has(.solver-panel:not([hidden])){height:auto;min-height:0;max-height:54svh;overflow-y:auto;bottom:0;top:auto}}
.mode-loss-chart{display:grid;gap:12px;margin:24px 0}.mode-loss-bar{display:grid;grid-template-columns:140px 1fr;align-items:center;gap:12px;font-size:12px}.mode-loss-bar i{height:10px;background:var(--loss);transform:scaleX(var(--share));transform-origin:left}
@media(max-width:700px){body.correcting #game-screen .solver-panel:not([hidden]){box-sizing:border-box;height:auto;min-height:0;max-height:54svh;overflow-y:auto}}
body[data-screen=end] #table-stage .card{animation:none}
@media(max-width:700px) and (max-height:700px){body #game-screen .coach:has(.solver-panel:not([hidden])),body.correcting #game-screen .solver-panel:not([hidden]){max-height:44svh}}
/* Petit portrait : conserver montant, pourcentage et touche sur deux lignes. */
@media(max-width:700px) and (max-height:700px){
 body[data-mode=rush] #game-screen .action{display:grid;grid-template-columns:minmax(0,1fr) 19px;gap:0 4px;align-content:center;justify-items:start}
 body[data-mode=rush] #game-screen .action-label,body[data-mode=rush] #game-screen .action-amount{grid-column:1}
 body[data-mode=rush] #game-screen .action kbd{grid-column:2;grid-row:1/3;align-self:center;width:19px}
}
/* Rush : le flux convient aux grands portraits ; ailleurs, garder le panneau mobile borné. */
@media(min-width:390px) and (max-width:700px) and (min-height:820px){
 body[data-mode=rush] #game-screen .coach:has(.solver-panel:not([hidden])){position:static;margin-top:0;max-height:none;overflow:visible;animation:none}
 body[data-mode=rush].correcting #game-screen .solver-panel:not([hidden]){max-height:none;overflow:visible}
}

/* Le mouvement réduit domine les animations et transitions des composants. */
@media(prefers-reduced-motion:reduce){
 body *,body *::before,body *::after{animation:none;transition:none;scroll-behavior:auto}
 body #game-screen *,body #game-screen *::before,body #game-screen *::after{animation:none;transition:none}
 #flash.hit,#flash.miss,#score-pop.visible{animation:none}
 #game-screen .replay-seat,#game-screen .action,#game-screen .next-hand,#game-screen #time-bar,#game-screen #finish-run,#mode-grid .mode-card,#language,#profile,#sound,#retry,#training-back,#back-results,#rematch,body .tracker-link,body .site-nav a,body .mistake{transition:none}
}

/* Verdict dans le flux : la décision et la suite restent accessibles. */
#dismiss-correction{display:none}
@media(max-width:700px){
 body #game-screen .coach:has(.solver-panel:not([hidden])){position:static;max-height:none;overflow:visible;animation:none;box-shadow:none}
 body.correcting #game-screen .solver-panel:not([hidden]){max-height:none;overflow:visible;border-radius:12px}
 #game-screen .decision-area>.next-hand{position:static;margin-top:8px}
 body[data-mode=equity] #game-screen .diamond-table .opponent-seat{top:15%}
 body[data-mode=equity] #game-screen .opponent-cards{height:auto}
 body[data-mode=equity] #game-screen .opponent-cards .card{width:30px;height:42px}
}
body[data-mode=equity] #game-screen .diamond-table .opponent-seat{top:15%}

@media(hover:none),(pointer:coarse){
 #game-screen .action kbd,#game-screen .next-hand kbd,#game-screen .fullhand-controls kbd,.rematch-key kbd{display:none}
}

@media(max-width:700px){
 #game-screen .solver-panel{padding:12px}
 #game-screen .solver-panel .result-top{margin-bottom:8px}
 #game-screen .solver-panel .result-top strong{font-size:15px}
 #game-screen .solver-panel .ev-row{margin:6px 0;font-size:11px;grid-template-columns:90px minmax(0,1fr) 68px;gap:6px}
 #game-screen .solver-panel .ev-row b{font-size:11px}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 8px}
 #game-screen .solver-panel .result-top{grid-column:1}
 #game-screen .solver-panel .grid-heading{grid-column:1;grid-row:auto;display:block;margin:0 0 3px;font-size:9px;text-align:center}
 #game-screen .solver-panel .grid-heading>span{display:none}
 #game-screen .solver-panel #range-grid{grid-column:1;grid-row:auto;width:260px;max-width:260px;margin:0 auto;justify-self:center}
 body:is([data-mode]) #game-screen #solver-panel #range-grid{width:min(260px,100%);max-width:260px;height:auto;aspect-ratio:auto}
 #game-screen #solver-panel .strategy-range .strategy-range-cell{aspect-ratio:1.5}
 #game-screen .solver-panel #frequencies,#game-screen .solver-panel #mode-reveal,#game-screen .solver-panel #real-hand{grid-column:1;grid-row:auto}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-row{grid-template-columns:1fr auto;gap:4px}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-track{grid-row:2;grid-column:1/-1;height:6px}
 #game-screen .solver-panel .odds-picture{margin:8px 0}
}
@media(max-width:700px) and (max-height:600px){
 body[data-mode=rush] #game-screen .diamond-table{min-height:140px;max-height:140px}
 body[data-mode=rush] #game-screen .diamond-table #board .card{width:32px;height:44px}
 body[data-mode=rush] #game-screen .diamond-table #hero-cards .card{width:36px;height:50px}
 body[data-mode=rush] #game-screen .diamond-table .card-corner,#game-screen .diamond-table .card-bottom{font-size:10px}
 body[data-mode=rush] #game-screen .diamond-table .card-suit{font-size:22px}
 #game-screen .solver-panel{padding:8px}
}
@media(max-width:700px){#game-screen .solver-panel:not([hidden]){padding:12px}}
@media(max-width:700px) and (max-height:600px){#game-screen .solver-panel:not([hidden]){padding:8px}}

/* La range partage la hauteur du verdict, sans réserver une bande vide. */
@media(min-width:701px){
 #game-screen .solver-panel{height:auto;min-height:0;flex:none}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) #solver-result{grid-template-columns:minmax(0,1fr) 260px;align-content:start}
 #game-screen .solver-panel:has(#range-grid:not([hidden])) .result-top{grid-column:1}
 #game-screen .solver-panel #range-grid{grid-row:1/5;width:260px;max-width:260px;align-self:start}
}
#game-screen .diamond-table :is(.opponent-cards,.replay-cards,.replay-hole) .card.back{width:clamp(24px,6.2cqw,32px);height:clamp(34px,8.8cqw,45px);transform:none}

/* La clé et la main encadrée suivent la grille. */
#game-screen .solver-panel .grid-heading:not([hidden]){display:block;grid-column:2;grid-row:6;margin:0}
#game-screen .solver-panel .grid-heading[hidden]{display:none}
#game-screen .solver-panel .grid-heading>span{display:none}
#game-screen .solver-panel #grid-caption{font:11px var(--mono)}
#game-screen .solver-panel #grid-legend:not([hidden]){display:flex;grid-column:2;grid-row:5;gap:6px 10px;margin:4px 0 0;font:11px var(--mono);color:var(--text-1)}
@media(max-width:700px){
 body[data-mode=mistakes] #game-screen .solver-panel .grid-heading{grid-column:1;grid-row:auto;justify-self:stretch;margin:4px 0 2px;text-align:center}
 body[data-mode=mistakes] #game-screen .solver-panel #range-grid{grid-column:1;grid-row:auto;justify-self:center}
}
@media(min-width:1366px){
 body[data-mode=mistakes] #game-screen #solver-result>#real-hand{grid-column:1;grid-row:3;align-self:start;margin:12px 0 0}
 body[data-mode=mistakes] #game-screen #solver-result>#mode-reveal{grid-column:1;grid-row:4}
}

/* Équité : cartes dans le tapis et résultat conservé jusqu'à Suivant. */
body[data-mode=equity] #game-screen .diamond-table .opponent-seat{left:50%;top:7%;display:flex;flex-direction:column;gap:6px}
body[data-mode=equity] #game-screen .opponent-cards{gap:6px}
body[data-mode=equity] #game-screen .opponent-cards .card{width:clamp(30px,8cqw,40px);height:clamp(42px,11.2cqw,56px);transform:none}
body[data-mode=equity] #run-progress .correct{background:var(--data-cream)}
@media(max-width:700px),(max-height:800px){
 #game-screen .diamond-table .replay-seat.replay-seat-villain .replay-status{position:absolute;left:calc(100% + 28px);top:0;width:max-content;max-width:25cqw;white-space:normal}
}
@media(min-width:701px) and (max-height:800px){
 body[data-mode=equity] #game-screen .diamond-table .opponent-seat{top:5%}
 body[data-mode=equity] #game-screen .opponent-cards .card{width:30px;height:42px}
}
@media(max-width:700px){
 #game-screen .diamond-table .replay-seat.replay-seat-villain .replay-status{left:auto;right:calc(100% + 20px);top:100%;max-width:35cqw}
}

/* Le chargement garde le tapis visible, sans déplacer la première donne. */
#game-screen .loading-screen{background:transparent;pointer-events:none}
#game-screen .loading-screen .loading-cards{display:none}
#game-screen:has(#loading-screen:not([hidden])) :is(#street,.pot-display){visibility:hidden}
#game-screen:has(#loading-screen:not([hidden])) :is(.hero-seat,.opponent-seat){min-width:64px;min-height:20px;border:1px solid var(--line-2);border-radius:6px;background:var(--raise)}
#game-screen:has(#loading-screen:not([hidden])) .opponent-seat{left:50%;top:4%}
#game-screen:has(#loading-screen:not([hidden])) .opponent-seat>*{visibility:hidden}

/* L'attente doit se voir avant que les réponses deviennent disponibles. */
#actions[aria-busy=true] .action:disabled{opacity:.4;cursor:wait}
#data-status a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:6px;color:var(--cream);text-decoration:none}
/* Les plaques hautes gardent leur hauteur propre à chaque siège. */
#game-screen .training-frame .replay-seat-top{top:var(--seat-top)}
#table-stage:focus{outline:none}
#game-screen .training-frame .replay-seat-hero-center[data-pos=BTN]{left:86%;top:70%}
#game-screen .training-frame .replay-cards{position:absolute;top:auto;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%)}
#game-screen .nash-frame .replay-folded{display:none}

@media(max-width:700px){#game-screen .training-frame .replay-seat-hero-center[data-pos=BTN]{top:60%}}

/* Keep all decision information on the felt, including the hero plate. */
#game-screen .diamond-table{min-height:420px;max-height:420px}
#game-screen .diamond-table .poker-table{inset:0 0 0;border-radius:999px}
#game-screen .diamond-table #board{top:44%}
#game-screen .diamond-table #hero-cards{top:65%}
#game-screen .diamond-table .hero-seat{top:88%;position:absolute}
#game-screen .diamond-table .table-player .seat-plate{padding:5px;gap:6px}
#game-screen .diamond-table .table-player .seat-plate>[data-seat-stack]{font-size:17px}
@media(max-width:700px){#game-screen .diamond-table{min-height:clamp(270px,calc(100svh - 430px),410px);max-height:clamp(270px,calc(100svh - 430px),410px)}#game-screen .diamond-table .hero-seat{top:88%}}

#game-screen:has(#loading-screen:not([hidden])) .decision-wager{visibility:hidden}
@media(max-width:700px){
 body[data-mode=icm] #game-screen .diamond-table .pot-display{top:20%;padding:6px 14px}
 body[data-mode=icm] #game-screen .diamond-table .pot-display b{font-size:24px}
}
@media(max-width:359px){
 #game-screen .diamond-table .table-player .seat-plate{gap:4px;padding:4px}
 #game-screen .diamond-table .table-player .seat-plate>b{font-size:8px;padding:2px 3px}
 #game-screen .diamond-table .table-player .seat-plate>[data-seat-stack]{font-size:13px}
}
@media(max-width:700px){#game-screen .diamond-table #board{top:47%}}

@media(max-width:700px){#game-screen .diamond-table .pot-display{top:34%}}
/* The shell injects table.css again after game styles. Keep game geometry authoritative. */
body #game-screen .diamond-table .pot-display{top:31%}
@media(max-width:700px){body #game-screen .diamond-table .pot-display{top:34%}}

@media(max-width:700px){#game-screen .diamond-table .table-player .seat-plate>[data-seat-stack]{font-size:14px}}
@media(max-width:700px){#game-screen .diamond-table .table-player .seat-plate{padding:2px;gap:4px}}
/* Le pot du milieu reste à distance des sièges et des gains. */
body[data-mode=icm] #game-screen .diamond-table .pot-display{top:43%}
@media(max-width:700px){
 body[data-mode=nash] #game-screen .diamond-table .pot-display{top:24%}
 #game-screen .training-frame .replay-seat{left:clamp(55px,var(--seat-left),calc(100% - 55px))}
 #game-screen .training-frame .replay-seat-hero-center[data-pos=BTN]{left:calc(100% - 55px)}
 #game-screen .diamond-table .replay-position.seat-plate>b{font-size:8px;padding:2px 3px}
 #game-screen .diamond-table .replay-position.seat-plate>[data-seat-stack]{font-size:12px}
}
/* Sur écran court, le pot, le board et le héros gardent chacun leur espace. */
@media(max-width:899px) and (max-height:600px){
 body.rail-shell #game-screen .diamond-table .pot-display{top:30%;padding:2px 10px}
 body.rail-shell #game-screen .diamond-table .pot-display b{font-size:16px}
 body.rail-shell #game-screen .diamond-table #board{top:43%}
 body.rail-shell #game-screen .diamond-table #board .card{width:29px;height:40px}
 body.rail-shell #game-screen .diamond-table #hero-cards{top:66%}
 body.rail-shell #game-screen #table-stage #hero-cards .card{width:30px;height:42px}
 body.rail-shell #game-screen .diamond-table .replay-position.seat-plate{padding:3px;gap:4px}
 body.rail-shell #game-screen .diamond-table .replay-position.seat-plate>b,
 body.rail-shell #game-screen .diamond-table .table-player .seat-plate>b{font-size:8px;padding:2px 3px}
 body.rail-shell #game-screen .diamond-table .replay-position.seat-plate>[data-seat-stack],
 body.rail-shell #game-screen .diamond-table .table-player .seat-plate>[data-seat-stack]{font-size:12px}
 body.rail-shell[data-mode=icm] #game-screen .diamond-table .pot-display{top:calc(55% - 36px)}
}
@media(max-width:899px) and (max-height:600px) and (orientation:landscape){
 body.rail-shell #game-screen .nash-frame .replay-seat-hero-center[data-pos=BTN]{left:68%;top:70%}
}
@media(max-width:700px) and (max-height:600px) and (orientation:portrait){
 body.rail-shell #game-screen .diamond-table :is(.hero-seat,.fullhand-replay-seat[data-player=hero]){top:82%}
 body.rail-shell #game-screen #table-stage #hero-cards .card{height:40px}
}
/* La correction doit aussi tenir sous le tapis sur les petits ordinateurs. */
@media(min-width:900px) and (max-height:800px){
 #game-screen .diamond-table{min-height:260px;max-height:260px}
 body #game-screen .diamond-table .pot-display{top:26%;padding:5px 12px}
 body #game-screen .diamond-table .pot-display b{font-size:24px}
 #game-screen .diamond-table #board .card{height:44px;width:32px}
 #game-screen .diamond-table #hero-cards{top:64%}
 #game-screen .diamond-table #hero-cards .card{height:48px;width:35px}
 #game-screen .diamond-table .seat-plate>[data-seat-stack]{font-size:17px}
 #game-screen .diamond-table :is(.hero-seat,.fullhand-replay-seat[data-player=hero]){top:83.5%}
 body[data-mode=icm] #game-screen .diamond-table .pot-display{top:calc(55% - 46px)}
}

/* Nash side-seat cards leave a narrow central corridor on phones. */
@media(max-width:700px){
 body[data-mode=nash] #game-screen .diamond-table .pot-display{padding:7px 8px}
 body[data-mode=nash] #game-screen .diamond-table .pot-display b{font-size:18px}
}

/* Les colonnes implicites ne doivent pas comprimer les barres sur téléphone. */
@media(max-width:700px){
 #game-screen .solver-panel .grid-heading:not([hidden]),#game-screen .solver-panel #grid-legend:not([hidden]){grid-column:1;grid-row:auto}
 body:is([data-mode]) #game-screen #solver-panel #range-grid{width:100%;max-width:none}
 #game-screen .diamond-table .table-payouts{top:calc(24% + 1px);line-height:10px}
}

/* Les neuf sièges restent distincts même quand UTG doit encore jouer. */
@media(max-width:359px){
 #game-screen .nash-frame .replay-position.seat-plate{flex-direction:column;gap:0}
}

/* Phone: answers and Next hand share one row, one top, one height; no keyboard chips without a keyboard. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 #game-screen .action kbd,#game-screen .next-hand kbd,#game-screen .fullhand-controls kbd{display:none}
}
@media(max-width:700px){
 #game-screen .decision-area{align-items:stretch;gap:8px}
 #game-screen .decision-area>.actions{flex:2 1 calc(var(--action-count,2)*64px);min-width:0;grid-auto-rows:minmax(52px,auto);align-items:stretch}
 #game-screen .decision-area>.actions>.action{min-width:0;min-height:52px;max-height:56px;padding:6px 4px;box-sizing:border-box}
 #game-screen .decision-area>.next-hand{position:static;flex:1 0 96px;width:auto;height:52px;min-height:52px;max-height:56px;margin:0;padding:6px 14px;box-sizing:border-box;font-size:15px;line-height:20px;white-space:nowrap}
 #game-screen .fullhand-controls{gap:8px;margin-top:0}
 #game-screen .fullhand-controls .next-hand{height:52px;min-height:52px;max-height:56px;margin:0;padding:6px 12px;font-size:15px;line-height:20px;white-space:nowrap}
}
/* Equity: five buckets fill the row, so Next hand sits under them; shorter felt keeps it above the nav. */
@media(max-width:700px) and (min-height:701px){
 body[data-mode=equity] #game-screen .diamond-table{min-height:clamp(260px,calc(100svh - 492px),410px);max-height:clamp(260px,calc(100svh - 492px),410px)}
}
/* Phone landscape: answers stack in the 124px side column, Next hand closes it at the same height. */
@media(max-width:899px) and (max-height:600px) and (orientation:landscape){
 body.rail-shell #game-screen .decision-area{flex-direction:column;flex-wrap:nowrap;gap:4px;align-items:stretch}
 body.rail-shell #game-screen .decision-area>#actions{flex:0 0 auto;width:100%;grid-template-columns:minmax(0,1fr);gap:4px}
 body.rail-shell #game-screen .decision-area>#actions:has(.action:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.rail-shell #game-screen .decision-area>#actions>.action{min-width:0;min-height:44px;max-height:44px;padding:4px}
 body.rail-shell #game-screen .decision-area>.next-hand,body.rail-shell #game-screen .fullhand-controls .next-hand{flex:0 0 auto;width:100%;min-height:44px;max-height:44px;margin:0;padding:4px 8px;font-size:15px;line-height:20px;white-space:nowrap}
 body.rail-shell #game-screen .fullhand-controls{flex-direction:column;gap:4px;margin:0}
}
/* The compact felt after answering gets a slimmer wager chip so it fits between seats and cards. */
@media(max-width:700px){
 body.correcting #game-screen .diamond-table .decision-wager{gap:5px;padding:3px 8px}
 body.correcting #game-screen .diamond-table .decision-wager b{font-size:15px}
 body.correcting #game-screen .diamond-table .decision-wager small{font-size:10px}
 body.correcting #game-screen .diamond-table .decision-wager i{width:12px;height:12px}
}
