/* learning/static/learning/present.css — presentation mode (present.js). --pz-c = the app's colour, --pz-size = text scale. */
html.pz-open, html.pz-open body { overflow: hidden; }
.pz { --pz-c: #5B2E63; --pz-size: 1; --pz-bg: #121411; --pz-panel: #1C1F1A; --pz-ink: #F3F1EA; --pz-soft: #A9AD9F; --pz-line: #2C3029;
  position: fixed; inset: 0; z-index: 4000; display: grid; grid-template-rows: auto auto 1fr auto; color: var(--pz-ink);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--pz-c) 22%, var(--pz-bg)) 0%, var(--pz-bg) 62%);
  font-family: var(--font-body, 'Geist', system-ui, sans-serif); -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.pz--light { --pz-bg: #F7F5EF; --pz-panel: #fff; --pz-ink: #1F231C; --pz-soft: #676B5F; --pz-line: #E3E1D8;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--pz-c) 10%, var(--pz-bg)) 0%, var(--pz-bg) 60%); }
.pz--wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.pz__waiting { margin: 0; font-size: 16px; color: var(--pz-soft); }

/* top: title · count · close, then the story-style segments */
.pz__top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.pz__title { margin: 0; flex: 1; min-width: 0; font-size: 14.5px; font-weight: 650; color: var(--pz-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz__count { margin: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pz-soft); }
.pz__segs { display: flex; gap: 3px; padding: 0 16px; }
.pz__seg { flex: 1; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.pz__seg::before { content: ''; display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--pz-ink) 16%, transparent); }
.pz__seg i { display: block; height: 4px; margin-top: -4px; width: 0; border-radius: 2px; background: var(--pz-ink); }
.pz__seg.is-now i { background: var(--pz-c); background: color-mix(in srgb, var(--pz-c) 40%, var(--pz-ink)); }

/* the stage */
.pz__stage { position: relative; display: grid; place-items: center; overflow-y: auto; padding: 24px 20px; touch-action: pan-y; }
.pz__slide { width: min(860px, 100%); display: grid; justify-items: center; gap: calc(14px * var(--pz-size)); text-align: center;
  animation: pz-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pz-in { from { opacity: 0; transform: translateY(14px); } }
.pz__kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--pz-c) 55%, var(--pz-ink)); }
.pz__h1 { margin: 0; font-size: calc(clamp(30px, 6vw, 56px) * var(--pz-size)); line-height: 1.08; letter-spacing: -.02em; font-weight: 750; }
.pz__h2 { margin: 0; font-size: calc(clamp(22px, 3.6vw, 34px) * var(--pz-size)); line-height: 1.2; letter-spacing: -.01em; font-weight: 720; }
.pz__sub { margin: 0; max-width: 640px; font-size: calc(18px * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); }
.pz__body { margin: 0; max-width: 680px; font-size: calc(clamp(18px, 2.4vw, 23px) * var(--pz-size)); line-height: 1.55; }
.pz__note { margin: 0; max-width: 620px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--pz-ink) 7%, transparent); font-size: calc(16px * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); }
.pz__tag, .pz__speaker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; letter-spacing: .04em;
  background: color-mix(in srgb, var(--pz-c) 26%, transparent); color: color-mix(in srgb, var(--pz-c) 25%, var(--pz-ink)); }
