/* The facilitator's default surface; Play It Yourself opens the full game. */
/* Site fit (fix order 001): this view is a page of the site. The classification bar, the site header and the site
   footer show as the site's own sheets draw them; no rule here touches them. The type is the site's scale: page title
   31, week heading 26, panel headings 21, sentences 18, labels and record lines 14, controls as the site's button.
   There is one type scale at every window size: --u is the constant 1. The width rules change placement, spacing
   and the chart slot's height, never type sizes. Existing sizes are
   written N px x --u; the new mode row uses the fixed Tool launch values and site sentence sizes. Content is capped at 1440 px wide. What grows with the window is the battlefield stage, by
   window height between two fixed heights (see #demo-board below), and the chart drawing with it: chart text and
   marks are set in viewBox units and take the size of the chart box. The overlays inside the stage are styled by the
   battlefield package from board.css; two of them (eyebrow, key strip) are sized from here. Nothing is under 14 px
   but that eyebrow, an upper-case label at 13. */
.game-page.demo-play{--u:1;background:var(--ck-mineral);color:var(--ck-ink)}
.game-page.demo-play .legacy-only,.game-page.demo-play #legacy-game{display:none}
/* The site header is sticky (57 px): an in-page jump to the content (the skip link) lands clear of it, at the
   distance the site's own anchors keep. */
.game-page.demo-play .game-wrap{max-width:1440px;padding:calc(10px*var(--u,1)) 40px calc(24px*var(--u,1));margin:0 auto;scroll-margin-top:70px}
/* Page head: the title and the thesis sentence at the site's page title and body sizes, then one toolbar row whose
   week heading is a section heading under that title, as on every page of the site. */
.game-page.demo-play .game-intro{display:block;margin:0 0 calc(6px*var(--u,1));padding:0;border:0}
.game-page.demo-play .game-intro h1{font-family:var(--font-display,'Oswald',sans-serif);font-size:calc(31px*var(--u,1));line-height:calc(34.1px*var(--u,1));margin:0 0 calc(4px*var(--u,1));letter-spacing:-.5px}
.game-page.demo-play .game-intro p{font-size:calc(18px*var(--u,1));line-height:calc(26.1px*var(--u,1));max-width:none;margin:0;color:var(--ck-ink-2)}
/* The Tool Application launch button's fixed values, including the line height inherited there from its paragraph.
   The generic game button font and the ghost component's smaller padding must not replace those values here.
   Both modes retain the site's diamond. A selection changes colours and its pressed state, never its box or case. */
