/* Leesje UI v10, after docs/ui-handoff.md: a calm co-pilot beside the book. Every screen for the child shows one
   sentence from Leesje, the books, and one button for the child; everything for the grown-up is in the strip at the
   bottom and behind one button (the sheet). Each step of the reading circle has its own wash; red is only ever the
   child's next step, and only one thing is red at a time. Built from the tokens below; layout is fluid: landscape
   shows the book as a spread, portrait and phones stack. Phone-sized values are token overrides at the bottom. */
:root {
  /* Colour */
  --screen: #F4F5F3;
  --white: #FFFFFF;
  --line: #E3E5E2;
  --line-soft: #DFE1DE;
  --line-faint: #EEEFED;
  --line-row: #F1F2F0;
  --strip-line: #E9EBE8;
  --ink: #1C1A17;
  --ink-body: #3B3833;
  --ink-soft: #5F5B55;
  --placeholder: #8D8983;
  --red: #E2382B;  /* the only accent: the child's next step */
  --red-tint: #FDE0DA;
  --yellow: #FFE380;
  --sky: linear-gradient(180deg, #D5DEE0 0%, #E6E4DA 58%, #F2DCC4 100%);
  --about-bg: #FBFBFA;
  /* The steps of the reading circle (Stokmans & Wolters): a tint, its ink, and the wash of the whole screen */
  --stage-kiezen: #D6E9F5;
  --stage-kiezen-ink: #2C5C7E;
  --stage-kiezen-wash: #EDF3F7;
  --stage-lezen: #DCEBD6;
  --stage-lezen-ink: #3D6B33;
  --stage-lezen-wash: #EEF4EB;
  --stage-praten: #E8DFF3;
  --stage-praten-ink: #5E4687;
  --stage-praten-wash: #F3EFF8;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  .22 0 0 0 -.09'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type */
  --font-ui: Nunito, system-ui, sans-serif;
  --font-story: Andika, Nunito, sans-serif;  /* beginner-reader letterforms */
  --text-xs: 12px;
  --text-label: 13px;
  --text-sm: 15px;
  --text-md: 17px;
  --text-body: 18px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-line: clamp(22px, 1.6vw + 12px, 32px);  /* Leesje's sentence in Kiezen */
  --text-caption: clamp(18px, .8vw + 12px, 23px);  /* Leesje's sentence while reading */
  --text-question: clamp(26px, 2vw + 14px, 38px);  /* Leesje's question in Wij lezen zelf */
  --text-hero: clamp(80px, 10vw, 120px);
  --text-story: clamp(22px, 1.4vw + 16px, 33px);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --gutter: clamp(16px, 4vw, 56px);

  /* Shape and elevation */
  --radius-slot: 3px;
  --radius-paper: 6px;
  --radius-card: 10px;
  --radius-book: 3px 6px 6px 3px;  /* a book, with a spine on the left */
  --radius-pill: 999px;
  --shadow-paper: 0 1px 2px rgba(28,26,23,.06), 0 10px 24px -12px rgba(28,26,23,.18);
  --shadow-card: 0 1px 2px rgba(28,26,23,.05), 0 10px 24px -16px rgba(28,26,23,.18);
  --shadow-book: 0 1px 2px rgba(28,26,23,.1), 0 14px 24px -14px rgba(28,26,23,.4);
  --shadow-book-focus: 0 2px 3px rgba(28,26,23,.1), 0 26px 40px -20px rgba(28,26,23,.5);
  --shadow-spread: 0 2px 3px rgba(28,26,23,.06), 0 22px 40px -22px rgba(28,26,23,.3);
  --shadow-sheet: -24px 0 48px -24px rgba(28,26,23,.35);
  --ring-cta: 0 0 0 10px var(--red-tint);

  /* Sizes */
  --head: 84px;
  --strip: 60px;
  --target-child: clamp(80px, 9vw, 104px);  /* touch target for the child */
  --mic-big: clamp(80px, 8.5vw, 100px);
  --mark-header: 28px;
  --mark-indicator: clamp(44px, 5vw, 60px);
  --mark-hero: clamp(72px, 9vw, 104px);
  --stage-max: 1320px;
  --text-max: 760px;
  --sheet-width: 460px;

  /* Motion: slow, no bouncing */
  --lift: .35s ease;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; background: var(--screen); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
html.page, html.page body { height: auto; overflow: visible; }  /* Over Leesje scrolls; the screens don't */
button { font-family: inherit; color: inherit; cursor: pointer; }
input { font-family: inherit; }
input::placeholder { color: var(--placeholder); }
input:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { text-wrap: pretty; }

/* Building blocks */
.label { font-size: var(--text-label); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.muted { font-size: 14px; font-weight: 700; color: var(--placeholder); }
.muted.small { font-weight: 600; line-height: 1.5; }
.muted a { color: inherit; text-underline-offset: 3px; }
.brand { display: flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; }
.brand .mark { --s: var(--mark-header); }
.wordmark { font-size: 28px; font-weight: 900; letter-spacing: -.8px; line-height: 1; }
.wordmark.small { font-size: var(--text-xl); letter-spacing: -.5px; }

/* The ladybug mark: circles only, no face. Its size is --s, set by the context. */
.mark {
  --s: var(--mark-header);
  --line: max(1.5px, calc(var(--s) * .035));
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: var(--s);
  height: var(--s);
  margin-top: calc(var(--s) * .1);
}
.mark::before, .mark::after { content: ""; position: absolute; border-radius: 50%; }
.mark::before {
  left: 50%;
  top: calc(var(--s) * -.11);
  width: calc(var(--s) * .46);
  height: calc(var(--s) * .46);
  margin-left: calc(var(--s) * -.23);
  background: var(--ink);
}
.mark::after {
  inset: 0;
  background:
    radial-gradient(circle at 30% 36%, var(--ink) calc(var(--s) * .085), transparent calc(var(--s) * .085 + .5px)),
    radial-gradient(circle at 70% 36%, var(--ink) calc(var(--s) * .085), transparent calc(var(--s) * .085 + .5px)),
    radial-gradient(circle at 26% 67%, var(--ink) calc(var(--s) * .065), transparent calc(var(--s) * .065 + .5px)),
    radial-gradient(circle at 74% 67%, var(--ink) calc(var(--s) * .065), transparent calc(var(--s) * .065 + .5px)),
    linear-gradient(90deg, transparent calc(50% - var(--line) / 2), var(--ink) 0, var(--ink) calc(50% + var(--line) / 2), transparent 0),
    var(--red);
}

/* Motion */
@keyframes lsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lsTurn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes lsSheet { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes lsTalk { 0%, 100% { box-shadow: 0 0 0 10px var(--red-tint); } 50% { box-shadow: 0 0 0 22px var(--red-tint); } }
.fade-in { animation: lsIn .5s ease; }

/* Buttons. The child's: big, round or pill-shaped, red with a soft ring. The grown-up's: quiet text buttons. */
.primary {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 84px;
  padding: 0 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--ring-cta);
}
.primary span:last-child { font-size: 28px; }
.primary.blue { height: 80px; font-size: 22px; background: var(--stage-kiezen-ink); box-shadow: none; }  /* back to Kiezen */
.primary.blue span:last-child { font-size: 26px; }
.text-button {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 20px;
  background: none;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
}
.text-button:hover { background: var(--screen); color: var(--ink); }
.text-button.ink { color: var(--ink); }
.text-button:disabled { opacity: .35; cursor: default; background: none; }
.text-button.dot { display: inline-flex; align-items: center; gap: var(--space-2); }
.text-button.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.link-button { margin-left: -14px; padding: 10px 14px; border: 0; border-radius: 20px; background: none; font-size: var(--text-sm); font-weight: 700; color: var(--tone); white-space: nowrap; }
.link-button:hover { background: color-mix(in srgb, var(--tone) 8%, transparent); }
.underline-button { align-self: flex-start; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.next {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: var(--target-child);
  height: var(--target-child);
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: calc(var(--target-child) * .43);
  font-weight: 800;
  box-shadow: var(--ring-cta);
}
/* The microphone: big and red while Leesje waits for the child; small and quiet when something else is the next step. */
.mic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  color: var(--tone);
  transition: width var(--lift), height var(--lift), background var(--lift);
}
.mic svg { width: 43%; fill: currentColor; }
.mic.big { width: var(--mic-big); height: var(--mic-big); background: var(--red); color: var(--white); box-shadow: var(--ring-cta); }
.reading .mic.big { width: var(--target-child); height: var(--target-child); }
.mic-stop { display: none; width: 30%; height: 30%; border-radius: 7px; background: var(--white); }
.mic.recording { width: var(--mic-big); height: var(--mic-big); background: var(--red); animation: lsTalk 1.6s ease-in-out infinite; }
.reading .mic.recording { width: var(--target-child); height: var(--target-child); }
.mic.recording svg { display: none; }
.mic.recording .mic-stop { display: block; }

/* Each screen is one step of the reading circle: --tint, --tone (its ink) and --wash (the background). */
[data-step="kiezen"] { --tint: var(--stage-kiezen); --tone: var(--stage-kiezen-ink); --wash: var(--stage-kiezen-wash); }
[data-step="lezen"] { --tint: var(--stage-lezen); --tone: var(--stage-lezen-ink); --wash: var(--stage-lezen-wash); }
[data-step="praten"] { --tint: var(--stage-praten); --tone: var(--stage-praten-ink); --wash: var(--stage-praten-wash); }

/* The phase marker, top right: the current step as a pill with its name, the others as numbered circles. */
.phases { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.phases li { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 33%, transparent); color: color-mix(in srgb, var(--tone) 60%, transparent); font-size: 12px; font-weight: 900; }
.phases li span { display: none; }
.phases li[aria-current] { width: auto; height: 32px; gap: 8px; padding: 0 14px 0 5px; border-radius: 16px; box-shadow: none; background: var(--tint); color: var(--tone); font-size: 14px; font-weight: 800; white-space: nowrap; }
.phases li[aria-current] span { display: inline; }
.phases li[aria-current] b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--white); font-size: 12px; font-weight: 900; }

/* Leesje's state: slow, soft loops; no spinners. The size follows --s (the mark inside inherits it). */
.indicator {
  --s: var(--mark-indicator);
  position: relative;
  flex-shrink: 0;
  width: calc(var(--s) * 1.75);
  height: calc(var(--s) * 1.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.indicator > .mark { --s: inherit; position: relative; margin-top: 0; transition: transform .8s ease; }
.indicator.big { --s: var(--mark-hero); }
.indicator .halo, .indicator .ring, .indicator .dots { display: none; position: absolute; }
.indicator .halo, .indicator .ring { left: 50%; top: 50%; border-radius: 50%; }
.indicator .halo { width: calc(var(--s) * 1.6); height: calc(var(--s) * 1.6); margin: calc(var(--s) * -.8); background: var(--red-tint); animation: halo 2.8s ease-in-out infinite; }
.indicator .ring { width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border: 2px solid var(--red); opacity: 0; animation: ripple 2.4s ease-out infinite; }
.indicator .ring.late { animation-delay: 1.2s; }
.indicator.speaking .ring { display: block; }  /* replaying what Leesje said */
.indicator .dots { bottom: 1px; left: 0; right: 0; justify-content: center; gap: calc(var(--s) * .1); }
.indicator .dots i { width: calc(var(--s) * .09); height: calc(var(--s) * .09); border-radius: 50%; background: var(--ink); animation: dot 1.8s ease-in-out infinite; }
.indicator .dots i:nth-child(2) { animation-delay: .4s; }
.indicator .dots i:nth-child(3) { animation-delay: .8s; }
.indicator[data-phase="listening"] .halo { display: block; }
.indicator:is([data-phase="intro"], [data-phase="asking"], [data-phase="responding"]) .ring { display: block; }
.indicator[data-phase="reading"] > .mark { animation: breath 3.2s ease-in-out infinite; }
.indicator[data-phase="thinking"] > .mark { transform: rotate(-10deg); }
.indicator[data-phase="thinking"] .dots { display: flex; }
@keyframes breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes halo { 0%, 100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes dot { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
/* Tap the ladybug to hear Leesje's last sentence again; a small badge shows when you can. */
.indicator-slot { position: relative; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; background: none; border-radius: 50%; }
.indicator-slot:disabled { cursor: default; }
.indicator-slot:not(:disabled)::after {
  content: "↻";
  position: absolute;
  right: 6%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(28,26,23,.1), 0 6px 12px -6px rgba(28,26,23,.3);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-soft);
}

/* The stage: the screens fill the window, without scrolling. */
.stage { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--wash); overflow: hidden; }
.screen-head { flex: 0 0 auto; min-height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 var(--gutter); }

/* The parent strip: small, white, quiet; never red, no capitals. */
.strip { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-4); min-height: var(--strip); padding: 6px var(--space-5); background: var(--white); border-top: 1.5px solid var(--strip-line); }
.strip-left { flex: 0 0 auto; display: flex; gap: 2px; }
.strip-center { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: var(--space-1); }
.strip-right { flex: 0 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.strip-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--screen);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.strip-input:focus { background: var(--white); border-color: var(--ink-soft); }
.status { font-size: 14px; font-weight: 700; color: var(--placeholder); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-right.status { max-width: 240px; }
.wish { width: 100%; max-width: 440px; }
.answer { display: flex; gap: 6px; align-items: center; width: 100%; max-width: 560px; }
.answer:not([hidden]) { animation: lsIn .5s ease; }

/* 01 Kiezen */
.kiezen .screen-head { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 48px 0 56px; }
.kiezen .phases { justify-self: end; }
.toggle { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.toggle button { height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--tone); font-size: 16px; font-weight: 800; white-space: nowrap; transition: background .25s; }
.toggle button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(28,26,23,.12); }

.kz { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 0 var(--space-9); }
/* 1. Leesje's line: only what Leesje says now; the whole conversation is in the sheet. */
.kz-line { flex: 0 0 auto; width: 100%; max-width: 860px; min-height: 132px; display: flex; align-items: center; gap: 20px; }
.kz-line .indicator-slot { width: 88px; }
.kz-line .indicator { --s: 50px; }
.kz-words { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kz-sentence { font-size: var(--text-line); font-weight: 800; letter-spacing: -.5px; line-height: 1.25; text-wrap: balance; }
.kz-sentence.waiting { color: var(--placeholder); }
.kz-memory { font-size: var(--text-sm); font-weight: 700; color: var(--placeholder); }
.kz-memory:empty { display: none; }
/* 2. The stage: the books themselves, as books on a table. */
.kz-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.books-row { display: flex; align-items: flex-end; justify-content: center; }
.book { flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; text-align: left; transition: transform .5s ease; }
.cover { position: relative; width: 100%; aspect-ratio: 150 / 190; border-radius: var(--radius-book); overflow: hidden; background: var(--grain), var(--sky); box-shadow: var(--shadow-book); }
.cover::after { content: ""; position: absolute; inset: 0; background: var(--shape-bg); clip-path: var(--shape); }
.cover::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, rgba(28,26,23,.12), rgba(28,26,23,0)); }  /* the spine */
.cover.picture { background: var(--white) center / cover no-repeat; }
.cover.picture::after { content: none; }
.cover .on-paper { position: absolute; z-index: 2; left: 12px; top: 10px; padding: 3px 10px; border-radius: 10px; background: var(--white); font-size: var(--text-xs); font-weight: 800; color: var(--ink-soft); }
.book-title { padding: 0 2px; font-size: var(--text-sm); font-weight: 800; line-height: 1.25; color: var(--ink-body); }
/* open: five books lying loose; tapping one means "zoiets als dit" */
.table { gap: 28px; }
.table .book { width: min(150px, 22vh, calc((100vw - 2 * var(--space-9) - 4 * 28px) / 5)); }
.table .book:nth-child(1) { transform: rotate(-2deg); }
.table .book:nth-child(2) { transform: rotate(1.5deg); }
.table .book:nth-child(3) { transform: rotate(-1deg); }
.table .book:nth-child(4) { transform: rotate(2deg); }
.table .book:nth-child(5) { transform: rotate(-1.5deg); }
.table .book:hover, .table .book:focus-visible { transform: translateY(-6px); }
/* clarify: two big pictures, an either/or question */
.choices { display: flex; gap: 40px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0; border: 0; background: none; animation: lsIn .5s ease; transition: transform .4s ease; }
.choice:hover, .choice:focus-visible { transform: translateY(-6px); }
.choice .cover { width: min(300px, 36vw, 42vh); aspect-ratio: 300 / 220; border-radius: var(--radius-paper); box-shadow: 0 1px 2px rgba(28,26,23,.08), 0 18px 30px -18px rgba(28,26,23,.4); }
.choice .cover::before { content: none; }
.choice-label { font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
/* thinking: blank books, while the suggestions are on their way */
.ghosts { gap: 36px; opacity: .5; }
.ghosts span { width: min(170px, 21vh, 24vw); aspect-ratio: 170 / 220; border-radius: var(--radius-book); background: color-mix(in srgb, var(--tone) 8%, transparent); }
.ghosts span:nth-child(2) { width: min(200px, 25vh, 28vw); }
/* slate: three books, the best one in the middle, focused */
.slate { gap: 44px; }
.slate .book { width: min(170px, 21vh, 24vw); opacity: .75; animation: lsIn .5s ease; transition: width .45s ease, opacity .45s ease; }
.slate .book .cover { box-shadow: 0 1px 2px rgba(28,26,23,.08), 0 12px 22px -14px rgba(28,26,23,.35); transition: box-shadow .45s ease; }
.slate .book .book-title { font-size: 16px; color: var(--ink); line-height: 1.2; transition: font-size .45s; }
.slate .book.focus { width: min(230px, 28vh, 30vw); opacity: 1; }
.slate .book.focus .cover { box-shadow: var(--shadow-book-focus); }
.slate .book.focus .book-title { font-size: 21px; }
/* 3. The actions: steer, read, or talk back. */
.kz-actions { flex: 0 0 auto; height: 148px; display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.kz-critiques { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.kz-critiques:empty { display: none; }
.critique { height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: color-mix(in srgb, var(--tone) 9%, transparent); font-size: 16px; font-weight: 800; color: var(--tone); white-space: nowrap; animation: lsIn .5s ease; }
.critique:hover { background: color-mix(in srgb, var(--tone) 15%, transparent); }
.kz-actions .primary { margin: 0 var(--space-3); animation: lsIn .5s ease; }

/* Wij lezen zelf, in Kiezen: what happens, and the start */
.zelf-intro { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: center; padding: 0 88px var(--space-5); overflow: auto; animation: lsIn .5s ease; }
.zelf-indicator { display: flex; justify-content: center; }
.zelf-indicator .indicator { --s: 96px; }
.zelf-text { display: flex; flex-direction: column; gap: 22px; }
.zelf-text h1 { margin: 0; font-size: clamp(28px, 2.5vw + 10px, 40px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; text-wrap: balance; }
.zelf-steps { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.zelf-steps li { display: flex; gap: 14px; align-items: baseline; font-size: var(--text-body); font-weight: 600; line-height: 1.5; color: var(--ink-body); counter-increment: step; }
.zelf-steps li::before { content: counter(step); flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--tone); font-size: 13px; font-weight: 900; transform: translateY(3px); }
.zelf-note { margin: 0; max-width: 480px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); }
.zelf-go { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 10px; }

/* 02 Lezen */
.progress { flex: 0 0 auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 48px; }
.progress .phases { grid-column: 3; justify-self: end; }
.track { grid-column: 2; position: relative; width: min(560px, calc(70px * var(--pages, 5)), 56vw); height: 30px; }
.track-line, .track-done { position: absolute; left: 0; top: 14px; height: 2px; border-radius: 1px; }
.track-line { right: 0; background: var(--line-soft); }
.track-done { width: var(--done, 0%); background: var(--red); transition: width .9s ease; }
.track-dots i { position: absolute; top: 10px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--line-soft); transition: background .6s; }
.track-dots i.read { background: var(--red); }
.track-bug { position: absolute; top: -2px; left: var(--done, 0%); margin-left: -13px; transition: left .9s ease; }
.track-bug .mark { --s: 26px; }
.spread {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;  /* nothing may spill over Leesje's row and the buttons */
  background: var(--white);
  border-radius: var(--radius-paper);
  box-shadow: var(--shadow-spread);
}
.illustration { display: flex; min-height: 0; padding: var(--space-5); }
.sky { flex: 1; display: flex; align-items: flex-end; padding: var(--space-4); border-radius: var(--radius-slot); background: var(--grain), var(--sky); }
.sky.picture { background: var(--white) center / contain no-repeat; transition: background-image .4s ease; }  /* a real illustration, whole */
.slot:empty { display: none; }
.slot { padding: var(--space-1) 10px; border-radius: 4px; background: var(--white); color: var(--ink-soft); font: var(--text-label) ui-monospace, Menlo, monospace; }
.story { position: relative; display: flex; align-items: safe center; min-width: 0; min-height: 0; overflow: hidden; padding: var(--space-7) 48px 52px 52px; }
.story p { margin: 0; font-family: var(--font-story); font-size: var(--text-story); line-height: 1.45; }
.story p.turn { animation: lsTurn .6s ease; }
.segment-dots { position: absolute; left: 52px; bottom: var(--space-5); display: flex; gap: 5px; }
.segment-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .4s; }
.segment-dots i.read { background: var(--placeholder); }
.gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  margin-left: -24px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(28,26,23,0) 0%, rgba(28,26,23,.05) 46%, rgba(28,26,23,.09) 50%, rgba(28,26,23,.03) 54%, rgba(28,26,23,0) 100%);
}
.leesje-row { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-4); min-height: 156px; padding: var(--space-3) 64px var(--space-3) 48px; }
.leesje-row .indicator-slot { width: 112px; height: 112px; }
.caption { flex: 1; min-width: 0; max-width: 700px; margin: 0; font-size: var(--text-caption); font-weight: 700; line-height: 1.4; }
.caption.fade-in { animation: lsIn .5s ease; }
.indicator-slot:not(:disabled) ~ .caption { cursor: pointer; }
.caption:empty { visibility: hidden; }
.leesje-row .next, .leesje-row .mic { margin-left: auto; animation: lsIn .5s ease; }