.pz__term { margin: 0; font-size: calc(clamp(56px, 13vw, 120px) * var(--pz-size)); line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.pz__reading { margin: -4px 0 0; font-size: calc(22px * var(--pz-size)); color: var(--pz-soft); letter-spacing: .02em; }
.pz__meaning { margin: 0; font-size: calc(clamp(22px, 3.4vw, 32px) * var(--pz-size)); font-weight: 650; color: color-mix(in srgb, var(--pz-c) 30%, var(--pz-ink)); }
.pz--light .pz__meaning { color: var(--pz-c); }
.pz__line { margin: 4px 0 0; font-size: calc(17px * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); }
.pz__sentence { margin: 0; max-width: 820px; font-size: calc(clamp(26px, 4.6vw, 44px) * var(--pz-size)); line-height: 1.45; font-weight: 600; }
.pz__sentence rt, .pz__term rt, .pz__hist rt { font-size: .45em; font-weight: 500; color: var(--pz-soft); }
.pz__translation { margin: 0; max-width: 720px; font-size: calc(clamp(17px, 2.3vw, 22px) * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); font-style: italic; }
.pz__hist { display: grid; gap: 6px; width: 100%; max-width: 760px; margin-bottom: 8px; opacity: .45; }
.pz__hist-l { margin: 0; font-size: calc(17px * var(--pz-size)); line-height: 1.45; }
.pz__hist-l b { font-weight: 700; color: var(--pz-soft); }
.pz__reveal { display: grid; gap: 6px; justify-items: center; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.pz__reveal.is-in { opacity: 1; transform: none; }
.pz--no-tr .pz__translation { display: none; }
.pz__cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.pz__cmp-c { padding: 20px 18px; border-radius: 18px; background: var(--pz-panel); border: 1px solid var(--pz-line); text-align: left; }
.pz__cmp-c:first-child { border-top: 4px solid var(--pz-c); }
.pz__cmp-c:last-child { border-top: 4px solid color-mix(in srgb, var(--pz-c) 40%, var(--pz-ink)); }
.pz__cmp-k { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pz-soft); }
.pz__cmp-t { margin: 0; font-size: calc(19px * var(--pz-size)); line-height: 1.5; }
.pz__code, .pz__out { width: 100%; max-width: 780px; margin: 0; padding: 18px 20px; border-radius: 16px; text-align: left; overflow-x: auto;
  font: calc(15.5px * var(--pz-size))/1.6 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.pz__code { background: #0B0D0A; color: #E8EAE0; border: 1px solid #2A2E27; }
.pz__out { background: color-mix(in srgb, var(--pz-c) 14%, var(--pz-panel)); color: var(--pz-ink); border: 1px dashed var(--pz-line); }
.pz__out::before { content: 'Output'; display: block; margin-bottom: 6px; font: 700 11px/1 var(--font-body, system-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--pz-soft); }
.pz__list { display: grid; gap: 10px; width: 100%; max-width: 680px; margin: 0; padding: 0; list-style: none; text-align: left; }
.pz__li { position: relative; padding: 12px 16px 12px 46px; border-radius: 14px; background: var(--pz-panel); border: 1px solid var(--pz-line);
  font-size: calc(18px * var(--pz-size)); line-height: 1.45; }
.pz__li::before { content: ''; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 4px; background: var(--pz-c); }
.pz__endrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.pz__btn { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--pz-line); background: var(--pz-panel); color: var(--pz-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.pz__btn--main { background: var(--pz-c); border-color: var(--pz-c); color: #fff; }

/* bottom controls */
.pz__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.pz__grp { display: flex; align-items: center; gap: 8px; }
.pz__grp:last-child { justify-content: flex-end; }
.pz__grp--mid { gap: 14px; }
.pz__icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--pz-line); background: var(--pz-panel);
  color: var(--pz-ink); cursor: pointer; transition: transform .12s, background .15s; }
.pz__icon svg { width: 20px; height: 20px; }
.pz__icon:hover { background: color-mix(in srgb, var(--pz-ink) 10%, var(--pz-panel)); }
.pz__icon:active, .pz__play:active { transform: scale(.94); }
.pz__icon:disabled { opacity: .35; cursor: default; }
.pz__icon--toggle[aria-pressed="true"] { background: var(--pz-c); border-color: var(--pz-c); color: #fff; }
.pz__icon[hidden] { display: none; }
.pz__play { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: var(--pz-ink); color: var(--pz-bg); cursor: pointer;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--pz-c) 70%, transparent); transition: transform .12s; }
.pz__play svg { width: 28px; height: 28px; }
.pz.is-playing .pz__play { background: var(--pz-c); color: #fff; }
.pz__chip { min-width: 58px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pz-line); background: var(--pz-panel); color: var(--pz-ink);
  font: inherit; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pz button:focus-visible { outline: 2px solid color-mix(in srgb, var(--pz-c) 50%, var(--pz-ink)); outline-offset: 2px; }

/* settings sheet */
.pz__sheet { position: absolute; right: 16px; bottom: 96px; z-index: 2; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 200px); overflow-y: auto;
  padding: 16px; border-radius: 20px; background: var(--pz-panel); border: 1px solid var(--pz-line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); display: grid; gap: 12px; }
.pz__sheet[hidden] { display: none; }
.pz__sheet-h { margin: 0; font-size: 15px; font-weight: 750; }
.pz__row { display: grid; gap: 6px; }
.pz__row-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pz-soft); }
.pz__segctl { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--pz-ink) 7%, transparent); }
.pz__opt { flex: 1; min-height: 36px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--pz-soft); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.pz__opt[aria-pressed="true"] { background: var(--pz-c); color: #fff; }
.pz__keys { margin: 0; font-size: 12px; line-height: 1.5; color: var(--pz-soft); }

@media (max-width: 640px) {
  .pz__stage { padding: 16px 16px; align-items: center; }
  .pz__cmp { grid-template-columns: 1fr; }
  .pz__hide-sm { display: none; }
  .pz__bar { gap: 6px; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
  .pz__grp { gap: 6px; }
  .pz__grp--mid { gap: 10px; }
  .pz__icon { width: 42px; height: 42px; }
  .pz__play { width: 58px; height: 58px; }
  .pz__chip { min-width: 50px; padding: 0 8px; }
  .pz__sheet { left: 12px; right: 12px; bottom: 86px; width: auto; }
  .pz__code, .pz__out { font-size: calc(13px * var(--pz-size)); padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pz__slide, .pz__li { animation: none; } .pz__reveal { transition: none; } }


/* ── Nov 2026: more backgrounds, adjustable text, points one at a time, highlighted code ── */
.pz--paper { --pz-bg: #F4ECD8; --pz-panel: #FBF6EA; --pz-ink: #3A2F1E; --pz-soft: #7A6A50; --pz-line: #E2D6BA;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--pz-c) 8%, var(--pz-bg)) 0%, var(--pz-bg) 60%); }
.pz--night { --pz-bg: #0C1424; --pz-panel: #152238; --pz-ink: #E6EEFA; --pz-soft: #9FB2CF; --pz-line: #22324E;
  background: radial-gradient(120% 80% at 50% 0%, #1B2C4A 0%, var(--pz-bg) 62%); }
.pz--contrast { --pz-bg: #000; --pz-panel: #111; --pz-ink: #FFF; --pz-soft: #FFE066; --pz-line: #444; background: #000; }
.pz--contrast .pz__meaning, .pz--contrast .pz__kicker { color: #FFE066; }
.pz--light .pz__code, .pz--paper .pz__code { background: #FBFAF7; color: #24292F; border-color: var(--pz-line); }
.pz--light .pz__codehead, .pz--paper .pz__codehead { background: #F0EEE8; color: #57606A; }

/* top-bar tools: A− A+ and the background switch */
.pz__tools { display: flex; gap: 6px; }
.pz__icon--txt { font: 800 13px/1 var(--font-body, system-ui, sans-serif); }
.pz__icon--big { font-size: 16px; }
.pz__top .pz__icon { width: 40px; height: 40px; }
.pz__icon svg circle { stroke: currentColor; }

/* background swatches in the settings sheet */
.pz__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pz__swatch { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--pz-soft);
  font: 600 11px/1.2 var(--font-body, system-ui, sans-serif); cursor: pointer; }
.pz__swatch i { width: 34px; height: 24px; border-radius: 7px; border: 1px solid rgba(128,128,128,.4); }
.pz__swatch--dark i { background: #121411; } .pz__swatch--light i { background: #fff; } .pz__swatch--paper i { background: #F4ECD8; }
.pz__swatch--night i { background: #0C1424; } .pz__swatch--contrast i { background: linear-gradient(135deg, #000 50%, #FFE066 50%); }
.pz__swatch[aria-pressed="true"] { border-color: var(--pz-c); color: var(--pz-ink); }

/* typography: balanced headings, readable long text */
.pz__h1, .pz__h2, .pz__sentence { text-wrap: balance; }
.pz__body, .pz__translation, .pz__note, .pz__li { text-wrap: pretty; }
.pz__bodies { display: grid; gap: calc(12px * var(--pz-size)); max-width: 720px; }
.pz__bodies.is-long { text-align: left; }
.pz__bodies.is-rolling { counter-reset: pz-pt; }
.pz__bodies.is-rolling > .pz__body { grid-area: 1 / 1; align-self: start; }
.pz__bodies.is-rolling > .pz__body.is-shown { counter-increment: pz-pt; }
.pz__bodies.is-rolling::after { content: counter(pz-pt) " / " attr(data-n); grid-area: 2 / 1; justify-self: start;
  font-size: calc(12px * var(--pz-size)); letter-spacing: .08em; opacity: .55; font-variant-numeric: tabular-nums; }
.pz__slide.is-whole .pz__bodies.is-rolling::after { content: none; }
.pz__bodies.is-rolling > .pz__body.is-shown:has(~ .pz__body.is-shown) { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.pz__slide.is-whole .pz__bodies.is-rolling > .pz__body { grid-area: auto; }
.pz__slide.is-whole .pz__bodies.is-rolling > .pz__body.is-shown { opacity: 1; visibility: visible; transform: none; }
.pz__bodies.is-long .pz__body { font-size: calc(clamp(17px, 2.1vw, 21px) * var(--pz-size)); line-height: 1.6; }
.pz__note { border-left: 4px solid var(--pz-c); text-align: left; }
.pz__body b, .pz__li b, .pz__note b { color: color-mix(in srgb, var(--pz-c) 40%, var(--pz-ink)); }
.pz--light .pz__body b, .pz--paper .pz__body b, .pz--light .pz__li b, .pz--paper .pz__li b { color: var(--pz-c); }
.pz__body code, .pz__li code, .pz__note code { font: .9em 'JetBrains Mono', ui-monospace, monospace; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--pz-ink) 10%, transparent); }
.pz__stage { scrollbar-width: thin; }
.pz__slide { max-height: 100%; }

/* points one at a time: hidden until revealed, then rise in */
.pz__step { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.pz__step:not(.is-shown) { visibility: hidden; }
.pz__step.is-shown { opacity: 1; transform: none; visibility: visible; }
.pz__li.pz__step:not(.is-shown) { height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; overflow: hidden; }
.pz__list { gap: 0; }
.pz__li + .pz__li.is-shown, .pz__li.is-shown + .pz__li { margin-top: 10px; }

/* code: a window with a title bar, colour-highlighted, scrolling both ways */
.pz__slide--code { width: min(1000px, 100%); }
.pz__codewin { width: 100%; max-width: 960px; border-radius: 16px; overflow: hidden; border: 1px solid #2A2E27; text-align: left; box-shadow: 0 24px 50px -30px rgba(0,0,0,.7); }
.pz__codehead { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #1A1D18; color: #9CA393; font: 600 12px/1 var(--font-body, system-ui, sans-serif); }
.pz__codehead i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.pz__codehead i:nth-child(2) { background: #FEBC2E; } .pz__codehead i:nth-child(3) { background: #28C840; }
.pz__codelang { margin-left: 8px; letter-spacing: .04em; }
.pz__codelines { margin-left: auto; opacity: .7; font-variant-numeric: tabular-nums; }
.pz__codewin .pz__code { max-width: none; margin: 0; border: 0; border-radius: 0; max-height: min(56vh, 620px); overflow: auto; white-space: pre; tab-size: 4;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; }
.pz__code:focus-visible { outline: 2px solid var(--pz-c); outline-offset: -2px; }
.pz__code code.hljs { background: none; padding: 0; }
/* syntax colours — dark backgrounds (dark, midnight, high contrast) */
.pz__code .hljs-keyword, .pz__code .hljs-built_in, .pz__code .hljs-literal { color: #C792EA; }
.pz__code .hljs-string, .pz__code .hljs-regexp { color: #C3E88D; }
.pz__code .hljs-number { color: #F78C6C; }
.pz__code .hljs-comment { color: #7F8A7A; font-style: italic; }
.pz__code .hljs-title, .pz__code .hljs-title.function_, .pz__code .hljs-function .hljs-title { color: #82AAFF; }
.pz__code .hljs-params { color: #E8EAE0; }
.pz__code .hljs-meta, .pz__code .hljs-decorator { color: #FFCB6B; }
.pz__code .hljs-attr, .pz__code .hljs-variable, .pz__code .hljs-type { color: #FFCB6B; }
.pz__code .hljs-operator, .pz__code .hljs-punctuation { color: #89DDFF; }
/* light backgrounds (white, paper) */
.pz--light .pz__code .hljs-keyword, .pz--paper .pz__code .hljs-keyword, .pz--light .pz__code .hljs-built_in, .pz--paper .pz__code .hljs-built_in,
.pz--light .pz__code .hljs-literal, .pz--paper .pz__code .hljs-literal { color: #8250DF; }
.pz--light .pz__code .hljs-string, .pz--paper .pz__code .hljs-string { color: #0A7F33; }
.pz--light .pz__code .hljs-number, .pz--paper .pz__code .hljs-number { color: #B35900; }
.pz--light .pz__code .hljs-comment, .pz--paper .pz__code .hljs-comment { color: #6E7781; }
.pz--light .pz__code .hljs-title, .pz--paper .pz__code .hljs-title { color: #0550AE; }
.pz--light .pz__code .hljs-params, .pz--paper .pz__code .hljs-params { color: #24292F; }
.pz--light .pz__code .hljs-meta, .pz--paper .pz__code .hljs-meta, .pz--light .pz__code .hljs-attr, .pz--paper .pz__code .hljs-attr { color: #953800; }
.pz--light .pz__code .hljs-operator, .pz--paper .pz__code .hljs-operator { color: #CF222E; }
.pz__out { max-height: 24vh; overflow: auto; }
@media (max-width: 640px) {
  .pz__tools { gap: 4px; }
  .pz__top .pz__icon { width: 36px; height: 36px; }
  .pz__title { font-size: 13px; }
  .pz__codewin .pz__code { max-height: 50vh; font-size: calc(12.5px * var(--pz-size)); }
  .pz__swatches { grid-template-columns: repeat(5, 1fr); }
  .pz__swatch i { width: 28px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .pz__step { transition: none; } }

/* ── Phase 1 building blocks (docs/PRESENT_CARDS_PER_APP.md): tones, furigana switch, clip sync, and one block per kind ── */
.pz--nofuri rt { visibility: hidden; }
.pz__furi[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
[data-tone] { --t: var(--pz-c); }
[data-tone="blue"] { --t: #3B82C4; } [data-tone="red"] { --t: #D2483B; } [data-tone="rose"] { --t: #D4567A; }
[data-tone="green"] { --t: #2E9D62; } [data-tone="gold"] { --t: #D19A1F; } [data-tone="purple"] { --t: #8B5CC9; }
[data-tone="navy"] { --t: #2E5C8A; } [data-tone="grey"] { --t: #8A8F86; } [data-tone="teal"] { --t: #23988F; }
[data-tone="orange"] { --t: #E07B2C; } [data-tone="m"] { --t: #3B82C4; } [data-tone="f"] { --t: #D4567A; }
.pz mark { background: color-mix(in srgb, var(--pz-c) 38%, transparent); color: inherit; border-radius: 4px; padding: 0 .12em; }
.pz--light mark, .pz--paper mark { background: color-mix(in srgb, var(--pz-c) 22%, #fff); }
.pz u { text-decoration-thickness: .08em; text-underline-offset: .18em; }
.pz s { text-decoration-color: #D2483B; text-decoration-thickness: .1em; opacity: .8; }
.pz [data-clip] { transition: opacity .3s ease, box-shadow .3s ease, background .3s ease, transform .3s ease; }
.pz [data-clip].is-onair { box-shadow: 0 0 0 2px color-mix(in srgb, var(--t, var(--pz-c)) 75%, transparent); }

/* board: tiles seen at once */
.pz__board { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(120px * var(--pz-size)), 1fr)); gap: 10px; width: 100%; }
.pz__tile { padding: 16px 10px; border-radius: 16px; background: var(--pz-panel); border: 1px solid var(--pz-line); }
.pz__tile.is-off { opacity: .4; }
.pz__tile.is-onair { background: color-mix(in srgb, var(--pz-c) 22%, var(--pz-panel)); transform: translateY(-2px); }
.pz__tile-big { margin: 0; font-size: calc(clamp(26px, 4vw, 40px) * var(--pz-size)); font-weight: 700; line-height: 1.25; }
.pz__tile-big rt { font-size: .4em; color: var(--pz-soft); }
.pz__tile-small { margin: 4px 0 0; font-size: calc(14px * var(--pz-size)); color: var(--pz-soft); }

/* segments: coloured blocks with labels */
.pz__segrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pz__segb { display: grid; gap: 6px; justify-items: center; min-width: 64px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--t, var(--pz-c)) 22%, var(--pz-panel)); border: 2px solid color-mix(in srgb, var(--t, var(--pz-c)) 60%, transparent); }
.pz__segb-t { font-size: calc(clamp(24px, 4vw, 40px) * var(--pz-size)); font-weight: 700; line-height: 1.2; }
.pz__segb-l { font-size: calc(13px * var(--pz-size)); font-weight: 650; color: var(--pz-soft); }

/* tables */
.pz__tablewrap { width: 100%; overflow-x: auto; border-radius: 14px; border: 1px solid var(--pz-line); background: var(--pz-panel); }
.pz__table { width: 100%; border-collapse: collapse; font-size: calc(17px * var(--pz-size)); text-align: left; }
.pz__table th { padding: 10px 14px; font-size: .78em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pz-soft);
  border-bottom: 1px solid var(--pz-line); background: color-mix(in srgb, var(--pz-ink) 4%, transparent); }
.pz__table td { padding: 10px 14px; border-bottom: 1px solid var(--pz-line); }
.pz__table tr:last-child td { border-bottom: 0; }
.pz__table tr.is-hit td { background: color-mix(in srgb, var(--pz-c) 20%, transparent); }
.pz__table tr.pz__step { display: table-row; }
.pz__tpair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; }
.pz__tpair-arrow { font-size: 28px; color: var(--pz-soft); }

/* contrast board: 2–4 coloured columns */
.pz__contrast { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); text-align: left; }
.pz__contrast--3 { --cols: 3; } .pz__contrast--4 { --cols: 4; }
/* 3–4 sides: horizontal rows — the side's label and rule on the left, its examples beside them */
.pz__contrast.pz__contrast--rows { --cols: 1; max-width: 980px; }
.pz__contrast--rows .pz__col { grid-template-columns: minmax(150px, 30%) minmax(0, 1fr); align-items: start; column-gap: 18px;
  border-left: 4px solid var(--t, var(--pz-c)); padding: 14px 16px; }
.pz__col-h { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pz__col-xs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pz__col-xs > .pz__col-ex { flex: 1 1 220px; min-width: 0; }
.pz__contrast--rows .pz__col-k { font-size: calc(clamp(20px, 2.6vw, 28px) * var(--pz-size)); }
@media (max-width: 640px) { .pz__contrast--rows .pz__col { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } }
.pz__col { display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 18px; background: var(--pz-panel);
  border: 1px solid var(--pz-line); border-top: 5px solid var(--t, var(--pz-c)); }
.pz__col-k { margin: 0; font-size: calc(clamp(24px, 3.4vw, 34px) * var(--pz-size)); font-weight: 750; color: color-mix(in srgb, var(--t, var(--pz-c)) 70%, var(--pz-ink)); }
.pz__col-g { margin: 0; font-size: calc(15px * var(--pz-size)); font-weight: 650; color: var(--pz-soft); }
.pz__col-r { margin: 0; font-size: calc(16px * var(--pz-size)); line-height: 1.45; }
.pz__col-ex { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--t, var(--pz-c)) 10%, transparent); }
.pz__col-ex.is-onair { background: color-mix(in srgb, var(--t, var(--pz-c)) 26%, transparent); }
.pz__col-t { margin: 0; font-size: calc(19px * var(--pz-size)); line-height: 1.45; font-weight: 600; }
.pz__col-t rt { font-size: .5em; color: var(--pz-soft); }
.pz__col-tr { margin: 4px 0 0; font-size: calc(14.5px * var(--pz-size)); color: var(--pz-soft); font-style: italic; }

/* wrong → right */
.pz__fix { display: grid; gap: 12px; width: 100%; max-width: 760px; text-align: left; }
.pz__fix-w, .pz__fix-r { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: var(--pz-panel); border: 1px solid var(--pz-line); }
.pz__fix-w { border-left: 5px solid #D2483B; } .pz__fix-r { border-left: 5px solid #2E9D62; }
.pz__fix-k { flex: none; font-size: 22px; font-weight: 800; line-height: 1.3; }
.pz__fix-w .pz__fix-k { color: #D2483B; } .pz__fix-r .pz__fix-k { color: #2E9D62; }
.pz__fix-t { margin: 0; font-size: calc(clamp(19px, 2.8vw, 26px) * var(--pz-size)); line-height: 1.45; }
.pz__fix-w .pz__fix-t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, #D2483B 70%, transparent); }
.pz__fix--code .pz__code { flex: 1; margin: 0; max-width: 100%; overflow-x: auto; }

/* read-along passage */
/* Teleprompter (present.js prompt): while a story / conversation plays, the read line stays mid-screen */
.pz__stage.is-prompter { align-items: start; }
.pz__stage.is-prompter > .pz__slide { transform: translateY(var(--pz-dy, 0px)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pz.is-playing .pz__stage.is-prompter { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pz__stage.is-prompter > .pz__slide { transition: none; } }
.pz__passage { display: grid; gap: 10px; width: 100%; text-align: left; }
.pz__sen { padding: 10px 14px; border-radius: 14px; }
.pz__sen-t { margin: 0; font-size: calc(clamp(20px, 3vw, 28px) * var(--pz-size)); line-height: 1.6; font-weight: 550; }
.pz__sen-t rt { font-size: .48em; color: var(--pz-soft); }
.pz__sen-u { display: grid; gap: 6px; margin-top: 6px; }
.pz__sen-tr { margin: 0; font-size: calc(16px * var(--pz-size)); color: var(--pz-soft); font-style: italic; }
.pz.is-playing .pz__passage [data-clip]:not(.is-heard),
.pz.is-playing .pz__chat [data-clip]:not(.is-heard) { display: none; }
.pz.is-playing .pz__sen[data-clip].is-heard:not(.is-onair) { opacity: .5; }
.pz.is-playing .pz__sen[data-clip].is-heard:not(.is-onair) .pz__sen-u { display: none; }
.pz__sen.is-onair { background: color-mix(in srgb, var(--pz-c) 14%, var(--pz-panel)); box-shadow: none; }
.pz__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pz__chip2 { padding: 4px 10px; border-radius: 999px; font-size: calc(13.5px * var(--pz-size)); background: color-mix(in srgb, var(--pz-ink) 8%, transparent); color: var(--pz-ink); }

/* dialogue: chat bubbles */
.pz__chat { display: grid; gap: 10px; width: 100%; max-width: 760px; }
.pz__bub { max-width: 82%; padding: 10px 14px 12px; border-radius: 18px; text-align: left; background: var(--pz-panel); border: 1px solid var(--pz-line);
  border-left: 4px solid var(--t, var(--pz-c)); }
.pz__bub--l { justify-self: start; border-bottom-left-radius: 6px; }
.pz__bub--r { justify-self: end; border-left: 1px solid var(--pz-line); border-right: 4px solid var(--t, var(--pz-c)); border-bottom-right-radius: 6px; }
.pz__bub-who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: color-mix(in srgb, var(--t, var(--pz-c)) 70%, var(--pz-ink)); }
.pz__bub-t { margin: 0; font-size: calc(clamp(18px, 2.6vw, 24px) * var(--pz-size)); line-height: 1.55; }
.pz__bub-t rt { font-size: .5em; color: var(--pz-soft); }
.pz__bub-tr { margin: 4px 0 0; font-size: calc(15px * var(--pz-size)); color: var(--pz-soft); font-style: italic; }
.pz.is-playing .pz__bub[data-clip].is-heard:not(.is-onair) { opacity: .6; }
.pz__bub.is-onair { background: color-mix(in srgb, var(--t, var(--pz-c)) 14%, var(--pz-panel)); box-shadow: none; }

/* listen first / think first */
.pz__listen { display: flex; align-items: center; gap: 14px; width: min(520px, 100%); }
.pz__listen-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 28px;
  background: color-mix(in srgb, var(--pz-c) 30%, var(--pz-panel)); }
.pz.is-playing .pz__listen-ic { animation: pz-pulse 1.4s ease-in-out infinite; }
@keyframes pz-pulse { 50% { transform: scale(1.08); } }
.pz__listen-bar, .pz__think-bar { flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--pz-ink) 14%, transparent); overflow: hidden; }
.pz__think-bar { width: min(420px, 100%); flex: none; }
.pz__listen-bar i, .pz__think-bar i { display: block; height: 100%; width: 0; background: var(--pz-c); background: color-mix(in srgb, var(--pz-c) 60%, var(--pz-ink)); }
.pz__think { max-width: 760px; }

/* code walk / code → result */
.pz__walk { --pz-lh: calc(15.5px * var(--pz-size) * 1.6); --pz-pad: 14px; width: 100%; }
.pz__walk-body { display: flex; align-items: stretch; overflow-x: auto; }
.pz__gut, .pz__res { margin: 0; padding: var(--pz-pad) 10px; font: calc(15.5px * var(--pz-size))/1.6 'JetBrains Mono', ui-monospace, monospace; white-space: pre; }
.pz__gut { color: var(--pz-soft); opacity: .6; text-align: right; user-select: none; border-right: 1px solid var(--pz-line); }
.pz__walk .pz__code { position: relative; flex: 1; margin: 0; border-radius: 0; padding: var(--pz-pad) 14px; }
.pz__hl { position: absolute; left: 0; right: 0; height: var(--pz-lh); top: 0; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--pz-c) 30%, transparent); border-left: 3px solid var(--pz-c); transition: top .35s ease, opacity .3s; }
.pz__hl.is-on { opacity: 1; }
.pz__walk .pz__code code { position: relative; }
.pz__res { min-width: 30%; border-left: 1px dashed var(--pz-line); color: color-mix(in srgb, var(--pz-c) 40%, var(--pz-ink)); }
.pz__walk-notes { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.pz__walk-n { padding: 10px 14px; border-radius: 12px; background: var(--pz-panel); border: 1px solid var(--pz-line); font-size: calc(17px * var(--pz-size)); line-height: 1.45; }
.pz__walk-n.is-now { border-color: var(--pz-c); background: color-mix(in srgb, var(--pz-c) 12%, var(--pz-panel)); }
.pz__walk-ln { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 6px; font: 700 12px/1.6 'JetBrains Mono', monospace;
  background: color-mix(in srgb, var(--pz-c) 26%, transparent); }

/* badges · poster · stage lane */
.pz__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pz__badge { display: grid; gap: 4px; padding: 12px 18px; border-radius: 16px; background: color-mix(in srgb, var(--t, var(--pz-c)) 16%, var(--pz-panel));
  border: 1px solid color-mix(in srgb, var(--t, var(--pz-c)) 45%, transparent); }
.pz__badge-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pz-soft); }
.pz__badge-v { font-size: calc(clamp(20px, 3vw, 28px) * var(--pz-size)); font-weight: 750; }
.pz__poster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; text-align: left; }
.pz__quad { padding: 14px 16px; border-radius: 16px; background: var(--pz-panel); border: 1px solid var(--pz-line); border-top: 5px solid var(--t, var(--pz-c)); }
.pz__quad-k { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--t, var(--pz-c)) 70%, var(--pz-ink)); }
.pz__quad-l { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: calc(16.5px * var(--pz-size)); line-height: 1.45; }
.pz__hook { margin: 0; max-width: 680px; font-size: calc(19px * var(--pz-size)); font-weight: 650; font-style: italic; }
.pz__lane { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pz__lane-s { padding: 8px 14px; border-radius: 999px; font-size: calc(15px * var(--pz-size)); font-weight: 650; color: var(--pz-soft);
  border: 1px solid var(--pz-line); background: var(--pz-panel); }
.pz__lane-s.is-lit { color: var(--pz-ink); background: color-mix(in srgb, var(--pz-c) 34%, var(--pz-panel)); border-color: var(--pz-c); }
.pz__lane-arrow { color: var(--pz-soft); }

@media (max-width: 700px) {
  .pz__contrast, .pz__contrast--3, .pz__contrast--4 { --cols: 1; }
  .pz__poster { grid-template-columns: 1fr; }
  .pz__tpair { grid-template-columns: 1fr; } .pz__tpair-arrow { transform: rotate(90deg); justify-self: center; }
  .pz__bub { max-width: 92%; }
  .pz__res { min-width: 40%; }
}
/* code walk: the gutter, the code and the results share one font size and line height, so the lit line lines up */
.pz__walk { --pz-fs: calc(15.5px * var(--pz-size)); --pz-lh: calc(var(--pz-fs) * 1.6); --pz-pad: 14px; }
.pz__walk .pz__gut, .pz__walk .pz__code, .pz__walk .pz__res { font-size: var(--pz-fs) !important; line-height: 1.6 !important;
  padding-top: var(--pz-pad) !important; padding-bottom: var(--pz-pad) !important; }
.pz__walk .pz__code code { font: inherit; line-height: inherit; }
.pz__walk .pz__hl { top: var(--pz-pad); }
@media (max-width: 700px) { .pz__walk { --pz-fs: calc(13px * var(--pz-size)); } }
.pz mark { background: color-mix(in srgb, var(--pz-c) 55%, transparent); }
.pz__col mark, .pz__segb mark { background: color-mix(in srgb, var(--t, var(--pz-c)) 45%, transparent); }
.pz__segb[data-tone="grey"] { background: color-mix(in srgb, var(--pz-ink) 8%, var(--pz-panel)); }

/* stroke order */
.pz__strokes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pz__stroke-c { display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 20px; background: var(--pz-panel); border: 1px solid var(--pz-line); }
.pz__stroke-w { min-width: 120px; min-height: 120px; display: grid; place-items: center; font-size: 96px; line-height: 1; }
.pz__stroke-n { font: 700 13px/1 'JetBrains Mono', ui-monospace, monospace; color: var(--pz-soft); min-height: 13px; }
.pz__tkicker { margin: 0; max-width: 760px; font-size: calc(15px * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); }
.pz__tkicker b { color: var(--pz-ink); }
.pz__table i { font-style: normal; opacity: .5; }

/* mouth: IPA, lip diagram and the opening meter (French Phonetics) */
.pz__ipa { margin: 0; font: 700 calc(clamp(64px, 14vw, 128px) * var(--pz-size))/1.05 'Charis SIL', 'Doulos SIL', 'Gentium Plus', Georgia, serif; }
.pz__mouth { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; }
.pz__lips svg { width: calc(150px * var(--pz-size)); height: auto; }
.pz__lip-o { fill: #C65A63; stroke: #8E3A42; stroke-width: 1.5; }
.pz__lip-i { fill: #2A0F14; }
.pz__ap-wrap { display: flex; align-items: center; gap: 8px; }
.pz__ap-k { font-size: 12px; color: var(--pz-soft); }
.pz__aperture { display: flex; gap: 4px; }
.pz__aperture i { width: 22px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--pz-ink) 14%, transparent); }
.pz__aperture i.on { background: var(--pz-c); background: color-mix(in srgb, var(--pz-c) 60%, var(--pz-ink)); }
.pz__fact { margin: 0; max-width: 640px; font-size: calc(18px * var(--pz-size)); line-height: 1.5; }
.pz__fact b { color: var(--pz-soft); font-weight: 700; }
.pz__segrow--stack { flex-direction: column; align-items: stretch; width: min(720px, 100%); }
.pz__segrow--stack .pz__segb { justify-items: start; text-align: left; }
.pz__segrow--stack .pz__segb-t { font-size: calc(clamp(20px, 3.2vw, 30px) * var(--pz-size)); }
.pz__term[data-tone] { color: color-mix(in srgb, var(--t) 72%, var(--pz-ink)); }
.pz__tile[data-tone] { border-top: 4px solid var(--t); }
.pz__tile[data-tone] .pz__tile-big { color: color-mix(in srgb, var(--t) 60%, var(--pz-ink)); }

/* visual: an app's own drawing, frame by frame (captions below; the current one bold) */
.pz__vis { width: 100%; max-width: 900px; height: var(--vis-h, 360px); max-height: 52vh; border-radius: 18px; overflow: hidden;
  background: var(--pz-panel); border: 1px solid var(--pz-line); }
.pz__vis-c { width: 100%; height: 100%; display: grid; place-items: center; overflow: auto; }
.pz__vis-says { display: grid; gap: 4px; width: 100%; max-width: 760px; }
.pz__vis-say { margin: 0; font-size: calc(17px * var(--pz-size)); line-height: 1.45; color: var(--pz-soft); }
.pz__vis-say:not(.is-now) { display: none; }
.pz__vis-say.is-now { color: var(--pz-ink); font-weight: 600; }
/* the drawing area fits its drawing (up to the slide's height), so a small grid doesn't float in empty space */
.pz__vis { height: auto; min-height: 140px; max-height: min(var(--vis-h, 360px), 56vh); }
.pz__vis-c { height: auto; max-height: inherit; padding: 8px; box-sizing: border-box; }

/* words fit their boxes (fitWords shrinks the text); long words never break mid-word in a tile */
.pz__tile { min-width: 0; overflow: hidden; }
.pz__tile-big, .pz__segb-t { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.pz__segb { min-width: 0; max-width: 100%; }
/* code → result: outputs in the accent, quick comments muted */
.pz__res-l--note { color: var(--pz-soft); font-style: italic; }
.pz__res-l--out { color: color-mix(in srgb, var(--pz-c) 45%, var(--pz-ink)); font-weight: 600; }
/* wider tiles: a long word (une mademoiselle) gets room before the board's text has to shrink */
.pz__board { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(170px * var(--pz-size))), 1fr)); }
.pz__tile { padding: 14px 12px; }
@media (max-width: 600px) {
  .pz__board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pz__tile { padding: 12px 8px; }
}

/* code → result: the code keeps most of the width; results sit beside their lines (one block per line) */
.pz__walk--res .pz__walk-body { align-items: flex-start; }
.pz__walk--res .pz__code { width: auto; max-width: none; flex: 1 1 auto; min-width: 55%; }
.pz__res { flex: 0 1 auto; max-width: 45%; overflow-x: auto; }
.pz__res-l { display: block; white-space: pre; min-height: var(--pz-lh); }
.pz__res-l.pz__step:not(.is-shown) { visibility: hidden; height: var(--pz-lh); }
.pz__res-n { display: none; }
.pz__lead { margin: 0; max-width: 720px; font-size: calc(clamp(17px, 2.2vw, 21px) * var(--pz-size)); line-height: 1.5; color: var(--pz-soft); }
/* phones: the code full width, the results as a list under it ("line 3 → Par"), only the ones revealed so far */
@media (max-width: 640px) {
  .pz__walk--res .pz__walk-body { flex-direction: column; }
  .pz__walk--res .pz__code { min-width: 0; width: 100%; box-sizing: border-box; }
  .pz__walk--res .pz__gut { display: none; }
  .pz__res { max-width: none; width: 100%; box-sizing: border-box; border-left: 0; border-top: 1px dashed var(--pz-line);
    white-space: normal; padding: 8px 12px; }
  .pz__res-l { white-space: normal; min-height: 0; padding: 3px 0; }
  .pz__res-l.is-blank, .pz__res-l.pz__step:not(.is-shown) { display: none; }
  .pz__res-n { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 6px; font-style: normal; font-size: .8em;
    background: color-mix(in srgb, var(--pz-c) 24%, transparent); color: var(--pz-ink); }
}

/* fit-to-screen for short read-along / dialogue pages (fitStage sets --fit on the slide) */
.pz__slide { --fit: 1; }
.pz__slide--passage .pz__sen-t { font-size: calc(clamp(20px, 3vw, 28px) * var(--pz-size) * var(--fit)); }
.pz__slide--passage .pz__sen-tr { font-size: calc(16px * var(--pz-size) * var(--fit)); }
.pz__slide--passage .pz__chip2, .pz__slide--dialogue .pz__chip2 { font-size: calc(13.5px * var(--pz-size) * var(--fit)); }
.pz__slide--dialogue .pz__bub-t { font-size: calc(clamp(18px, 2.6vw, 24px) * var(--pz-size) * var(--fit)); }
.pz__slide--dialogue .pz__bub-tr { font-size: calc(15px * var(--pz-size) * var(--fit)); }
.pz__slide--passage .pz__h2, .pz__slide--dialogue .pz__h2 { font-size: calc(clamp(22px, 3.6vw, 34px) * var(--pz-size) * max(var(--fit), .8)); }
.pz__slide--passage .pz__sen { padding: calc(10px * var(--fit)) 14px; }
.pz__slide.is-measuring [data-clip], .pz__slide.is-measuring .pz__sen-u { display: block !important; }

/* measuring: every point takes its room (li steps are collapsed until shown) */
.pz__slide.is-measuring .pz__li.pz__step { height: auto; padding-top: 12px; padding-bottom: 12px; border-width: 1px; }
/* tables: tighter rows, so a result set fits */
.pz__table { font-size: calc(15.5px * var(--pz-size)); }
.pz__table th { padding: 7px 12px; } .pz__table td { padding: 7px 12px; }
/* a code walk-through on a wide screen: the notes beside the code, not under it */
@media (min-width: 1000px) {
  .pz__slide--code_walk { width: min(1180px, 100%); grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start;
    justify-items: stretch; column-gap: 20px; }
  .pz__slide--code_walk > .pz__h2 { grid-column: 1 / -1; justify-self: center; }
  .pz__slide--code_walk > .pz__walk-notes { align-self: start; }
  .pz__slide--code_walk > .pz__body { grid-column: 1 / -1; }
}
/* the player never grows wider than the screen: its one column is the screen's width, and a screen's content shrinks
   (code panes and tables scroll inside themselves) instead of pushing the stage past the right edge on a phone */
.pz { grid-template-columns: minmax(0, 1fr); }
.pz__stage, .pz__slide { min-width: 0; max-width: 100%; }
.pz__slide > * { max-width: 100%; min-width: 0; }
.pz__contrast, .pz__col, .pz__fix, .pz__fix-w, .pz__fix-r, .pz__tpair, .pz__tpair-c, .pz__poster, .pz__quad,
.pz__walk-body, .pz__chat, .pz__bub, .pz__passage, .pz__sen { min-width: 0; }
.pz__col-k, .pz__col-t, .pz__quad-l, .pz__sen-t, .pz__bub-t { overflow-wrap: anywhere; }
.pz__fix-w > .pz__code, .pz__fix-r > .pz__code { min-width: 0; }
.pz__tpair-c .pz__tablewrap { max-width: 100%; }
.pz__li { overflow-wrap: anywhere; min-width: 0; }

/* ── Easy to drive (Nov 2026): bars that step aside, tap zones, a note after each change, a shortcuts card ── */
.pz__row[hidden] { display: none; }
.pz__top, .pz__bar { transition: opacity .35s ease; }
.pz__segs { transition: opacity .35s ease; }
.pz.is-idle { cursor: none; }
.pz.is-idle .pz__top, .pz.is-idle .pz__bar { opacity: 0; pointer-events: none; }
.pz.is-idle .pz__segs { opacity: .45; }
/* a tap in the middle: the play / pause mark blinks there */
.pz__flash { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--pz-ink) 16%, transparent); color: var(--pz-ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; z-index: 3; }
.pz__flash svg { width: 44px; height: 44px; }
.pz__flash.is-on { animation: pz-flash .55s ease-out; }
@keyframes pz-flash { 0% { opacity: .95; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.25); } }
/* with a mouse, the stage's edges say what a click there does */
.pz.is-edge-l .pz__stage, .pz.is-edge-r .pz__stage { cursor: pointer; }
.pz.is-edge-l::before, .pz.is-edge-r::after { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--pz-ink) 12%, transparent); color: var(--pz-ink); font: 400 30px/1 system-ui, sans-serif;
  pointer-events: none; z-index: 1; animation: pz-edge .18s ease-out; }
.pz.is-edge-l::before { content: '‹'; left: 14px; padding-bottom: 4px; }
.pz.is-edge-r::after { content: '›'; right: 14px; padding-bottom: 4px; }
@keyframes pz-edge { from { opacity: 0; } }
/* a short note: "Speed 1.25×", "Text 115%", "Picked up at 6 / 12" */
.pz__toast { position: absolute; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); max-width: calc(100% - 32px);
  padding: 9px 16px; border-radius: 999px; background: var(--pz-ink); color: var(--pz-bg); font-size: 14px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; z-index: 4; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.pz__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* every shortcut on one card (?) */
.pz__help { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--pz-bg) 72%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pz__help[hidden] { display: none; }
.pz__help-box { width: min(520px, 100%); max-height: 100%; overflow-y: auto; display: grid; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--pz-panel); border: 1px solid var(--pz-line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.pz__keylist { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; align-items: center; font-size: 14.5px; }
.pz__keylist dt { display: flex; gap: 5px; justify-content: flex-end; }
.pz__keylist dd { margin: 0; color: var(--pz-soft); }
.pz__kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--pz-line);
  border-bottom-width: 2px; background: color-mix(in srgb, var(--pz-ink) 7%, transparent); color: var(--pz-ink); font: 700 12px/1 ui-monospace, 'JetBrains Mono', monospace; }
.pz__keysbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.pz__help-box .pz__btn { justify-self: end; }
@media (max-width: 640px) {
  .pz__toast { bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 13px; }
  .pz__keylist { font-size: 13.5px; gap: 8px 12px; }
  .pz__help-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pz__top, .pz__bar, .pz__segs, .pz__toast { transition: none; }
  .pz__flash.is-on, .pz.is-edge-l::before, .pz.is-edge-r::after { animation: none; }
}
