/* Presentation only. No existing page selectors or game mechanics are changed. */
.tabletop-board{position:relative;min-width:0;isolation:isolate;border:1px solid var(--ck-divider,#d4d7cc);border-radius:6px;overflow:hidden;background:#eff0e8;color:var(--ck-ink,#292e29)}
.tabletop-board-stage{position:relative;height:var(--board-stage-height,clamp(270px,31vw,410px));overflow:hidden;background:radial-gradient(ellipse at 50% 32%,#fafbf5 0%,#eceee5 72%,#e0e4d9 100%)}
.tabletop-board-stage>canvas,.tabletop-board-stage>.tabletop-flat{position:absolute;inset:0 0 24px;display:block;width:100%;height:calc(100% - 24px)}
.tabletop-board-stage>canvas[hidden],.tabletop-board-stage>.tabletop-flat[hidden]{display:none}
.tabletop-flat svg{display:block;width:100%;height:100%;max-width:none}
.tabletop-presentation .tabletop-board-eyebrow{font-size:14px;color:#f5f2dc;background:#203630e8;padding:6px 10px;border-left:3px solid #d6b75e}
.tabletop-presentation .tabletop-board-stage-note{font-size:13px;color:#2a392d}
.tabletop-presentation .model-deployment{position:absolute;left:50%;top:38px;transform:translateX(-50%);width:max-content;max-width:90%;padding:12px 20px;background:#122e3bf2;border:2px solid #cae8ed;border-bottom:4px solid #d5b65d;color:#fff9df;box-shadow:0 6px 28px #13221d66;font-size:17px;line-height:1.35;text-align:center;z-index:5}
.tabletop-presentation .model-deployment strong{display:block;font:600 25px/1.2 var(--font-display,'Oswald',sans-serif);margin-bottom:5px}
.tabletop-presentation .model-deployment[hidden]{display:none}
/* Presentation stage (the demonstration's board). The canvas fills the stage inside the panels' own frame;
   the eyebrow and the key strip sit on it as two quiet ivory labels, sized by the page's --u. board.mjs
   measures both so the fixed view keeps the field and the pads clear of them. The key's marks are added
   graphics (empty, aria-hidden spans) drawn to match the battlefield's own: side disc and diamond, amber
   warning, dark disc with a pale cross (presentation-profile.mjs SIDE_SIGNAL, STATE_SIGNAL). The band of haze
   across the top (::after) carries the scene's own distance haze up to the frame, so the slope above the field
   dissolves instead of ending in cut trees; it stops above the far rank and takes no pointer events. */
.tabletop-presentation .tabletop-board-stage>canvas{inset:0;height:100%}
/* Flat fallback (flat view chosen, three.js failed to load, without WebGL2, on context loss): the drawing keeps a foot
   clear for the key strip, and the strip shows its words only, because the flat drawing does not use the 3D board's
   marks. It is no longer shown while three.js is on its way: see the waiting stage below. */
.tabletop-presentation .tabletop-board-stage>.tabletop-flat{inset:0 0 calc(45px*var(--u,1));height:auto}
/* Waiting stage (site-fit fix C: first load of the demonstration's board). While the 3D scene is on its way board.mjs
   marks the host aria-busy and shows neither drawing. The stage keeps its frame, its size and its own field colour
   (the same ground the scene's canvas is drawn over), with the eyebrow in place; nothing in it moves and it adds no
   words. The key strip is held back until there is something for it to explain: by opacity only, so it keeps its
   place, the size board.mjs measures and its words for assistive technology. Where no reduced motion is asked for,
   the strip and the scene arrive in one short fade; the rule at the foot of this sheet removes it otherwise. */
.tabletop-presentation[aria-busy=true] .tabletop-board-stage-note{opacity:0}
@media(prefers-reduced-motion:no-preference){.tabletop-presentation .tabletop-board-stage-note{transition:opacity .2s ease-out}.tabletop-presentation .tabletop-board-stage>canvas{animation:stage-arrive .2s ease-out}}
@keyframes stage-arrive{from{opacity:0}to{opacity:1}}
.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-stage:not(:has(>canvas:not([hidden]))) .stage-key-mark{display:none}
.game-page.demo-play #demo-board.tabletop-presentation{border-radius:3px}
.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-stage{box-sizing:border-box;border:1px solid var(--ck-divider,#d4d7cc);border-radius:3px}
.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-stage:has(>canvas:not([hidden]))::after{content:"";position:absolute;inset:0 0 auto;height:13%;z-index:1;pointer-events:none;background:linear-gradient(to bottom,#c3cfc899 0,#c3cfc861 34%,#c3cfc826 68%,#c3cfc800 100%)}
.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-eyebrow{top:calc(8px*var(--u,1));left:calc(8px*var(--u,1));padding:calc(3px*var(--u,1)) calc(8px*var(--u,1));border:0;border-radius:3px;background:#f6f7efd9;color:#4a5348;text-shadow:none;font:500 calc(14px*var(--u,1))/1.3 var(--font-display,'Oswald',sans-serif);letter-spacing:.07em}
.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-stage-note{left:50%;right:auto;bottom:calc(8px*var(--u,1));transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);box-sizing:border-box;padding:calc(4px*var(--u,1)) calc(14px*var(--u,1));border-radius:3px;background:#f6f7efeb;color:#292e29;text-shadow:none;font:500 calc(15px*var(--u,1))/1.4 var(--font-body,'Source Sans 3',sans-serif);white-space:nowrap;z-index:2}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-gap{color:#60685d}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-mark{display:inline-block;position:relative;box-sizing:border-box;width:.82em;height:.82em;margin-right:.32em;vertical-align:-.07em}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-mark::before,.game-page.demo-play #demo-board.tabletop-presentation .stage-key-mark::after{position:absolute}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-blue{border:.1em solid #10161a;border-radius:50%;background:#62beff;margin-right:.22em}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-red{border:.1em solid #2c0906;background:#ee3f33;transform:rotate(45deg) scale(.86);margin-right:.46em}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-impaired{width:1.16em;height:1.16em;vertical-align:-.22em;margin-right:.28em}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-impaired::before{content:"";inset:.18em;background:#ffb730;outline:.08em solid #141a16;transform:rotate(45deg)}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-disabled{width:1.84em;height:.9em;vertical-align:-.1em;margin-right:.3em}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-disabled::before{content:"";left:0;top:.04em;width:.82em;height:.82em;border-radius:50%;background:#363d36}
.game-page.demo-play #demo-board.tabletop-presentation .stage-key-disabled::after{content:"";right:.1em;top:.1em;width:.7em;height:.7em;background:#363d36;transform:rotate(45deg)}
@media(max-width:700px){.game-page.demo-play #demo-board.tabletop-presentation .tabletop-board-stage-note{white-space:normal;text-align:center}}
/* Deployment banner (approved words, role=status). Docked at the top left, on Blue's half of the stage, for its
   1.6 s: it stands in the eyebrow's place (it is opaque and at least as wide as the eyebrow, whose right edge
   board.mjs reports as --stage-eyebrow-right, so the eyebrow is covered whole and returns when the banner leaves),
   clear of Red's standard and of the wave from facility to force. One line each for title and detail.
   Gold marks a new generation and nothing else. The detail line never falls under 14px x --u. */
.game-page.demo-play #demo-board.tabletop-presentation .model-deployment{left:calc(8px*var(--u,1));right:auto;top:calc(8px*var(--u,1));transform:none;box-sizing:border-box;width:max-content;min-width:calc(var(--stage-eyebrow-right,0px) - 8px*var(--u,1));max-width:calc(100% - 16px*var(--u,1));padding:calc(4px*var(--u,1)) calc(12px*var(--u,1)) calc(6px*var(--u,1));background:#122e3b;border:0;border-left:calc(4px*var(--u,1)) solid #d6b753;border-radius:3px;box-shadow:0 2px 10px #13221d59;color:#f4f1e2;font:400 calc(14px*var(--u,1))/1.3 var(--font-body,'Source Sans 3',sans-serif);text-align:left;z-index:5}
.game-page.demo-play #demo-board.tabletop-presentation .model-deployment strong{display:block;margin:0 0 calc(1px*var(--u,1));color:#fff9df;font:600 calc(20px*var(--u,1))/1.2 var(--font-display,'Oswald',sans-serif);letter-spacing:.02em}
.game-page.demo-play #demo-board.tabletop-presentation .model-deployment span{display:block;margin:0;color:#f4f1e2;font-size:calc(14px*var(--u,1));line-height:1.3}
.game-page.demo-play #demo-board.tabletop-presentation .model-deployment[hidden]{display:none}
.formation-condition{display:grid;grid-template-columns:1fr 1fr;background:#222b28;color:#f2f1e6;border-top:1px solid #718077;font:13px/1.4 var(--font-body,'Source Sans 3',sans-serif)}
.formation-condition-side{display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px;min-width:0;padding:6px 10px}
.formation-condition-side+.formation-condition-side{border-left:1px solid #718077}
.formation-condition-side strong{font-weight:700;white-space:nowrap}
.formation-condition-side.blue strong{color:#b4e0f0}.formation-condition-side.red strong{color:#f4bcb1}
.formation-condition-side>span{white-space:nowrap;font-variant-numeric:tabular-nums}.formation-condition-side small{font-size:inherit;color:#b8c5bd}
.formation-impaired{color:#f8d485}.formation-disabled{color:#ffd1ac;font-weight:700}
@media(max-width:650px){.formation-condition-side{gap:2px 7px;padding:6px 8px}.formation-condition-side strong{flex-basis:100%}}
.tabletop-board-eyebrow{position:absolute;top:12px;left:16px;z-index:2;font:500 10px/1.3 var(--font-display,'Oswald',sans-serif);letter-spacing:1.5px;text-transform:uppercase;color:#68705f;pointer-events:none}
.tabletop-board-stage-note{position:absolute;bottom:8px;left:12px;right:12px;margin:0;text-align:center;font:11px/1.35 var(--font-body,'Source Sans 3',sans-serif);color:#626b5c;pointer-events:none}
.tabletop-board-caption{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid #ccd2c4;background:rgba(252,252,248,.95)}
.tabletop-public-side{min-width:0;padding:10px 14px 11px;border-top:3px solid var(--board-side);font:12px/1.35 var(--font-body,'Source Sans 3',sans-serif)}
.tabletop-public-side+.tabletop-public-side{border-left:1px solid #d4d7cc}
.tabletop-public-side[data-side=blue]{--board-side:#285b7c}
.tabletop-public-side[data-side=red]{--board-side:#963f42}
.tabletop-public-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px}
.tabletop-public-head strong{font:600 15px/1.2 var(--font-display,'Oswald',sans-serif);letter-spacing:.6px;color:var(--board-side)}
.tabletop-public-head span{font-size:11px;font-weight:600;color:#414c40;white-space:nowrap}
.tabletop-public-values{display:flex;flex-wrap:wrap;gap:3px 12px;font-variant-numeric:tabular-nums;color:#465041}
.tabletop-public-values b{font-weight:650;color:#292e29}
.tabletop-public-research{display:flex;gap:7px;align-items:center;margin-top:5px;color:#596151;font-size:11px;font-variant-numeric:tabular-nums}
.tabletop-public-research progress{width:52px;min-width:30px;height:4px;border:0;border-radius:0;accent-color:var(--board-side);background:#dce0d5}
.tabletop-public-research progress::-webkit-progress-bar{background:#dce0d5}
.tabletop-public-research progress::-webkit-progress-value{background:var(--board-side)}
.tabletop-public-research progress::-moz-progress-bar{background:var(--board-side)}
@media(max-width:620px){.tabletop-board-stage{height:var(--board-stage-height,275px)}.tabletop-board-eyebrow{top:9px;left:11px;font-size:9px;letter-spacing:1px}.tabletop-board-stage-note{font-size:10px;bottom:7px}.tabletop-public-side{padding:8px 9px 9px;font-size:11px}.tabletop-public-head{gap:5px}.tabletop-public-head strong{font-size:14px}.tabletop-public-head span{font-size:10px}.tabletop-public-values{gap:3px 8px}.tabletop-public-research{font-size:10px;gap:5px;flex-wrap:wrap}.tabletop-public-research progress{width:40px}}
@media(prefers-reduced-motion:reduce){.tabletop-board *{animation:none!important;transition:none!important}}