/* 03 Wij lezen zelf */
.coread-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 120px; text-align: center; overflow: auto; }
.coread-body .indicator { --s: 104px; }
.coread-line { margin: 0; max-width: var(--text-max); font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.2px; text-wrap: balance; }
.coread-line.question { font-family: var(--font-story); font-size: var(--text-question); font-weight: 400; }
.coread-line.fade-in { animation: lsIn .5s ease; }
/* Is the microphone listening? A dot (red while recording, hollow otherwise) and a low-key level meter. */
.mic-state { display: flex; align-items: center; gap: var(--space-3); height: 28px; }
.mic-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--placeholder); transition: background var(--lift); }
.coread-body[data-hearing="true"] .mic-dot { background: var(--red); box-shadow: none; }
.meter { display: flex; align-items: center; gap: 3px; height: 24px; }
.meter i { --level: 0; width: 3px; height: 22px; border-radius: 2px; background: var(--ink-soft); opacity: calc(.2 + var(--level) * .45); transform: scaleY(calc(.2 + var(--level) * .8)); transition: transform 90ms linear; }
.coread-body[data-mic="off"] .meter { opacity: .3; }
.coread .strip-center .text-button[aria-pressed="false"] { color: var(--placeholder); }

/* 04 Uit */
.end-head { justify-content: flex-end; padding: 0 48px; }
.end-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--gutter) var(--space-5); text-align: center; overflow: auto; }
.uit { margin: 10px 0 0; font-size: var(--text-hero); font-weight: 900; letter-spacing: -4px; line-height: 1; color: var(--red); }
.end-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 clamp(16px, 5vh, 48px); }
.end-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.feel-q { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.feel-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.feel-options button { height: 56px; padding: 0 24px; border: 0; border-radius: 28px; background: var(--white); color: var(--ink); font-size: 17px; font-weight: 800; transition: background .25s, color .25s; }
.feel-options button[aria-pressed="true"] { background: var(--tone); color: var(--white); }
.end-body .primary { margin-top: clamp(20px, 5vh, 44px); }

/* Voor de grote mens: one panel from the right, with content per screen */
.sheet-backdrop { position: absolute; inset: 0; z-index: 6; background: rgba(28,26,23,.14); }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: min(var(--sheet-width), 100%); display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-sheet); animation: lsSheet .35s ease; }
.sheet-head { flex: 0 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1.5px solid var(--line-faint); }
.sheet-close { height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--screen); font-size: 14px; font-weight: 800; color: var(--ink-body); }
.sheet-body { flex: 1; min-height: 0; overflow: auto; padding: 28px 32px 36px; }
.sheet-part { display: flex; flex-direction: column; gap: 32px; }
.sheet section { display: flex; flex-direction: column; gap: 12px; }
.sheet h3 { margin: 0; font-size: 17px; font-weight: 900; }
.sheet h3.big { margin-bottom: 2px; font-size: 22px; letter-spacing: -.3px; }
.why { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 18px; gap: var(--space-3); align-items: baseline; padding: var(--space-2) 0; border-bottom: 1.5px solid var(--line-row); }
.why-key { font-size: var(--text-xs); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--placeholder); }
.why-value { font-size: var(--text-sm); font-weight: 700; line-height: 1.4; }
.why-fits { font-size: 14px; font-weight: 900; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: flex; align-items: center; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--screen); font-size: 14px; font-weight: 700; color: var(--ink-soft); }
button.chip { gap: var(--space-2); padding-right: 6px; background: var(--ink); color: var(--white); font-weight: 800; }
button.chip::after { content: "✕"; padding: 0 6px 0 2px; font-size: 11px; opacity: .6; }
.sheet-input { width: 100%; height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 24px; background: var(--screen); font-size: 16px; font-weight: 700; color: var(--ink); }
.sheet-input:focus { background: var(--white); border-color: var(--ink-soft); }
.ages { display: flex; align-items: center; gap: 6px; }
.ages > span:first-child { display: flex; gap: 6px; }
.ages .muted { margin-left: 6px; }
.age { width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; font-size: 18px; font-weight: 800; }
.age:hover { border-color: var(--ink-soft); }
.age[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.switch { display: flex; align-items: center; gap: var(--space-3); padding: 0; border: 0; background: none; font-size: var(--text-sm); font-weight: 600; color: var(--ink-body); text-align: left; }
.switch-track { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 13px; background: var(--line-soft); transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .2s; }
.switch[aria-checked="true"] .switch-track { background: var(--ink); }
.switch[aria-checked="true"] .switch-track::after { left: 21px; }
.setting { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink-body); }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--screen); }
.segmented button { height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(28,26,23,.12); }
.segmented button:disabled { cursor: default; opacity: .6; }
.sheet-link { align-self: flex-start; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--white); font-size: var(--text-sm); font-weight: 800; color: var(--ink); text-decoration: none; }
.sheet-link:hover { border-color: var(--ink-soft); }
.transcript { display: flex; flex-direction: column; gap: var(--space-2); }
.transcript div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.transcript .who { font-weight: 800; color: var(--placeholder); }
.transcript .said { font-weight: 600; color: var(--ink-body); }
.answers { display: flex; flex-direction: column; gap: 14px; }
.answer-item { display: flex; flex-direction: column; gap: 3px; padding-bottom: var(--space-3); border-bottom: 1.5px solid var(--line-row); }
.answer-item.asked { opacity: .55; }
.answer-q, .answer-b { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.answer-kind { font-size: var(--text-xs); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--placeholder); }
.answer-a { font-family: var(--font-story); font-size: 19px; line-height: 1.35; }
.answer-b span { font-family: var(--font-story); font-size: var(--text-md); color: var(--ink); }
.answer-item .badge { align-self: flex-start; margin-top: 2px; padding: 2px 10px; border-radius: 12px; background: var(--screen); font-size: var(--text-xs); font-weight: 800; color: var(--ink-soft); }
.talk-ideas { display: flex; flex-direction: column; gap: var(--space-3); }
.talk-ideas div { display: flex; flex-direction: column; gap: 2px; }
.talk-ideas .idea { font-size: 16px; font-weight: 700; line-height: 1.4; }
.empty { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }

