/* How to play (journal 011; specs/shell.md, Lessons), as design/_shared/base.css draws it in the mockups `design/how_to_play_*.html`: a lesson reads top to bottom, its place, its title, its text, the board, the table's strip, the goal, and Again and Next in the footer. Structure only: every colour, font and radius is a token. The board is drawn on the stage over its slot; the toast stands above the stage. */

.lesson { display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 8px; }
.lesson__place { color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.06em; }
.lesson__title { margin: 0; font-size: var(--font-size-l); font-weight: var(--font-weight-bold); }
.lesson__text { margin: 0; color: var(--color-text); line-height: 1.45; }

/* The board, at the mockup's width, centred; its aspect the board's, set on the slot */
.lesson__board { position: relative; align-self: center; width: var(--size-lesson-board); max-width: 100%; flex: none; }
.lesson__slot { position: relative; display: block; width: 100%; }
.lesson__toast { position: absolute; left: -40px; right: -40px; bottom: 6px; z-index: 2; pointer-events: none; }

/* The table's strip, flush with the column (Q2) */
.lesson__strip .strip { margin: 0; }

/* The goal (Q6, Q7): reached, “Goal reached” above it and the box outlined in the accent; ended, “Not this time” under it */
.lesson__goal { padding: 10px 14px; clip-path: var(--shape-cut); background: var(--color-surface); }
.lesson__goal--reached { box-shadow: inset 0 0 0 2px var(--color-accent); }
.lesson__goal-text { margin: 0; font-weight: var(--font-weight-semibold); }
.lesson__goal-state { display: block; margin-bottom: 4px; color: var(--color-accent); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.06em; }
.lesson__goal-ended { margin: 6px 0 0; color: var(--color-text-muted); font-size: var(--font-size-s); }

/* Again and Next side by side; Next's chevron after its label */
.lesson__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lesson__actions .button__icon--after { margin: 0 0 0 6px; }

/* The home's loop (journal 011, Q43): the board centred in the space, at most --size-home-loop wide, its size set by js/lessons/loop.js from the space's height; left out below --size-home-loop-min */
.home-loop { display: flex; align-items: center; justify-content: center; }
.home-loop[hidden] { display: none; }
.home-loop__board { position: relative; display: block; flex: none; }