#game-modes{margin:0 0 8px}
.game-mode-row.launch-action{justify-content:flex-start;gap:12px;margin:0}
.game-page .game-mode-row .launch-button{font-family:var(--font-display);font-size:14px;font-weight:600;line-height:1.45;letter-spacing:1.2px;text-transform:none;padding:15px 26px;min-height:44px;border:1px solid var(--ck-gold);border-radius:6px;margin:0}
.game-page .game-mode-row .launch-button.ghost{background:transparent;color:var(--ck-ink);border-color:var(--ck-ink)}
.game-page .game-mode-row .launch-button:focus-visible{outline:2px solid var(--ck-gold);outline-offset:3px}
.game-page .game-mode-description,.game-page .demo-choice-description{font-family:var(--font-body);font-size:18px;line-height:26.1px;min-height:52.2px;margin:0;color:var(--ck-ink-2)}
.demo-choice-row{display:flex;gap:8px;align-items:center}
.game-page .demo-choice-row .game-button,.game-page .play-controls .game-button{font-family:var(--font-display);letter-spacing:.5px;text-transform:none}
#demo-choices[hidden]{display:none}
.play-controls{display:grid;gap:12px;margin:0 0 12px}
.play-choice-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.game-page .demo-choice-row .game-button,.game-page .play-controls .game-button{min-height:44px}
.game-page .play-choice-description{font-family:var(--font-body);font-size:18px;line-height:26.1px;margin:0;color:var(--ck-ink-2)}
.play-pending{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.game-page .play-pending p{font-size:14px;line-height:20.3px;margin:0;flex:1 1 300px}
.play-controls [hidden]{display:none}
/* The shell is one grid. Rows: toolbar, the miss note (if any), the two panels with their band, then the foot of
   the shell (method line, save note, and a last row that takes up the slack; not the site footer, which follows the
   page content). The battlefield precedes the chart in the markup; the method line is placed in the foot from here. The two
   columns are the two columns of the panels (same widths, same gap), so the foot sits on the panel grid: record
   lines on the left, honesty sentences on the right. The first two foot tracks stay at 19 px unless their own text
   wraps. Show the math stays at the toolbar's right edge; opened arithmetic occupies the final row below the foot. */
.demo-shell{font-size:calc(16px*var(--u,1));line-height:1.4;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto fit-content(calc(19px*var(--u,1))) fit-content(calc(19px*var(--u,1))) auto auto;column-gap:calc(20px*var(--u,1));align-items:start}
.demo-toolbar{grid-column:1/-1;grid-row:1;display:flex;justify-content:space-between;align-items:center;gap:calc(24px*var(--u,1));min-height:calc(44px*var(--u,1));margin-bottom:calc(10px*var(--u,1));padding-right:166px}
.demo-toolbar-lead{display:flex;align-items:baseline;gap:calc(16px*var(--u,1));min-width:0}
.demo-toolbar h2{order:1;flex:none;min-width:7.5em;font-family:var(--font-display,'Oswald',sans-serif);font-size:calc(26px*var(--u,1));line-height:1.15;letter-spacing:-.3px;margin:0;white-space:nowrap}
.demo-kicker{order:2;min-width:0;margin:0;padding-left:calc(16px*var(--u,1));border-left:1px solid var(--ck-control-boundary);font-size:calc(16px*var(--u,1));line-height:1.25;font-weight:600;color:var(--ck-ink)}
.demo-controls{display:flex;flex:none;gap:calc(10px*var(--u,1));align-items:center}
/* The recording controls and math disclosure use the site's button: display weight 600, 14 px, 1.2 px letter spacing, authored
   case, radius 6, at least 44 px high. Secondary (the resting look): ivory fill, ink label, the control boundary. */
.game-page .demo-controls button,.game-page .demo-math-toggle{font:600 calc(14px*var(--u,1))/1.25 var(--font-display,'Oswald',sans-serif);letter-spacing:calc(1.2px*var(--u,1));padding:calc(12px*var(--u,1)) calc(18px*var(--u,1));min-height:calc(44px*var(--u,1));border:1px solid var(--ck-control-boundary);border-radius:6px;background:var(--ck-ivory);color:var(--ck-ink);cursor:pointer;box-sizing:border-box;white-space:nowrap}
.game-page .demo-controls button[data-demo="next"]{background:var(--ck-graphite,#24292b);color:var(--ck-header-text);border-color:var(--ck-gold)}
/* Control states. One flat, quiet look for what cannot be used: Next week for as long as Play all runs, and Next week
   and Play all when there is nothing more to play (marked aria-disabled, so focus stays on them), and the real disabled
   state while the full game opens. Its label is at full strength (no opacity), so it can still be read. A week in
   flight changes none of the controls. Hover and pressed apply to whatever can be used now. Exactly one control
   carries the primary look at any time, the look of the site's button (graphite fill, header text, a gold hairline;
   no diamond): Next week at rest, Play all while it runs, Reset at the last week. The focus ring is the site's. */
.game-page .demo-controls button:disabled,.game-page .demo-controls button[aria-disabled="true"]{background:transparent;color:var(--ck-ink-2);border-color:var(--ck-divider);cursor:default}
.game-page .demo-controls button:hover:not(:disabled):not([aria-disabled="true"]),.game-page .demo-math-toggle:hover{background:var(--ck-selected);border-color:var(--ck-brass)}
.game-page .demo-controls button:active:not(:disabled):not([aria-disabled="true"]),.game-page .demo-math-toggle:active{transform:translateY(1px)}
.game-page .demo-controls button[data-demo="play"][aria-pressed="true"]{background:var(--ck-graphite,#24292b);color:var(--ck-header-text);border-color:var(--ck-gold)}
/* Open math has a gold fill, ink border and inset brass edge, including under the pointer. It is not the graphite primary look. */
.game-page .demo-math-toggle[aria-expanded="true"],.game-page .demo-math-toggle[aria-expanded="true"]:hover{background:var(--ck-gold);border-color:var(--ck-ink);box-shadow:inset 0 -3px 0 var(--ck-brass)}
.demo-shell[data-complete] .demo-controls button[data-demo="reset"]:not(:disabled){background:var(--ck-graphite,#24292b);color:var(--ck-header-text);border-color:var(--ck-gold)}
.game-page .demo-controls button[data-demo="next"]:hover:not(:disabled):not([aria-disabled="true"]),.game-page .demo-controls button[data-demo="play"][aria-pressed="true"]:hover:not(:disabled),.demo-shell[data-complete] .demo-controls button[data-demo="reset"]:hover:not(:disabled){background:var(--ck-graphite-2,#2d332f);color:var(--ck-header-text);border-color:var(--ck-gold)}
.game-page .demo-controls button:focus-visible,.game-page .demo-math-toggle:focus-visible{outline:3px solid var(--ck-brass);outline-offset:2px}
/* Two equal panels that end on one bottom edge, and under them one band: caption left, prompt right. */
.demo-comparison{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto calc(72px*var(--u,1));gap:calc(8px*var(--u,1)) calc(20px*var(--u,1));align-items:stretch;margin-bottom:calc(8px*var(--u,1))}
.demo-chart-panel,.demo-board-panel{min-width:0;display:flex;flex-direction:column;border:1px solid var(--ck-divider);border-top:3px solid var(--ck-brass);background:var(--ck-ivory);padding:calc(11px*var(--u,1)) calc(18px*var(--u,1));border-radius:3px}
.demo-board-panel{grid-column:1;grid-row:1;container-type:inline-size;container-name:demo-battlefield}
.demo-chart-panel{grid-column:2;grid-row:1}
.demo-panel-heading{display:flex;align-items:baseline;gap:calc(12px*var(--u,1));height:calc(26px*var(--u,1));margin-bottom:calc(7px*var(--u,1));white-space:nowrap}
.demo-panel-heading h3{font:500 calc(21px*var(--u,1))/calc(25.2px*var(--u,1)) var(--font-display,'Oswald',sans-serif);margin:0;color:var(--ck-ink)}
.demo-panel-heading>span{font-size:calc(14px*var(--u,1));line-height:calc(26px*var(--u,1));color:var(--ck-ink-2)}
/* The battlefield is the run drawn as the solid line: its heading carries that line as a mark. */
#demo-board-title::before{content:"";display:inline-block;width:calc(28px*var(--u,1));height:0;border-top:calc(4px*var(--u,1)) solid #2e6477;margin-right:calc(10px*var(--u,1));vertical-align:middle;position:relative;top:-.08em}
/* The chart fills what the panel has left: the slot stretches and the drawing fits inside it.
   Its slot is 11 px shorter than the battlefield stage: the tiles above the stage take 113 px,
   the legend and key below the chart 124. The slot and drawing use LIVE's dimensions. When stacked, the width
   query preserves this slot height rather than stretching the drawing to the wider panel. The computed fit is
   recorded under evidence/d365 and is flagged SELF-DERIVED. */
#demo-chart-slot{position:relative;flex:1 1 auto;min-height:calc(250px*var(--u,1))}
.demo-chart{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;font-family:var(--font-body,'Source Sans 3',sans-serif)}
.demo-chart text{fill:var(--ck-ink-2);font-size:16px}
.demo-chart-grid line{stroke:var(--ck-divider);stroke-width:1}
.demo-chart .demo-chart-grid.reference text{fill:var(--ck-ink);font-weight:600}
.demo-chart-reference{stroke:var(--ck-ink-2);stroke-width:1.5}
.demo-chart .demo-chart-week.current{fill:var(--ck-ink);font-weight:700}
.demo-chart .demo-chart-week-label{font-size:16px;font-weight:600}
.demo-gap{stroke:none}
.demo-gap.unfunded{fill:var(--ck-ink-2);fill-opacity:.18}
.demo-gap.funded{fill:#2e6477;fill-opacity:.3}
.demo-line{fill:none;stroke-linejoin:round}
.demo-line.funded{stroke:#2e6477;stroke-width:4;stroke-linecap:round}
.demo-line.unfunded{stroke:var(--ck-ink-2);stroke-width:3;stroke-dasharray:10 7;stroke-linecap:butt}
.demo-point.funded{fill:#2e6477;stroke:var(--ck-ivory);stroke-width:1.5}
.demo-point.unfunded{fill:var(--ck-ivory);stroke:var(--ck-ink-2);stroke-width:2.5}
.demo-point.unfunded.tie{fill:none}
.demo-event.deployment line{stroke:var(--ck-brass);stroke-dasharray:2 4;stroke-width:1.5}
.demo-event.deployment rect{fill:var(--ck-gold);stroke:var(--ck-ink);stroke-width:1}
.demo-chart .demo-event.deployment text{font-size:17px;font-weight:600;fill:var(--ck-ink)}
.demo-event.strike path{fill:#9a5249;stroke:var(--ck-ivory);stroke-width:1.5}
/* Line-end labels carry an ivory halo, not a backing box, so the 50% reference line stays in view beside the text.
   The box the layout computes is kept in the markup (it is what the clearances are measured on) and is not painted. */
.demo-endpoint-background{fill:none}
.demo-chart .demo-endpoint-label text{font-size:17px;font-weight:600;paint-order:stroke;stroke:var(--ck-ivory);stroke-width:5px;stroke-linejoin:round}
.demo-chart .demo-endpoint-label .demo-endpoint-share{font-family:var(--font-display,'Oswald',sans-serif);font-size:24px;font-weight:500;font-variant-numeric:tabular-nums}
.demo-endpoint-label.funded text{fill:#2e6477}
.demo-endpoint-label.unfunded text{fill:var(--ck-ink-2)}
/* Legend: one aligned row per run. Line mark, name over allocation, generation over the generation of its opponent, share. */
.demo-legend{display:grid;grid-template-columns:1fr;gap:calc(8px*var(--u,1));margin:calc(6px*var(--u,1)) 0 0}
.demo-legend>div{display:grid;grid-template-columns:calc(40px*var(--u,1)) minmax(0,1fr) auto auto;grid-template-rows:calc(22px*var(--u,1)) calc(19px*var(--u,1));column-gap:calc(14px*var(--u,1));align-items:center}
.demo-legend i{grid-area:1/1;display:block;height:0;border-top:calc(4px*var(--u,1)) solid #2e6477}
.demo-legend .unfunded i{height:calc(3px*var(--u,1));border-top:0;background:repeating-linear-gradient(90deg,var(--ck-ink-2) 0 calc(10px*var(--u,1)),transparent calc(10px*var(--u,1)) calc(17px*var(--u,1)))}
.demo-legend-label{grid-area:1/2;min-width:0;font-size:calc(16px*var(--u,1));line-height:calc(22px*var(--u,1));font-weight:600;color:var(--ck-ink);white-space:nowrap}
.demo-legend-allocation{grid-area:2/2;min-width:0;font-size:calc(14px*var(--u,1));line-height:calc(19px*var(--u,1));color:var(--ck-ink-2);white-space:nowrap}
.demo-legend-generation{grid-area:1/3;font-size:calc(16px*var(--u,1));line-height:calc(22px*var(--u,1));font-weight:600;color:var(--ck-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.demo-legend-opponent{grid-area:2/3;font-size:calc(14px*var(--u,1));line-height:calc(19px*var(--u,1));color:var(--ck-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.demo-legend b{grid-area:1/4/3/5;justify-self:end;min-width:3.4ch;text-align:right;font:500 calc(21px*var(--u,1))/1 var(--font-display,'Oswald',sans-serif);font-variant-numeric:tabular-nums;color:var(--ck-ink);white-space:nowrap}
/* Marker key: each mark at the size and in the colours the chart draws it. */
.demo-marker-key{display:flex;gap:calc(22px*var(--u,1));flex-wrap:nowrap;align-items:center;font-size:calc(14px*var(--u,1));line-height:calc(20px*var(--u,1));color:var(--ck-ink-2);margin:calc(8px*var(--u,1)) 0 0;white-space:nowrap}
.demo-marker-key i{display:inline-block;box-sizing:border-box;width:calc(12px*var(--u,1));height:calc(12px*var(--u,1));margin-right:calc(8px*var(--u,1));vertical-align:calc(-1px*var(--u,1))}
.demo-key-deployment{background:var(--ck-gold);border:1px solid var(--ck-ink)}
.demo-key-deployment-dashed{background:var(--ck-ivory);border:calc(2.5px*var(--u,1)) solid var(--ck-ink);margin-left:calc(10px*var(--u,1))}
.demo-key-strike{background:#9a5249;transform:rotate(45deg) scale(.88);margin-left:calc(10px*var(--u,1))}
.demo-key-strike-dashed{background:var(--ck-ivory);border:calc(2.5px*var(--u,1)) solid #9a5249;transform:rotate(45deg) scale(.88);margin-left:calc(18px*var(--u,1))}
.demo-run-event.strike path{fill:var(--ck-ivory);stroke:#9a5249;stroke-width:2.5;stroke-linejoin:round}
.demo-run-event.deployment rect{fill:var(--ck-ivory);stroke:var(--ck-ink);stroke-width:2.5;stroke-linejoin:round}
.demo-hit-leader{fill:none;stroke:#9a5249;stroke-width:1.25}
/* Stat tiles. The model tile leads, across the top: generation and the generation of the opponent as a pair, then the lead in words.
   Compute and readiness step down to one compact row beneath it. Every row has a fixed height, so nothing shifts between weeks.
   The three values stay larger than body text and are held to the site's heading sizes: the generation at the section
   heading (26), compute and readiness at the panel heading (21). */
.demo-public-status{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);grid-template-rows:calc(54px*var(--u,1)) calc(44px*var(--u,1));gap:calc(5px*var(--u,1)) calc(16px*var(--u,1));margin:0 0 calc(10px*var(--u,1))}
.demo-public-status>div{min-width:0;display:grid;align-content:start}
.demo-public-status span{display:block;font-size:calc(14px*var(--u,1));line-height:calc(18px*var(--u,1));color:var(--ck-ink-2);white-space:nowrap}
.demo-public-status strong{display:block;font-family:var(--font-display,'Oswald',sans-serif);font-weight:500;font-variant-numeric:tabular-nums;color:var(--ck-ink);white-space:nowrap}
.demo-public-status small{display:block;min-width:0;font-size:calc(14px*var(--u,1));line-height:calc(18px*var(--u,1));color:var(--ck-ink-2)}
.demo-public-status small span{font-size:inherit;line-height:inherit;color:inherit;white-space:normal}
.demo-status-model{grid-area:1/1/2/3;grid-template-columns:auto minmax(0,1fr);grid-template-rows:calc(18px*var(--u,1)) calc(30px*var(--u,1));column-gap:calc(20px*var(--u,1));border-bottom:1px solid var(--ck-divider)}
.demo-status-model>span{grid-area:1/1}
.demo-status-model>strong{grid-area:2/1;display:flex;align-items:baseline;gap:calc(14px*var(--u,1));font-size:calc(26px*var(--u,1));line-height:calc(30px*var(--u,1))}
.demo-public-status strong .demo-opponent-model{font:600 calc(16px*var(--u,1))/1 var(--font-body,'Source Sans 3',sans-serif);font-style:normal;color:var(--ck-ink);white-space:nowrap}
.demo-status-model>small{grid-area:1/2/3/3;align-self:end;display:flex;flex-direction:column;justify-content:flex-start;height:calc(43px*var(--u,1));padding-left:calc(20px*var(--u,1));border-left:1px solid var(--ck-divider)}
.demo-public-status small [data-status-note="lead"]{font-size:calc(18px*var(--u,1));line-height:calc(24px*var(--u,1));font-weight:600;color:var(--ck-ink)}
.demo-public-status small [data-status-note="lead"] b{font-weight:700}
.demo-public-status small [data-status-note="completion"]{font-size:calc(14px*var(--u,1));line-height:calc(19px*var(--u,1));color:var(--ck-ink)}
.demo-status-compute,.demo-status-readiness{grid-template-columns:auto minmax(0,1fr);grid-template-rows:calc(18px*var(--u,1)) calc(26px*var(--u,1));column-gap:calc(10px*var(--u,1));align-items:baseline}
.demo-status-compute{grid-area:2/1}
.demo-status-readiness{grid-area:2/2;padding-left:calc(14px*var(--u,1));border-left:1px solid var(--ck-divider)}
.demo-status-compute>span,.demo-status-readiness>span{grid-area:1/1/2/3}
.demo-status-compute>strong,.demo-status-readiness>strong{grid-area:2/1;font-size:calc(21px*var(--u,1));line-height:calc(26px*var(--u,1))}
.demo-status-compute>small,.demo-status-readiness>small{grid-area:2/2}
/* The battlefield uses LIVE's stage clamp. The page may scroll past the mode and matchup rows; the demonstration
   block itself fits the visible display at the checked sizes. This is a stage height, not a type scale. */
.game-page.demo-play #demo-board{--board-stage-height:clamp(calc(366px*var(--u,1)),calc(100vh - 534px),calc(418px*var(--u,1)));margin:0;border:0;background:var(--ck-mineral)}
.game-page.demo-play #demo-board .tabletop-board-stage{height:var(--board-stage-height);min-height:0}
.game-page.demo-play #demo-board .tabletop-board-caption,.game-page.demo-play #demo-board .formation-condition{display:none}
/* The two labels on the stage, sized from here. Each selector names the panel as well, one class more than the rule
   of board.css it has to beat (.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-eyebrow, which
   sets 14 px, and the same with .tabletop-board-stage-note, which sets 15 px at a weight the site does not ship). */
.game-page.demo-play .demo-board-panel #demo-board.tabletop-presentation .tabletop-board-eyebrow{font-size:calc(13px*var(--u,1))}
.game-page.demo-play .demo-board-panel #demo-board.tabletop-presentation .tabletop-board-stage-note{font-size:calc(14px*var(--u,1));font-weight:400}
/* The band. Heights are reserved for the longest caption (three lines, week 0) and the longest prompt (two lines),
   so the page bottom is the same in every week; the row of the band is that fixed height, so no line of text can
   set it. Caption and prompt are both at the site's body size, 18 px, on a 24 px line (the site's body line is 26.1;
   the 6.3 px the band gives up went to the battlefield stage); the prompt is set apart by its weight and its bar, and
   is the only barred text on the page. Its bar is brass: inside the panels and the band gold
   means one thing, a new generation entering service, and brass stands out from the page on its own (more than
   3 to 1). The slot is held and left blank when there is no prompt. */
.demo-caption{grid-column:1;margin:0;padding:0 calc(19px*var(--u,1));min-height:calc(72px*var(--u,1));font-size:calc(18px*var(--u,1));line-height:calc(24px*var(--u,1));color:var(--ck-ink)}
.demo-discussion{grid-column:2;box-sizing:border-box;min-height:calc(72px*var(--u,1));display:flex;flex-direction:column;justify-content:center;gap:calc(4px*var(--u,1));padding:calc(7px*var(--u,1)) calc(16px*var(--u,1)) calc(7px*var(--u,1)) calc(15px*var(--u,1));border:1px solid var(--ck-divider);border-left:calc(5px*var(--u,1)) solid var(--ck-brass);border-radius:3px;background:var(--ck-ivory)}
.demo-discussion:empty{border-color:transparent;background:transparent}
.demo-discussion p{margin:0;font-size:calc(18px*var(--u,1));line-height:calc(24px*var(--u,1));font-weight:600;color:var(--ck-ink)}
/* The foot keeps its columns: method and save note on the left, honesty text on the right. Each line wraps inside
   its own column when needed. The fixed math button and the hidden/open panel are separate grid items, so opening
   arithmetic never moves the control or overlays the variable-height foot. */
.demo-method,.demo-save-note,.demo-held{grid-column:1;position:relative;z-index:1;margin:0;font-size:calc(14px*var(--u,1));line-height:calc(19px*var(--u,1));color:var(--ck-ink-2);white-space:normal}
.demo-method{grid-row:4}
.demo-save-note{grid-row:5}
.demo-held{grid-row:6;white-space:normal}
.demo-held:empty{display:none}
.demo-bottom{display:contents}
.demo-notes{grid-column:2;grid-row:4/span 3;position:relative;z-index:1;min-height:calc(60px*var(--u,1));margin:0;font-size:calc(14px*var(--u,1));line-height:calc(20px*var(--u,1));font-weight:600;color:var(--ck-ink)}
/* No float narrows the honesty line now that the math control lives in the toolbar. */
.demo-notes::before{content:"";display:none}
.demo-disclosure{font-weight:400;color:var(--ck-ink)}
.demo-math{display:contents}
.game-page .demo-math-toggle{grid-column:2;grid-row:1;max-width:100%;justify-self:end;display:flex;align-items:center;justify-content:center;min-width:calc(150px*var(--u,1));position:relative;z-index:2}
.demo-math-panel{grid-column:1/-1;grid-row:7;min-width:0}
.demo-math-panel[hidden]{display:none}
#demo-math-content{padding:calc(20px*var(--u,1)) calc(24px*var(--u,1));margin-top:calc(28px*var(--u,1));border:1px solid var(--ck-divider);background:var(--ck-ivory);font-size:calc(14px*var(--u,1))}
#demo-math-content p{font-size:calc(14px*var(--u,1));line-height:1.5}
.demo-math-runs{display:grid;grid-template-columns:1fr;gap:calc(32px*var(--u,1))}
.demo-math-runs>section+section{border-top:2px solid var(--ck-brass);padding-top:calc(24px*var(--u,1))}
.demo-recorded-arithmetic{margin-top:calc(22px*var(--u,1))}
.game-page .demo-recorded-arithmetic pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:calc(14px*var(--u,1))}
.demo-math table{border-collapse:collapse;width:100%;font-size:calc(14px*var(--u,1))}
.demo-math caption{text-align:left;font-weight:600;margin-bottom:calc(8px*var(--u,1))}
.demo-math th,.demo-math td{padding:calc(5px*var(--u,1)) calc(8px*var(--u,1));border-bottom:1px solid var(--ck-divider);font-size:calc(14px*var(--u,1));text-align:left;background:transparent}
/* The site sheet gives every th light header text in the display face, upper case; on this ivory panel that would not be readable. */
.demo-math th{font-family:var(--font-body,'Source Sans 3',sans-serif);font-weight:400;letter-spacing:normal;text-transform:none;color:var(--ck-ink)}
.demo-math td{text-align:right;font-variant-numeric:tabular-nums;color:var(--ck-ink)}
.demo-math tr:nth-child(even) td{background:transparent}
.demo-config-table{max-width:calc(680px*var(--u,1))}
.demo-miss{grid-column:1/-1;grid-row:2;border-left:3px solid #9a5249;padding:calc(8px*var(--u,1)) calc(12px*var(--u,1));background:var(--ck-ivory);font-size:calc(16px*var(--u,1))}
.demo-board-unavailable{padding:calc(40px*var(--u,1)) calc(24px*var(--u,1));font-size:calc(16px*var(--u,1))}
#demo-board .model-deployment{top:38px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:12px 18px;background:#122e3bf2;border:2px solid #cae8ed;border-bottom:4px solid #d5b65d;color:#fff9df;font-size:16px;line-height:1.35;text-align:center}
#demo-board .model-deployment strong{display:block;font:600 25px/1.2 var(--font-display,'Oswald',sans-serif);margin-bottom:5px}
/* Motion between weeks. The line ends, their labels and the wash between the lines are moved by demo-motion.mjs, frame by
   frame with the battlefield (attributes inside the chart box, so nothing on the page shifts). What is styled here is the
   rest: one wash behind a tile value that changed, the old caption leaving and the new one arriving, the prompt arriving
   last, and the flag of a new generation at the press (the marks a week adds on the plot arrive with the line, by attribute,
   and leave no class behind). Only opacity and transform are animated. Every transition and animation sits inside the
   one query below, so with reduced motion asked for there is none, and the script then skips the moves as well. */
.demo-public-status .demo-washed{position:relative;isolation:isolate}
.demo-public-status .demo-washed::before{content:"";position:absolute;inset:0 calc(-6px*var(--u,1));z-index:-1;border-radius:3px;background:var(--ck-selected);opacity:0;pointer-events:none}
.demo-public-status .demo-pending{opacity:0}
/* A value of the week before that is still on screen while the move of the new week is watched (a share in the legend,
   readiness, the caption) is dimmed until the move lands. No layout change; with reduced motion nothing is held. */
.demo-shell .demo-holding{opacity:.55}
@keyframes demo-wash{0%,30%{opacity:1}100%{opacity:0}}
@keyframes demo-arrive{0%{opacity:0;transform:translateY(calc(6px*var(--u,1)))}100%{opacity:1;transform:none}}
@keyframes demo-appear{0%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:no-preference){.game-page .demo-controls button,.game-page .demo-math-toggle{transition:background-color .12s ease,border-color .12s ease,color .12s ease,opacity .12s ease,box-shadow .12s ease,transform .12s ease}
.demo-public-status .demo-washed::before{animation:demo-wash .7s ease-out both}
.demo-public-status [data-status-note="completion"]{transition:opacity .2s ease-out}
.demo-public-status .demo-pending{transition:none}
.demo-caption{transition:opacity .18s ease-out}
.demo-caption.demo-leaving{opacity:0;transition:opacity .12s ease-in}
.demo-discussion.demo-leaving{opacity:0;transition:opacity .12s ease-in}
.demo-discussion.demo-arriving{animation:demo-arrive .25s ease-out .15s both}
.demo-chart .demo-entering{animation:demo-appear .3s ease-out both}}

/* The readiness note needs 547.474074 px of panel content to stay on one line (SELF-DERIVED). Below that actual
   inline size, move the existing 10 px tile margin into its second row: 54 + 54 + 5 + 0 is still 113 px.
   This uses the panel width, not a viewport estimate that could vary with the scrollbar. */
@container demo-battlefield (width < 547.475px){
.demo-public-status{grid-template-rows:calc(54px*var(--u,1)) calc(54px*var(--u,1));margin-bottom:0}
.demo-status-compute,.demo-status-readiness{grid-template-rows:calc(18px*var(--u,1)) calc(36px*var(--u,1))}
.demo-status-compute>small,.demo-status-readiness>small{align-self:start}
}

/* At widths below 1280 px the same controls sit between the full-width panels. The heading stays above them.
   The math button retains that row when its full-width arithmetic panel opens below the foot.
   Explicit rows replace the two wrappers' layout. Their 10 px toolbar margin, 8 px band gap and 8 px bottom
   margin are restored on the items and spacer row. Method and save each need at most two 19 px lines, so their
   rows reserve 38 px each. The arithmetic panel has its own final row and cannot enlarge the foot's tracks.
   LIVE's tiles take 113 px and its chart legend/key 124 px, so the stacked chart slot is stage minus 11 px.
   The band may grow to keep narrow captions readable, as D-363 established. */
@media (width < 1280px){
.demo-shell{--board-stage-height:clamp(calc(366px*var(--u,1)),calc(100vh - 534px),calc(418px*var(--u,1)));grid-template-rows:auto auto auto auto auto minmax(calc(72px*var(--u,1)),auto) calc(8px*var(--u,1)) calc(38px*var(--u,1)) calc(38px*var(--u,1)) auto auto}
.demo-toolbar,.demo-comparison{display:contents}
.demo-toolbar-lead{grid-column:1/-1;grid-row:1;min-height:calc(44px*var(--u,1));margin-bottom:calc(10px*var(--u,1))}
.demo-miss{grid-column:1/-1;grid-row:2}
.demo-board-panel{grid-column:1/-1;grid-row:3;margin-bottom:calc(8px*var(--u,1))}
.demo-controls{grid-column:1/-1;grid-row:4;min-height:calc(44px*var(--u,1));margin-bottom:calc(10px*var(--u,1));padding-right:calc(166px*var(--u,1))}
.game-page .demo-math-toggle{grid-column:2;grid-row:4;margin-bottom:calc(10px*var(--u,1))}
.demo-chart-panel{grid-column:1/-1;grid-row:5;margin-bottom:calc(8px*var(--u,1))}
#demo-chart-slot{flex:none;height:calc(var(--board-stage-height) - 11px)}
.demo-caption{grid-column:1;grid-row:6;align-self:stretch}
.demo-discussion{grid-column:2;grid-row:6;align-self:stretch}
.demo-method{grid-column:1;grid-row:8;white-space:normal}
.demo-save-note{grid-column:1;grid-row:9;white-space:normal}
.demo-held{grid-column:1;grid-row:10}
.demo-notes{grid-column:2;grid-row:8/span 3}
.demo-math-panel{grid-column:1/-1;grid-row:11}
}