/* Over Leesje: a designed reading page for the grown-up. */
html.page body { background: var(--about-bg); }
.about { max-width: 1080px; margin: 0 auto; padding: 96px 40px 0; }
.about-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.about-head .brand .mark { --s: 34px; }
.about-head .wordmark { font-size: 30px; }
.back { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 22px; font-size: var(--text-sm); font-weight: 800; color: var(--ink-soft); text-decoration: none; }
.back:hover { background: var(--line-row); color: var(--ink); }
.about a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.about a:hover { color: var(--red); }
.about b, .about strong { font-weight: 800; color: var(--ink); }
.about section { border-top: 1.5px solid var(--strip-line); padding: 56px 0; }
.about .hero { border-top: 0; padding: 88px 0 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; }
.hero-title { display: flex; flex-direction: column; gap: 20px; }
.about h1 { margin: 0; font-size: clamp(48px, 6vw, 72px); font-weight: 900; letter-spacing: -2.4px; line-height: .98; }
.about .lead { margin: 0; font-size: var(--text-xl); line-height: 1.55; font-weight: 600; color: var(--ink); }
.about h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.6px; line-height: 1.15; }
.about h3 { margin: 0; font-size: var(--text-xl); font-weight: 900; }
.about p { margin: 0; font-size: var(--text-body); line-height: 1.7; font-weight: 500; color: var(--ink-body); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; }
.flow { display: flex; flex-direction: column; gap: var(--space-4); }
.about .ref { margin-left: 2px; font-size: var(--text-xs); font-weight: 800; vertical-align: super; line-height: 0; text-decoration: none; color: var(--ink-soft); }
.circle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 44px; }
.circle a { display: flex; flex-direction: column; gap: var(--space-3); padding: 24px 26px 28px; border-radius: var(--radius-card); background: var(--tint); color: var(--ink); text-decoration: none; transition: transform var(--lift); }
.circle a:hover { color: var(--ink); transform: translateY(-4px); }
.circle-name { display: flex; align-items: center; gap: 10px; font-size: var(--text-xl); font-weight: 900; color: var(--tone); }
.number { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--tone); font-size: 14px; font-weight: 900; }
.circle-what { font-size: 16px; line-height: 1.5; font-weight: 600; }
.circle-back { display: flex; align-items: center; gap: 14px; margin: 18px 0 0 26px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-soft); }
.stage-section { display: flex; flex-direction: column; gap: var(--space-6); }
.band { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; border-radius: var(--radius-card); background: var(--tint); scroll-margin-top: var(--space-5); }
.band-title { display: flex; align-items: center; gap: var(--space-3); }
.band-title .number { width: 40px; height: 40px; font-size: 18px; }
.band h2 { color: var(--tone); }
.band p { font-size: var(--text-lg); line-height: 1.55; font-weight: 700; color: var(--ink); }
.stage-body { max-width: 720px; display: flex; flex-direction: column; gap: 18px; padding: 0 32px; }
.bullet { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; }
.bullet::before { content: ""; width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; background: var(--tone); }
.block { display: flex; flex-direction: column; gap: var(--space-4); padding: 0 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min, 280px)), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); }
.card-title { font-size: 19px; font-weight: 800; }
.card-text { font-size: var(--text-sm); line-height: 1.6; font-weight: 600; color: var(--ink-body); }
.peer { --card-min: 210px; }
.peer .card { gap: 6px; padding: 22px 22px 24px; }
.peer-letter { font-size: 44px; font-weight: 900; line-height: 1; color: var(--tone); }
.peer-name { margin-top: var(--space-2); font-size: var(--text-body); font-weight: 800; }
.peer-name span { font-weight: 600; color: var(--placeholder); }
.dialogue { max-width: 720px; margin: 0 32px; padding: 28px 32px; gap: 14px; }
.dialogue-lines { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px 16px; align-items: baseline; font-family: var(--font-story); font-size: 21px; line-height: 1.45; }
.dialogue-lines .who { font-family: var(--font-ui); font-size: var(--text-label); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.dialogue-lines .who.leesje { color: var(--red); }
.crowd { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crowd span { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--tint); font-size: var(--text-sm); font-weight: 700; }
.crowd b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--tone); font-size: var(--text-sm); font-weight: 900; }
.definitions { max-width: 820px; margin: 0; padding: 0 32px; }
.definitions div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1.5px solid var(--line-faint); }
.definitions dt { font-size: 16px; font-weight: 800; }
.definitions dd { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--ink-body); }
.pull { font-size: 26px !important; line-height: 1.4 !important; font-weight: 800 !important; letter-spacing: -.3px; color: var(--ink) !important; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-7); }
.columns > div { display: flex; flex-direction: column; gap: 14px; }
.columns p { font-size: 16px; line-height: 1.65; font-weight: 600; }
.columns .card p { font-size: var(--text-sm); }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--space-3) var(--space-7); margin: 20px 0 0; padding: 0; list-style: none; counter-reset: source; }
.sources li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-2); font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--ink-soft); counter-increment: source; scroll-margin-top: var(--space-5); overflow-wrap: anywhere; }
.sources li::before { content: counter(source); font-weight: 800; color: var(--ink); }
.sources li:target { background: var(--red-tint); border-radius: 4px; }
.about-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: var(--space-7) 0 96px; border-top: 1.5px solid var(--strip-line); }
.about-foot .brand .mark { --s: 20px; }
.about-foot .brand span:last-child { font-size: var(--text-sm); font-weight: 700; color: var(--ink-soft); }
.about-foot .primary { height: 72px; padding: 0 36px; font-size: 21px; box-shadow: none; color: var(--white); }
.about-foot .primary:hover { color: var(--white); }

