/* Train in two stages. Decision: the table and the action buttons. Answer: the table stays, a sheet slides up with the verdict.
   Loaded last: it owns the layout of #game-screen, the verdict sheet (.coach) and the deck footer. */

/* The mode deck carries Finish and History. */
.deck-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 6px 0;padding-top:8px;box-shadow:0 -1px 0 var(--line)}
.deck-foot :is(#finish-run,#profile){display:inline-flex;align-items:center;gap:8px;height:40px;min-height:40px;padding:0 12px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--text-2);font:400 14px var(--font-sans);cursor:pointer;visibility:visible;transition:background-color 150ms,color 150ms,transform 120ms var(--ease)}
.deck-foot :is(#finish-run,#profile):hover{background:var(--raise-2);color:var(--text-1)}
.deck-foot :is(#finish-run,#profile):active{transform:scale(.96)}
.deck-foot #finish-run[hidden]{display:none}
.deck-foot #profile svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body[data-screen=title] .deck-foot #finish-run{display:none}
/* The lobby shows the deck inline: no footer divider needed. */

.nav-menu{display:none}

/* Short landscape phones and tiny portrait ones keep the previous layout (verdict under the buttons, bars on top). */
@media not ((max-width:899px) and (max-height:600px)){
body.rail-shell[data-screen=game]{--bar-h:56px;--sheet-h:228px}
body.rail-shell[data-screen=game][data-mode=nash],body.rail-shell[data-screen=game][data-mode=reshove],body.rail-shell[data-screen=game][data-mode=icm],body.rail-shell[data-screen=game][data-mode=mistakes]{--sheet-h:300px}

/* The header: drill name and run segments, nothing else. */
body.rail-shell[data-screen=game] .train-tabs{height:var(--bar-h);min-height:var(--bar-h);flex:none;flex-wrap:nowrap;margin:0}
body.rail-shell[data-screen=game] .train-tabs #run-progress{max-width:260px}

/* The screen is one viewport: bar, table zone, dock/sheet. Nothing scrolls, nothing moves between stages. */
body.rail-shell[data-screen=game]:has(#game-screen:not([hidden])) .shell{position:relative;height:100dvh;min-height:0;overflow:clip;display:flex;flex-direction:column}
body.rail-shell[data-screen=game] .train-workspace{flex:1;min-height:0;position:static;padding:0}
body.rail-shell[data-screen=game] #game-screen{position:static;display:block;height:100%;min-height:0;padding:0;margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .play-layout{display:block;max-width:none;width:100%;height:100%;margin:0;gap:0;padding:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena{position:static;display:flex;align-items:center;justify-content:center;width:100%;height:calc(100dvh - var(--bar-h) - var(--sheet-h));min-height:0;padding:0 0 24px;margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top{display:none}
/* Timed drills: time left sits in the bar, right of the run segments. */
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top:has(.clock-block:not([hidden])){display:contents}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top:has(.clock-block:not([hidden]))>:not(.clock-block){display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top .clock-block:not([hidden]){position:absolute;top:0;right:max(24px,(100% - 1000px)/2);z-index:5;display:flex;align-items:center;height:var(--bar-h);margin:0;pointer-events:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top .clock-block :is(.eyebrow,.time-track){display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top .clock-block strong{font:500 14px/20px var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-2)}
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage{flex:none;width:min(1000px,100%);height:min(470px,calc(100dvh - var(--bar-h) - var(--sheet-h) - 56px));min-height:0;max-height:none;margin:0}

/* Decision stage: the action buttons live where the sheet will rise. */
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area{position:absolute;left:0;right:0;bottom:0;height:var(--sheet-h);z-index:10;display:flex;justify-content:center;align-items:flex-start;padding:52px 0 0;margin:0;transition:opacity 200ms var(--ease),transform 200ms var(--ease),visibility 0s}
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area .situation,body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area .source-line{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions{flex:0 1 auto;width:min(900px,100%);margin:0;display:grid;grid-template-columns:repeat(var(--action-count,3),minmax(0,1fr));gap:12px;height:60px}
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions .action{min-height:60px;height:60px}
body.rail-shell[data-screen=game] #game-screen#game-screen .play-layout:has(#solver-panel:not([hidden])) .decision-area{opacity:0;transform:translateY(12px);visibility:hidden;pointer-events:none;transition:opacity 200ms var(--ease),transform 200ms var(--ease),visibility 0s 200ms}
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area>#next-hand:not([hidden]){display:block}

/* Answer stage: the sheet. Always laid out, parked below the viewport until the player has answered. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach{display:block;position:absolute;left:0;right:0;bottom:0;height:var(--sheet-h);z-index:20;margin:0;padding:0;overflow:hidden auto;background:var(--raise);border:0;border-radius:20px 20px 0 0;box-shadow:0 0 0 1px var(--line-2),0 -18px 40px color-mix(in srgb,var(--shadow-ink) 55%,transparent);transform:translateY(100%);opacity:0;visibility:hidden;transition:transform 220ms var(--ease-in,cubic-bezier(.4,0,1,1)),opacity 220ms var(--ease-in,cubic-bezier(.4,0,1,1)),visibility 0s 220ms}
body.rail-shell[data-screen=game] #game-screen#game-screen .play-layout:has(#solver-panel:not([hidden])) .coach{transform:none;opacity:1;visibility:visible;transition:transform 320ms var(--ease),opacity 240ms var(--ease)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.95fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 44px;column-gap:28px;row-gap:12px;max-width:1064px;height:100%;margin:0 auto;padding:24px 32px;border:0;background:none;box-shadow:none;border-radius:0;animation:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden])::after{content:"";grid-column:3;grid-row:1;border-radius:12px;background:color-mix(in srgb,var(--raise-2) 55%,transparent);box-shadow:inset 0 0 0 1px var(--line)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .solver-head{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-result{display:contents}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-result[hidden]{display:none}
/* The ✓ and ✕ on the rows already say it: the headline stays for assistive tech only. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .result-top{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach :is(#loss,#why,#result-board,#result-hand,.feedback-timer){display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #frequencies{grid-column:1;grid-row:1/-1;align-self:center;padding:0;margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #frequencies:has(.ev-track u){padding-top:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-track u{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-row{margin:0;min-height:32px;grid-template-columns:minmax(64px,92px) minmax(0,1fr) 84px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-track{height:8px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal{grid-column:2;grid-row:1/-1;align-self:center;min-width:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal:empty{display:none}
/* A focusable reveal is not a tap target: no 44px touch minimum, no dead band under the caption. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal{min-height:0!important;margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .odds-picture{display:block;margin:0;padding:0 4px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-pay{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-gauge{padding:26px 0 26px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-word{font-weight:400;color:var(--text-2)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-have .vd-word{color:inherit;opacity:.85}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-have b,body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-req b{font-weight:600}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #real-hand:not([hidden]){grid-column:3;grid-row:1;z-index:1;align-self:center;justify-self:center}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand{grid-column:3;grid-row:2;position:static;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:44px;min-height:44px;margin:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);border:0;font:500 15px var(--font-sans);box-shadow:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand[hidden]{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand:hover{background:var(--accent-hover)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand:active{transform:scale(.96)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand kbd{color:color-mix(in srgb,var(--accent-ink) 70%,transparent);border-color:color-mix(in srgb,var(--accent-ink) 28%,transparent);background:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .fullhand-controls:not([hidden]){grid-column:3;grid-row:2;display:flex;gap:8px;margin:0}
/* Replaying a mistake: Back to run takes the Next hand slot and rises with the sheet. */
body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:not([hidden]){position:absolute;z-index:21;left:auto;right:calc((100% - min(1064px,100%))/2 + 32px);bottom:24px;display:flex;align-items:center;justify-content:center;gap:12px;width:calc((min(1064px,100%) - 120px)/3.2);height:44px;min-height:44px;margin:0;padding:0 16px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);font:500 15px var(--font-sans);box-shadow:none;transform:translateY(calc(var(--sheet-h) + 24px));opacity:0;visibility:hidden;transition:transform 320ms var(--ease),opacity 240ms var(--ease),visibility 0s 320ms}
body.rail-shell[data-screen=game] #game-screen#game-screen:has(#solver-panel:not([hidden])>#solver-result:not([hidden])):has(#next-hand[hidden]):has(#fullhand-controls[hidden])>#back-results:not([hidden]){transform:none;opacity:1;visibility:visible;transition:transform 320ms var(--ease),opacity 240ms var(--ease),background-color 150ms}
body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:hover{background:var(--accent-hover);filter:none}
body.rail-shell[data-screen=game] #game-screen#game-screen:has(#solver-panel:not([hidden])>#solver-result:not([hidden])):has(#next-hand[hidden]):has(#fullhand-controls[hidden])>#back-results:not([hidden]):active{transform:scale(.96)}
body.rail-shell[data-screen=game] #game-screen#game-screen:has(#range-grid:not([hidden]))>#back-results:not([hidden]){left:calc((100% - min(1064px,100%))/2 + 32px);right:auto;width:calc(min(1064px,100%) - 288px - var(--grid-side))}
/* Modes that show the strategy grid: a square grid as tall as the sheet, its heading and legend beside it. */
body.rail-shell[data-screen=game]{--grid-side:calc(var(--sheet-h) - 48px)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]):has(#range-grid:not([hidden])){grid-template-columns:minmax(0,1fr) var(--grid-side) 168px;grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr) 44px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden]))::after{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#real-hand:not([hidden])))::after{display:none}
/* The reveal line names what the row values measure (ICM: prize-pool share): it heads them, right above the values. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #frequencies{grid-column:1;grid-row:3}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #mode-reveal{grid-column:1;grid-row:2;align-self:end;padding:0 6px;text-align:right;font:400 12px/16px var(--font-sans);color:var(--text-2)}
@media(min-width:900px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #range-grid{grid-column:2;grid-row:1/-1;align-self:center;width:var(--grid-side);height:var(--grid-side);max-width:none;margin:0}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #range-grid .strategy-range{height:100%;grid-template-rows:repeat(13,minmax(0,1fr))}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #range-grid .grid-cell{aspect-ratio:auto}
}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #range-grid{grid-column:2;grid-row:1/-1}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #grid-legend{grid-column:3;grid-row:1/-1;align-self:start;margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .grid-heading{grid-column:3;grid-row:1/-1;display:block;align-self:start}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .grid-heading[hidden]{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #next-hand{grid-column:1;grid-row:5}
@media(min-width:900px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .fullhand-controls:not([hidden]){grid-column:1;grid-row:5}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #grid-legend{margin-top:28px}
}

@media(prefers-reduced-motion:reduce){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach,body.rail-shell[data-screen=game] #game-screen#game-screen .play-layout:has(#solver-panel:not([hidden])) .coach,body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area{transition:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results{transition:none!important}
}

body>.support-stamp{display:none}

/* Phones: the app bar sits behind a menu button; the sheet is shorter; the actions stack. */
@media(max-width:899px){
  body.rail-shell[data-screen=game]{--bar-h:52px;--sheet-h:316px}
  body.rail-shell[data-screen=game][data-mode=mistakes]{--sheet-h:316px}
  body.rail-shell[data-screen=game][data-mode=nash],body.rail-shell[data-screen=game][data-mode=reshove],body.rail-shell[data-screen=game][data-mode=icm]{--sheet-h:396px}
  body.rail-shell[data-screen=game]:not(.nav-open) #app-bar{display:none}
  body.rail-shell[data-screen=game]:not(.nav-open):has(#game-screen:not([hidden]))>.support-stamp:not([hidden]){display:flex;position:fixed;top:calc(var(--bar-h) + 2px);right:12px;z-index:2}
  html body.rail-shell[data-screen=game]{padding-top:0!important;padding-bottom:0!important}
  body.rail-shell[data-screen=game]:has(#game-screen:not([hidden])) .shell{padding:0 12px;min-height:0}
  .nav-menu{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;border:0;border-radius:10px;background:transparent;color:var(--text-2);cursor:pointer}
  .nav-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
  body.rail-shell[data-screen=game] .train-tabs{gap:12px;padding:0}
  body.rail-shell[data-screen=game] .train-tabs #run-progress{order:0;flex:1 1 auto;max-width:none;height:20px;margin:0}
  body.rail-shell[data-screen=game] .train-tabs .mode-switch{min-height:44px}
  body.rail-shell[data-screen=game] .train-tabs .mode-switch{flex:0 1 auto;min-width:0}
  body.rail-shell[data-screen=game] .train-tabs .mode-switch #mode-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.rail-shell[data-screen=game] .train-tabs #run-progress{flex:1 1 0;min-width:48px}
  /* Every run segment fits the space left by the drill name and the menu. */
  body.rail-shell[data-screen=game] .train-tabs #run-progress{gap:2px;overflow:hidden}
  body.rail-shell[data-screen=game] .train-tabs #run-progress i{min-width:0}
  body.rail-shell[data-screen=game] .train-tabs .nav-menu{flex:none}
  body.rail-shell[data-screen=game]:has(.clock-block:not([hidden])) .train-tabs #run-progress{margin-right:52px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top .clock-block:not([hidden]){right:68px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .arena-top .clock-block strong{font-size:13px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .arena{padding:0 0 20px}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage{width:100%;height:min(410px,calc(100dvh - var(--bar-h) - var(--sheet-h) - 44px));max-height:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area{padding:0 16px;align-items:center}
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions{flex:0 1 auto;flex-direction:column;display:flex;gap:8px;width:100%;height:auto}
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions .action{width:100%;height:58px;min-height:58px;flex:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions .action kbd{display:none}
  body.rail-shell[data-screen=game][data-mode=equity] #game-screen#game-screen .decision-area #actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:auto auto 48px;row-gap:12px;column-gap:14px;padding:16px 16px calc(14px + env(safe-area-inset-bottom))}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #frequencies{grid-column:1/-1;grid-row:1}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal{grid-column:1;grid-row:2}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden])::after{grid-column:2;grid-row:2;min-height:56px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand,body.rail-shell[data-screen=game] #game-screen#game-screen .coach .fullhand-controls:not([hidden]){grid-column:1/-1;grid-row:3;height:48px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand kbd{display:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:not([hidden]){left:16px;right:16px;width:auto;height:48px;min-height:48px;bottom:calc(14px + env(safe-area-inset-bottom))}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#range-grid:not([hidden]))>#back-results:not([hidden]){left:16px;right:16px;width:auto;top:calc(100% - var(--sheet-h) + 16px);bottom:auto}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#back-results:not([hidden])) .coach #solver-panel:has(#range-grid:not([hidden])):has(#next-hand[hidden]){padding-top:74px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-row{min-height:30px;grid-template-columns:minmax(56px,84px) minmax(0,1fr) 72px}
  /* One label column for every row, as wide as the longest label: bars start together, no label wraps. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel #frequencies{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:2px 8px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel #frequencies>.ev-row{grid-column:1/-1;grid-template-columns:subgrid;column-gap:8px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-row>span{white-space:nowrap}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-gauge{padding:22px 0 24px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) :is(#frequencies,#mode-reveal,.grid-heading,#range-grid,#grid-legend,#next-hand){grid-column:1;grid-row:auto}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])){grid-auto-rows:auto;row-gap:10px;height:auto;min-height:100%}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #next-hand{order:-1;grid-row:auto;height:48px;min-height:48px}
  /* Grid modes use the same one-line EV row as every other mode: label, bar, value. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #frequencies>.ev-row{grid-column:1/-1;grid-template-columns:subgrid;column-gap:8px;min-height:30px;font-size:14px;line-height:21px;padding:0 6px;margin:0}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .ev-row>span{font-size:14px;line-height:21px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .ev-row b{grid-row:auto;grid-column:auto;font-size:13px;line-height:20px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .ev-track{grid-column:auto;grid-row:auto;height:8px;border-radius:4px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) .ev-track .ev-pin{width:12px;height:12px;margin-left:-6px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #range-grid{max-width:none}
  /* The menu button brings the app bar back over the table. */
  body.rail-shell.nav-open #app-bar{display:flex;z-index:80}
  body.rail-shell.nav-open::after{content:"";position:fixed;inset:0;z-index:70;background:var(--scrim)}
}
@media(max-width:359px){
  body.rail-shell[data-screen=game] .train-tabs #mode-glyph{display:none}
}
@media(max-width:899px) and (max-height:700px){
  body.rail-shell[data-screen=game]{--sheet-h:252px}
  body.rail-shell[data-screen=game][data-mode=mistakes],body.rail-shell[data-screen=game][data-mode=nash],body.rail-shell[data-screen=game][data-mode=reshove],body.rail-shell[data-screen=game][data-mode=icm]{--sheet-h:252px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){padding-top:12px;row-gap:10px;grid-template-rows:auto 52px 46px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-gauge{padding:20px 0 22px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach .ev-row{min-height:28px}
  body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:not([hidden]){bottom:calc(12px + env(safe-area-inset-bottom))}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#range-grid:not([hidden]))>#back-results:not([hidden]){top:calc(100% - var(--sheet-h) + 12px)}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#back-results:not([hidden])) .coach #solver-panel:has(#range-grid:not([hidden])):has(#next-hand[hidden]){padding-top:70px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .arena{padding-bottom:30px}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .card{width:40px;height:57px}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .card-corner,body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .card-bottom{font-size:11px}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .card-suit{font-size:20px}
  /* The hole cards sit 4px above the hero plate (its top is at 88%) and scale with the felt's height. */
  body.rail-shell[data-screen=game]{--hole-h:clamp(42px,calc((min(410px,100dvh - var(--bar-h) - var(--sheet-h) - 44px)) * .26),68px)}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .hero-cards .card{width:calc(var(--hole-h) * .7);height:var(--hole-h)}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage :is(.replay-cards,.opponent-cards) .card{width:30px;height:42px}
  body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .hero-cards{top:auto;bottom:calc(12% + 4px)}
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area #actions .action{height:50px;min-height:50px}
}

/* Push/fold explanation: verdict, then the sentence, then the table. Nothing scrolls inside the sheet.
   Desktop: the sentence sits under the EV rows, the table fills the right column above Next hand.
   Phone: one column under the EV rows; the sheet scrolls as a whole. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal .pf-explain{margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal .pf-explain p{margin:0;font:400 14px/20px var(--font-sans);color:var(--text-1);text-wrap:pretty}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal .pf-explain table{margin-top:12px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal .pf-explain td{padding-block:4px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #mode-reveal .verdict-context{margin:8px 0 0;font-size:12px;line-height:1.35;color:var(--text-2);white-space:pre-line}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain) #mode-reveal{min-width:0;max-height:none;overflow:visible;padding:0;text-align:left;background:none;box-shadow:none;border-radius:0}
@media(min-width:900px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):not(:has(#range-grid:not([hidden])))::after{display:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):not(:has(#range-grid:not([hidden]))) #frequencies{grid-column:1/3}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):not(:has(#range-grid:not([hidden]))) #mode-reveal{grid-column:3;grid-row:1;align-self:start}
  /* Grid modes: rows for the legend, the EV rows and the sentence; the overflow row below Next hand takes the note. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])){grid-template-columns:minmax(0,1fr) var(--grid-side) minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) 44px auto;height:auto;min-height:100%}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #mode-reveal,body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #mode-reveal .pf-explain{display:contents}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) :is(.grid-heading,#grid-legend){grid-column:1;grid-row:1;align-self:start;justify-self:end;text-align:right}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #grid-legend{margin-top:22px;justify-content:flex-end}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #frequencies{grid-column:1;grid-row:2;align-self:start}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) .pf-explain p{grid-column:1;grid-row:3;align-self:start}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) .pf-explain table{grid-column:3;grid-row:1/5;align-self:start;margin:0}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #range-grid{grid-column:2;grid-row:1/6}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #real-hand:not([hidden]){grid-column:1;grid-row:5;align-self:center;justify-self:start}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) :is(#next-hand,.fullhand-controls:not([hidden])){grid-column:3;grid-row:5}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) .verdict-context{grid-column:1/-1;grid-row:6;margin:4px 0 0}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden]))>#back-results:not([hidden]){left:auto;right:calc((100% - min(1064px,100%))/2 + 32px);width:calc((min(1064px,100%) - 120px - var(--grid-side))/2)}
}
@media(max-width:899px){
  /* The replay link is a row of its own: a third column would squeeze every other one. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel #real-hand:not([hidden]){grid-column:1/-1;grid-row:auto;order:3;justify-self:start}
  /* A long note grows the sheet, which scrolls as a whole; Next hand stays pinned to its bottom. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))){height:auto;min-height:100%}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))) #next-hand{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom));z-index:2}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):not(:has(#range-grid:not([hidden])))::after{display:none}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):not(:has(#range-grid:not([hidden]))) #mode-reveal{grid-column:1/-1;grid-row:2}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) #mode-reveal{order:1}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden])) :is(.grid-heading,#range-grid,#grid-legend){order:2}
}
@media(max-width:899px) and (max-height:700px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))){grid-template-rows:auto minmax(52px,auto) 46px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))) #next-hand{bottom:calc(12px + env(safe-area-inset-bottom))}
}
/* Only the two seats in the hand are drawn: no greyed labels for the folded ones. */
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .replay-folded{visibility:hidden}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach kbd{font:500 11px/16px var(--font-mono);padding:1px 6px;min-width:22px;width:auto;height:auto;border-radius:5px;text-align:center}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .vd-have{left:max(calc(var(--equity)*100%),4.6em)}

/* The dock: the action buttons, then the verdict, take one slot at table width right under the table (no dead band).
   Desktop: table and dock centred together in the viewport. Phone: table at the top, dock right under it.
   --dock-free is the height left over once bar, table, gap and dock are laid out. */
body.rail-shell[data-screen=game]{--dock-gap:16px;--dock-w:min(1000px,100%);--table-h:min(470px,calc(100dvh - var(--bar-h) - var(--sheet-h) - 56px));--dock-free:max(0px,calc(100dvh - var(--bar-h) - var(--table-h) - var(--dock-gap) - var(--sheet-h)));--dock-lift:calc(var(--dock-free) / 2)}
body.rail-shell[data-screen=game] #game-screen#game-screen .arena{align-items:flex-end;height:calc(100dvh - var(--bar-h) - var(--sheet-h) - var(--dock-gap) - var(--dock-lift));padding:0}
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage{height:var(--table-h)}
body.rail-shell[data-screen=game] #game-screen#game-screen :is(.decision-area,.coach){left:calc((100% - var(--dock-w)) / 2);right:calc((100% - var(--dock-w)) / 2);bottom:var(--dock-lift)}
body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area{padding-top:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach{border-radius:16px;box-shadow:0 0 0 1px var(--line-2)}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){max-width:none}
body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:not([hidden]){right:calc((100% - var(--dock-w)) / 2 + 32px);bottom:calc(var(--dock-lift) + 24px);width:calc((var(--dock-w) - 120px) / 3.2)}
body.rail-shell[data-screen=game] #game-screen#game-screen:has(#range-grid:not([hidden]))>#back-results:not([hidden]){left:auto;right:calc((100% - var(--dock-w)) / 2 + 32px);width:200px}
/* Grid modes: a taller dock, so the 169-hand diamond gets room (it is as tall as the dock). */
@media(min-width:1200px) and (min-height:860px){
  body.rail-shell[data-screen=game]:is([data-mode=nash],[data-mode=reshove],[data-mode=icm],[data-mode=mistakes]){--sheet-h:380px}
}
@media(min-width:900px){
  /* Next hand on the right, under the legend, as on every other verdict. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) :is(#grid-legend,.grid-heading){grid-row:1/5}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]):has(#range-grid:not([hidden])){grid-template-columns:minmax(0,1fr) var(--grid-side) 200px}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#range-grid:not([hidden])) #next-hand{grid-column:3;grid-row:5;white-space:nowrap}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#mode-reveal .pf-explain):has(#range-grid:not([hidden]))>#back-results:not([hidden]){right:calc((100% - var(--dock-w)) / 2 + 32px);width:calc((var(--dock-w) - 120px - var(--grid-side)) / 2)}
}
/* Verdict without a grid: Next hand centred beside the bars (unless See the real hand takes the top of its column). */
@media(min-width:900px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))):not(:has(#real-hand:not([hidden]))) #next-hand{grid-row:1/-1;align-self:center}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not(:has(#range-grid:not([hidden]))):has(#mode-reveal:empty) #frequencies{grid-column:1/3;max-width:560px}
  /* The dock fits its verdict: anchored under the table, no empty rows under a short verdict. */
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach:has(#next-hand:not([hidden])):not(:has(#range-grid:not([hidden]))){top:calc(100% - var(--dock-lift) - var(--sheet-h));bottom:auto;height:auto;max-height:var(--sheet-h)}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach:has(#next-hand:not([hidden])) #solver-panel:not(:has(#range-grid:not([hidden]))){height:auto}
}
/* Phone: the sheet starts right under the table and runs to the screen edge; Next hand follows the bars. */
@media(max-width:899px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach{top:calc(100% - var(--dock-lift) - var(--sheet-h));bottom:0;height:auto;align-self:stretch}
  body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#next-hand:not([hidden])):not(:has(#range-grid:not([hidden]))){grid-template-rows:auto auto auto;align-content:start;min-height:0}
}
@media(max-width:899px){
  body.rail-shell[data-screen=game] #game-screen#game-screen .decision-area{align-items:flex-start}
  body.rail-shell[data-screen=game]{--dock-w:100%;--dock-gap:12px;--table-h:min(410px,calc(100dvh - var(--bar-h) - var(--sheet-h) - 44px));--dock-lift:var(--dock-free)}
  body.rail-shell[data-screen=game] #game-screen#game-screen>#back-results:not([hidden]){left:16px;right:16px;width:auto;bottom:calc(var(--dock-lift) + 14px + env(safe-area-inset-bottom))}
  body.rail-shell[data-screen=game] #game-screen#game-screen:has(#range-grid:not([hidden]))>#back-results:not([hidden]){left:16px;right:16px;width:auto;top:calc(100% - var(--dock-lift) - var(--sheet-h) + 16px)}
}

/* Run progress: one small 45° square per spot (the 169diamonds marker), coloured by result; the current spot in sapphire.
   --n (spots in the run, set by updateHUD) shrinks markers and gaps so a long run always fits its row. */
body.rail-shell[data-screen=game] .train-tabs #run-progress{justify-content:flex-start;gap:min(7px,calc(100% / var(--n,20) * .45));max-width:300px;padding-inline:1.5px;overflow:visible}
body.rail-shell[data-screen=game] .train-tabs #run-progress i{flex:0 1 7px;min-width:0;height:auto;aspect-ratio:1;border-radius:1.5px;rotate:45deg;background:color-mix(in srgb,var(--text-1) 12%,transparent)}
body.rail-shell[data-screen=game] .train-tabs #run-progress i:is(.perfect,.correct){background:var(--gain)}
body.rail-shell[data-screen=game] .train-tabs #run-progress i.error{background:var(--loss)}
body.rail-shell[data-screen=game] .train-tabs #run-progress :is(i[class=""]:first-child,i:not([class=""])+i[class=""]){background:var(--accent-hover);box-shadow:0 0 0 3px var(--accent-soft)}
@media(max-width:899px){
  body.rail-shell[data-screen=game] .train-tabs #run-progress{gap:min(4px,calc(100% / var(--n,20) * .4));max-width:none}
  body.rail-shell[data-screen=game] .train-tabs #run-progress i{flex-basis:5px}
  body.rail-shell[data-screen=game] .train-tabs #run-progress :is(i[class=""]:first-child,i:not([class=""])+i[class=""]){box-shadow:0 0 0 2px var(--accent-soft)}
}

/* Board and pot, as on every other table: the board, then the shared pot pill right under it.
   One board card height per layout (--arc-card-h) sizes the cards and places the pill. */
body.rail-shell[data-screen=game]{--arc-board-top:32%;--arc-card-h:clamp(44px,calc(var(--table-h) * .165),76px)}
@media(min-width:900px){body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage #board .card{height:var(--arc-card-h);width:calc(var(--arc-card-h) * .71)}}
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage #board{top:var(--arc-board-top)}
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage .pot-display{top:calc(var(--arc-board-top) + var(--arc-card-h) + 8px)}
body.rail-shell[data-screen=game] #game-screen#game-screen #table-stage:has(#board:empty) .pot-display{top:42%}
@media(max-width:899px){
  body.rail-shell[data-screen=game]{--arc-board-top:27%;--arc-card-h:15cqw}
}
@media(max-width:899px) and (max-height:700px){body.rail-shell[data-screen=game]{--arc-card-h:57px}}
@media(max-width:389px) and (min-height:701px){body.rail-shell[data-screen=game]{--arc-board-top:32%}}
}

/* #831: one lesson first; the optional reference no longer drives the sheet layout. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){display:flex;flex-direction:column;gap:8px;height:auto;min-height:0!important;padding:20px 24px}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel::after{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-result{display:block;width:100%}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach .result-top{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin:0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #result-title{font:500 17px/1.4 var(--font-sans);display:block}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #result-title::before{display:none}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #verdict-details #mode-reveal{display:block;font:400 12px/1.4 var(--font-sans);text-align:left;margin:12px 0}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #verdict-details #range-grid{width:100%;max-width:420px;height:auto;margin:12px auto}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #verdict-details .pf-explain{display:block}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand{flex:none;order:0}
@media(max-width:899px){body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:not([hidden]){padding:16px 16px calc(14px + env(safe-area-inset-bottom))}}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #verdict-details #range-grid .strategy-range{height:auto;aspect-ratio:1;grid-template-rows:repeat(13,minmax(0,1fr))}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #verdict-details #range-grid .grid-cell{aspect-ratio:auto;font-size:8px;min-height:0;min-width:0}

@media(min-width:900px){body.rail-shell[data-screen=game] #game-screen#game-screen .coach #next-hand{width:200px;margin-left:auto}}

/* The reference wrapper, rather than the native details content box, owns its grid. */
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#verdict-details[open]) #next-hand{position:sticky;bottom:14px;z-index:2;order:0}
@media(min-width:900px){
#game-screen #verdict-details .verdict-reference:has(.pf-explain){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:max-content minmax(0,1fr);gap:12px 24px}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) #frequencies{grid-column:1!important;grid-row:1!important}
#game-screen #verdict-details .verdict-reference #mode-reveal:has(.pf-explain),#game-screen #verdict-details .verdict-reference .pf-explain{display:contents!important}
#game-screen #verdict-details .pf-explain p{grid-column:1!important;grid-row:2!important}
#game-screen #verdict-details .pf-explain table{grid-column:2!important;grid-row:1/3!important;margin:0}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) .verdict-context{grid-column:1/-1!important;grid-row:3!important}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) .grid-heading{grid-column:1!important;grid-row:4!important}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) #grid-legend{grid-column:2!important;grid-row:4!important;margin:0!important}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) #range-grid{grid-column:1/-1!important;grid-row:5!important}
#game-screen #verdict-details .verdict-reference:has(.pf-explain) #real-hand{grid-column:1/-1!important;grid-row:6!important}
}

@media(min-width:900px){
body.rail-shell[data-screen=game] #game-screen#game-screen .coach:has(#verdict-details[open]){top:calc(100% - var(--dock-lift) - var(--sheet-h));bottom:0;height:auto;max-height:none}
}

body.rail-shell[data-screen=game] #game-screen#game-screen .coach #solver-panel:has(#verdict-details[open]){overflow:visible;max-height:none}

body.rail-shell[data-screen=game] #game-screen#game-screen .coach #correction-odds .vd-pay{display:flex}
body.rail-shell[data-screen=game] #game-screen#game-screen .coach #correction-odds .vd-have{left:0}
