/* ---------- The 30-second tutorial (section 25c) ----------
   The card: at the top, under the bar, a floating bubble (--glass) in the welcome's words (the book serif for what it
   says, the instrument's label for where it is). On the screen: the flat mouse of the empty screen (canvas.css, .ed-m),
   its held button in the colour of what it draws (what it draws is a real drag's own preview, preview.css; what it
   carries into a Column, a real carry, in the Column's; the AI link it draws, in XYZ purple, saying each thing it does
   as it does it; V, a key). On the
   canvas, in #aig (the camera's): where each thing goes, dashed once the mouse lets go, until the reader makes one.
   The empty screen's own way in is away while it runs; an empty board's (This board is empty, Choose a template) stays,
   for the template's step. */
body.tut-on #empty :is(.e-root, .e-ai) { visibility: hidden; }
#tutc {
  position: fixed; left: 0; right: 0; z-index: 11; width: min(420px, calc(100% - 32px)); margin-inline: auto; box-sizing: border-box;
  padding: 14px 16px 14px; border-radius: 14px; background: var(--glass); box-shadow: var(--glass-sh);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink);
  animation: tut-in 260ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tut-in { from { opacity: 0; translate: 0 -6px; } }
#tutc header { display: flex; align-items: center; gap: 10px; height: 20px; }
#tutc .tc-n, #tutc .tc-l { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-q); font-variant-numeric: tabular-nums; }
#tutc .tc-l { color: var(--z); }
#tutc :is(.tc-n, .tc-l):empty { display: none; }
#tutc .tc-dots { display: flex; gap: 4px; }
#tutc .tc-dots i { width: 14px; height: 3px; border-radius: 2px; background: var(--rule-2); transition: background-color 200ms ease-out; }
#tutc .tc-dots i.on { background: var(--z); }
#tutc[data-step="end"] .tc-dots i { background: var(--z); }
#tutc .tc-again { margin-left: auto; }
#tutc h3 { margin: 8px 0 0; font: 400 21px/1.2 var(--f-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
#tutc .tc-s { margin: 6px 0 0; font: 400 15px/1.45 var(--f-display); color: var(--ink-2); text-wrap: pretty; }
/* the AI's mark in what it says, as the selection's chip has it (ai-chip.css), small */
#tutc .tc-mk {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; vertical-align: -4px; border-radius: 50%;
  color: var(--ink-2); background: var(--canvas); box-shadow: var(--raise-sm), var(--edge);
}
#tutc .tc-mk svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4px; stroke-linecap: round; stroke-linejoin: round; }
#tutc .tc-ks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#tutc .tc-ks:empty { display: none; }
#tutc .tc-k {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 6px;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent);
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
#tutc .tc-k i { width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--tc); }
#tutc .tc-k.ok { background: var(--tc); color: var(--on-tc); }
#tutc .tc-k.ok i { border: 0; background: no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#tutc .tc-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
#tutc .tc-row:empty { display: none; }
#tutc button {
  height: 28px; padding: 0 11px; border: 0; border-radius: 8px; cursor: pointer; font: 500 12px/1 var(--f-ui);
  color: var(--ink-2); background: transparent; transition: color 140ms ease-out, background-color 140ms ease-out;
}
#tutc button:hover { color: var(--ink); background: var(--press-bg); }
#tutc button:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; }
#tutc :is(.tc-x, .tc-again) { height: 22px; padding: 0 8px; font-size: 11.5px; color: var(--ink-3); }
#tutc :is(.tc-x, .tc-again)[hidden] { display: none; }
#tutc .tc-seg { display: inline-flex; padding: 2px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--rule-2); }
#tutc .tc-seg button { height: 24px; border-radius: 7px; }
#tutc .tc-seg button[aria-pressed="true"] { color: var(--ink); background: var(--canvas); box-shadow: var(--raise-sm), var(--edge); }
#tutc .tc-go { margin-left: auto; height: 32px; padding: 0 16px; font-weight: 600; color: var(--on-tc); background: var(--z);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -8px color-mix(in srgb, var(--z) 85%, transparent); }
#tutc .tc-go:hover { color: var(--on-tc); background: color-mix(in srgb, var(--z) 90%, var(--on-tc)); }
#tutc .tc-go:focus-visible { outline-color: var(--z); }
#tutc .tc-q + .tc-go { margin-left: auto; }

/* on the canvas */
.tut-w { position: absolute; left: 0; top: 0; pointer-events: none; }
.tut-w > * { position: absolute; }
.tut-r {
  box-sizing: border-box; border-radius: 2px; visibility: hidden;
  border: 1.5px dashed var(--tc); background: color-mix(in srgb, var(--tc) 5%, transparent);
}
.tut-r.goal { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .tut-r.goal { animation: tut-goal 160ms ease-out both; } }
@keyframes tut-goal { from { opacity: 0; } }
.tut-c {
  position: absolute; left: 6px; top: 6px; height: 21px; padding: 5px 7px; box-sizing: border-box; border-radius: 2px; white-space: nowrap;
  font: 500 10.5px/11px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--tc);
}
/* a Board's: what it lands as, its icon (ICON_W x ICON_H): the tile (TILE, TILE_R, TILE_Y down it, as
   .obj.board[data-view="icon"]), its name under it */