/* Smaller landscape screens (a laptop, a small tablet) */
@media (max-width: 1100px) {
  .kiezen .screen-head { padding: 0 var(--gutter); }
  .kz { padding: 0 var(--gutter); }
  .zelf-intro { padding: 0 var(--gutter) var(--space-5); gap: var(--space-6); }
  .coread-body { padding: 0 var(--gutter); }
  .leesje-row { padding: var(--space-3) var(--gutter); }
  .progress { padding: 0 var(--gutter); }
}

/* Portrait (tablet upright, phone): the book stacks, picture above text; side-by-side grids become one column. */
@media (orientation: portrait), (max-width: 760px) {
  .spread { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .gutter { display: none; }
  .illustration { padding: var(--space-4) var(--space-4) 0; }
  .story { padding: var(--space-5) var(--space-5) var(--space-6); }
  .segment-dots { left: var(--space-5); bottom: var(--space-3); }
  .zelf-intro { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .zelf-indicator { display: none; }
  .table .book { width: min(150px, 17vh, calc((100vw - 2 * var(--gutter) - 4 * 16px) / 5)); }
  .table { gap: 16px; }
  .slate { gap: var(--space-5); }
  .slate .book { width: min(170px, 18vh, 25vw); }
  .slate .book.focus { width: min(230px, 24vh, 34vw); }
  .choices { gap: var(--space-5); }
  .choice .cover { width: min(300px, 40vw, 30vh); }
}

/* Phone: smaller tokens; the Kiezen header gets a second row for the toggle, and the strip wraps. */
@media (max-width: 720px) {
  :root {
    --head: 64px;
    --mark-indicator: 40px;
    --target-child: 76px;
    --mic-big: 76px;
    --mark-header: 24px;
    --ring-cta: 0 0 0 7px var(--red-tint);
    --text-story: 21px;
  }
  .kiezen .screen-head { grid-template-columns: 1fr auto; row-gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-2); }
  .kiezen .toggle { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }
  .toggle button { flex: 1; height: 40px; padding: 0 var(--space-3); font-size: var(--text-sm); }
  .phases li[aria-current] span { display: none; }
  .phases li[aria-current] { padding: 0 5px; }
  .wordmark { font-size: var(--text-xl); }
  .kz-line { min-height: 96px; gap: var(--space-2); }
  .kz-line .indicator-slot { width: 64px; }
  .kz-line .indicator { --s: 36px; }
  .kz-actions { height: auto; min-height: 112px; flex-wrap: wrap; padding: var(--space-3) 0; }
  .critique { height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
  .primary { height: 64px; padding: 0 var(--space-6); font-size: var(--text-lg); }
  .table .book:nth-child(n+4) { display: none; }  /* three loose books are enough on a phone */
  .slate { gap: var(--space-3); }
  .slate .book { width: min(150px, 18vh, 24vw); }
  .slate .book.focus { width: min(200px, 24vh, 36vw); }
  .table .book { width: min(110px, 26vw, 17vh); }
  .book-title { font-size: 13px; }
  .slate .book .book-title { font-size: 13px; }
  .slate .book.focus .book-title { font-size: 16px; }
  .choice-label { font-size: var(--text-md); }
  .zelf-text h1 { font-size: 26px; }
  .zelf-steps li { font-size: 16px; }
  .progress { grid-template-columns: minmax(0, 1fr) auto; height: 56px; gap: var(--space-3); }
  .track { grid-column: 1; width: min(100%, calc(70px * var(--pages, 5))); justify-self: center; }
  .progress .phases { grid-column: 2; }
  .leesje-row { min-height: 0; gap: var(--space-3); }
  .leesje-row .indicator-slot { width: 72px; height: 72px; }
  .coread-body .indicator { --s: 72px; }
  .coread-line { font-size: var(--text-lg); }
  .uit { letter-spacing: -2px; }
  .feel-q { font-size: var(--text-xl); }
  .feel-options button { height: 48px; padding: 0 var(--space-4); font-size: var(--text-sm); }
  .strip { flex-wrap: wrap; justify-content: space-between; padding: 6px var(--space-2); gap: var(--space-1); }
  .strip-center { order: -1; flex-basis: 100%; flex-wrap: wrap; }
  .strip:has(.strip-center:empty) .strip-center { display: none; }
  .reading .strip-right { display: none; }
  .sheet-head, .sheet-body { padding-left: var(--space-5); padding-right: var(--space-5); }
  .about { padding: var(--space-8) var(--space-5) 0; }
  .stage-body, .block, .definitions { padding: 0; }
  .dialogue { margin: 0; padding: var(--space-5); }
  .dialogue-lines { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 19px; }
  .dialogue-lines .who { margin-top: var(--space-3); }
  .definitions div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .band { padding: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
