/* Ascend lesson visuals stylesheet. Tokens are scoped to .viz-host so nothing leaks into the game UI.
 * .viz-host            paper theme (light), as in the lesson preview
 * .viz-host.viz-battle dark theme for the battle modal
 * Set --f-pupil to the game's pupil font. The preview uses Andika (SIL Open Font Licence, free to bundle).
 */
.viz-host {
  --paper: #f5f7fb;--sheet: #ffffff;--ink: #1b2540;--muted: #5b6680;--rule: #dce2ec;--grid: #e6ecf6;--accent: #e9a10f;--accent-soft: #fdebc0;--accent-ink: #8a5a00;--teal: #0e8587;--teal-soft: #cfeceb;--rose: #c3405a;--rose-soft: #f9dfe5;--ok: #2f8f5b;--ok-soft: #d8f0e2;--pO: #df9b10;--pT: #2f9e66;--pH: #3b6fd8;--pTh: #8a55c9;--pd1: #d24d7e;--pd2: #13a0a3;--pd3: #6f7686;--copper: #c9875a;--silver: #c7ccd6;--gold: #e2bd4f;--f-pupil: "Andika", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
.viz-host.viz-battle {
  --sheet: #19202d; --ink: #e9edf6; --muted: #a3adc3; --rule: #2c3547; --grid: #1f2736;
  --accent: #f4b73e; --accent-soft: #4a3810; --accent-ink: #ffd27a;
  --teal: #45c6c8; --teal-soft: #143d41; --rose: #f2808f; --rose-soft: #4a1f2a; --ok: #5fcf8e; --ok-soft: #173b28;
  --pO: #f2b43c; --pT: #52c48a; --pH: #7aa2ff; --pTh: #b88cf0; --pd1: #f080a8; --pd2: #4fd0d3; --pd3: #a5acbb;
  --copper: #b77a50; --silver: #8e95a3; --gold: #c9a53a;
}
.viz-host svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.viz text { font-family: var(--f-pupil); fill: var(--ink); }
.viz .m { fill: var(--muted); }
.viz .acc { fill: var(--accent-ink); }
.viz .stroke { stroke: var(--ink); fill: none; }
.viz .rule { stroke: var(--rule); }
.viz .cell { fill: var(--sheet); stroke: var(--rule); }
.viz .hl { fill: var(--accent-soft); }
.viz .shade { fill: var(--teal-soft); stroke: var(--ink); }
.viz .plain { fill: var(--sheet); stroke: var(--ink); }
.viz .dot { fill: var(--ink); }
.viz .dot-a { fill: var(--accent); }
.viz .dot-t { fill: var(--teal); }
.viz .faded { opacity: 0.18; }
.viz .jump { stroke: var(--teal); fill: none; stroke-width: 2; }
.viz .jt { fill: var(--teal); font-weight: 700; }
.viz .pt { fill: var(--accent); stroke: var(--sheet); stroke-width: 2; }
.viz .ptl { fill: var(--accent-ink); font-weight: 700; }
.viz .po { fill: var(--pO); } .viz .ptn { fill: var(--pT); } .viz .ph { fill: var(--pH); } .viz .pth { fill: var(--pTh); }
.viz .pd1 { fill: var(--pd1); } .viz .pd2 { fill: var(--pd2); } .viz .pd3 { fill: var(--pd3); } .viz .pn { fill: var(--muted); }
.viz .flat { fill: var(--pH); opacity: 0.85; } .viz .rod { fill: var(--pT); } .viz .one { fill: var(--pO); } .viz .cube { fill: var(--pTh); }
.viz .blk { stroke: var(--sheet); stroke-width: 1; }
.viz .copper { fill: var(--copper); } .viz .silver { fill: var(--silver); } .viz .gold { fill: var(--gold); } .viz .note { fill: var(--teal-soft); stroke: var(--teal); }
.viz .merc { fill: var(--rose); }
.viz .ring { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.viz .cross { stroke: var(--rose); stroke-width: 2; }
.viz .red { fill: var(--rose); font-weight: 700; }