.tut-r.ic { border: 0; background: none; }
.tut-r.ic::before {
  content: ""; position: absolute; left: 18px; top: 5px; width: 88px; height: 88px; box-sizing: border-box; border-radius: 15px;
  border: 1.5px dashed var(--tc); background: color-mix(in srgb, var(--tc) 5%, transparent);
}
.tut-r.ic .tut-c { left: 50%; top: 100px; translate: -50% 0; }
/* the mouse: on the screen over the drag's label (#hud, z 20), as the hand's own pointer is; about a pointer's size,
   clear of the 14px a mouse's label leaves beside it (preview.js, placeLabel) */
.tut-m { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 21; pointer-events: none; opacity: 0; transition: opacity 220ms ease-out; }
.tut-m.on { opacity: 1; }
.tut-m > svg { position: absolute; left: 1px; top: 2px; width: 12px; height: 17px; overflow: visible; }
.tut-m .tm-l, .tut-m .tm-r { fill: var(--tc, var(--z)); opacity: 0; transition: opacity 90ms ease-out; }
.tut-m.down[data-b="l"] .tm-l, .tut-m.down[data-b="r"] .tm-r { opacity: 1; }
.tut-s { position: absolute; right: 4px; top: 4px; font: 500 10px/15px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.tut-s[hidden] { display: none; }
/* V (the side view's step): a key, its middle where the mouse would be, pressed as a key is */
.tut-v { display: none; position: absolute; left: 0; top: 0; translate: -50% -50%; }
.tut-m[data-b="k"] > :is(svg, .tut-s) { display: none; }
.tut-m[data-b="k"] .tut-v { display: block; }
.tut-v kbd {
  display: grid; place-items: center; width: 48px; height: 48px; box-sizing: border-box; border-radius: 10px;
  font: 500 20px/1 var(--f-mono); color: var(--ink); background: var(--canvas);
  border: 1px solid var(--rule-2); border-bottom-width: 4px; box-shadow: var(--raise);
  transition: translate 90ms ease-out, border-bottom-width 90ms ease-out, color 90ms ease-out;
}
.tut-m.down .tut-v kbd { translate: 0 3px; border-bottom-width: 1px; color: var(--z); }
.tut-s kbd {
  display: inline-block; margin-right: 2px; padding: 0 5px; border-radius: 3px; font: inherit; line-height: 15px; letter-spacing: .06em;
  color: var(--ink-2); border: 1px solid var(--rule-2); border-bottom-width: 2px;
}
/* What the mouse does now, the AI link's lesson (tutSay): by it, where a drag's label goes, in XYZ purple, the step's
   number at its start; on its left near the screen's right edge. The AI's mark in it as the card has it. */
.tut-say {
  position: absolute; left: 22px; top: 1px; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 4px; box-sizing: border-box;
  border-radius: 13px; white-space: nowrap; font: 500 12.5px/1 var(--f-ui); color: var(--on-tc); background: var(--z);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--z) 90%, transparent);
}
.tut-say[hidden] { display: none; }
.tut-m.flip .tut-say { left: auto; right: 8px; }
.tut-say .ts-n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 600 10px/1 var(--f-mono); font-style: normal; color: var(--z); background: var(--on-tc); }
.tut-say .ts-t { display: flex; align-items: center; gap: 4px; }
.tut-say .tc-mk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-2); background: var(--canvas); box-shadow: var(--raise-sm), var(--edge); }
.tut-say .tc-mk svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4px; stroke-linecap: round; stroke-linejoin: round; }
/* the AI link's way on the reader's turn (tutAiGoals): dashed in XYZ purple, from the trip board to what it goes to */
.tut-a svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tut-a path { fill: none; stroke: var(--z); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.tut-a .ta-l { stroke-dasharray: 5 6; }
@media (prefers-reduced-motion: no-preference) { .tut-a { animation: tut-goal 160ms ease-out both; } }
/* the trip board's AI mark, ringed three times as it shows (tutAiHint): where the link is drawn from; then still */
#aichip.tut-hint::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px var(--z); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { #aichip.tut-hint::after { animation: tut-hint 1.1s cubic-bezier(.2, .8, .2, 1) 3; } }
@media (prefers-reduced-motion: reduce) { #aichip.tut-hint::after { opacity: .9; } }     /* (no lesson then: the ring stays) */
@keyframes tut-hint { from { opacity: .95; scale: .85; } to { opacity: 0; scale: 1.5; } }
/* the end: the guide, ringed in XYZ purple, three breaths, then still (Axio, 2026-11-16: "the animation keeps on playing") */
.tut-ring {
  position: fixed; z-index: 11; pointer-events: none; border-radius: 14px; box-shadow: 0 0 0 2px var(--z), 0 0 0 6px color-mix(in srgb, var(--z) 18%, transparent);
}
.tut-ring[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tut-ring { animation: tut-ring 1.6s ease-in-out 3; }
}
@keyframes tut-ring { 50% { box-shadow: 0 0 0 2px var(--z), 0 0 0 10px color-mix(in srgb, var(--z) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { #tutc { animation: none; } .tut-m { transition: none; } }
