/* punk-read.css — the Reading mode (READER.md): the library's rows on index.html (.rd-*), and read.html, Chasen's
   reader (the engine's own ids and classes: .al-*, .af-*, .w) dressed on THUD CORE's tokens, so each skin's palette,
   its light (Dark, Milk) and Field mode's veil are the reader's without a rule of their own here.
   Chasen's bones, kept: one column; the line being read stands in the light (a lit plate, a hairline, a mark in the
   margin) and nothing else is lit; the accent is the dictionary's, a dotted mark where it offers two; the Ukrainian
   in the learner's own reading face (--quiz-font, punk-read.js), never a skin's display face.
   NOTHING CELEBRATES a line's end or a story's end: no animation is keyed to either. */

/* ── the switch heading Learn holds three ─────────────────────────────────────────── */
.modes--3 .modes__m { padding: 0 16px; }
@media (max-width: 380px) { .modes--3 .modes__m { padding: 0 12px; } }

/* ── the library (index.html #/reading, #/shelf/<k>) ──────────────────────────────── */
.rd-lede { margin-bottom: 14px; }
.rd-h1 { margin: 4px 0 6px; }
.rd-bands { margin: 4px 0 8px; }
.rd-lede + .rd-bands { margin: -6px 0 14px; }
/* the accent as an image, as the Grammar's part chips: Low power and Field mode paint every .glass's colour opaque */
.rd-bands .chip[aria-pressed="true"] { color: var(--on-acc); background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.rd-fam { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rd-fam__uk { font-weight: 400; font-size: .9em; }
.rd-row .row__sub [lang="uk"], .rd-fam__uk [lang="uk"] { font-family: var(--quiz-font, 'Tempora', Georgia, serif); }
.rd-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; vertical-align: .12em; color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-2); }
/* the Kobzar's rows (punk-reading.js KOBZAR): the learner's level said in the row's own ink, weighted, never a colour */
.rd-yours { font-weight: 700; }
.rd-new--read { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }   /* a shelf mostly unread marks the read, quietly (THUD ENG) */
.rd-count { margin: 6px 4px 8px; }
.rd-shelf-go { margin: 4px 0 14px; }
.rd-wait { margin: 0 2px 12px; }

/* the shelves: rails of painted covers, the title set on the picture (Mobbin: Matter's Discover, Insight Timer's library) */
.rd-rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter, 16px)) 18px; padding: 4px var(--gutter, 16px) 10px; scroll-padding: 0 var(--gutter, 16px); }
.rd-rail::-webkit-scrollbar { display: none; }
.rd-rail > div { flex: none; scroll-snap-align: start; }
/* a card is its shape until its words need more: then it grows to them (320 px, or the text at 200%: AUDIT unit 55),
   its picture still under all of it. Clip, not hidden: a scroll box keeps its aspect-ratio and cut the foot short */
.rd-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 156px; aspect-ratio: 3 / 4; border-radius: 18px;
  overflow: hidden; overflow: clip; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(var(--acc-rgb), .32), rgba(var(--ground-rgb), .9)); box-shadow: var(--cast), inset 0 0 0 1px var(--rim-soft, rgba(255,255,255,.1));
  transition: transform .25s var(--ease-out, ease); }
.rd-card:hover { transform: translateY(-2px); }
.rd-card:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 3px; }
.rd-card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-card__mark { position: absolute; inset: 0 0 34%; display: flex; align-items: center; justify-content: center; font: 700 3.2rem/1 var(--display, var(--face));
  color: rgba(255, 255, 255, .5); }
.rd-card__foot { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 34px 12px 11px; overflow-wrap: break-word;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .66) 22%, rgba(0, 0, 0, .86) 52%, rgba(0, 0, 0, .9)); }   /* priced: verify_reading_art.py */
.rd-card__title { font: 700 .98rem/1.2 var(--display, var(--face)); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.rd-card__uk { font: 400 .8rem/1.3 var(--quiz-font, 'Tempora', Georgia, serif); color: rgba(255, 255, 255, .84); }
.rd-card__n { margin-top: 3px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .74); }
@media (min-width: 900px) { .rd-card { width: 184px; } }
.rd-banner { position: relative; height: 180px; margin: 4px 0 10px; border-radius: 22px; overflow: hidden; box-shadow: var(--cast); }
.rd-banner__art { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.rd-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(var(--ground-rgb), .55)); }
@media (min-width: 900px) { .rd-banner { height: 240px; } }


/* ── the library, re-organised (RUN6.md R2): carry on, today, Journeys, short reads, the shelves ──────────────── */
.rd-sec { margin-top: 26px; }
.rd-sub { margin: -4px 2px 10px; max-width: 34rem; }
.rd-fam--sub { margin: 14px 2px 8px; font: 650 .82rem/1.3 var(--face); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.rd-fam--sub .rd-fam__uk { text-transform: none; letter-spacing: 0; }
/* carry on: a slim row, its cover small, a hairline of the story read so far under it (where you are, not a score) */
.rd-resume { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px 10px; margin-bottom: 12px; border-radius: 18px;
  text-decoration: none; color: var(--ink); overflow: hidden; }
.rd-resume__art { flex: none; width: 46px; aspect-ratio: 3 / 4; border-radius: 9px; object-fit: cover; box-shadow: var(--cast); }
.rd-resume__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd-resume__title { font-weight: 700; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-resume__uk { font-family: var(--quiz-font, 'Tempora', Georgia, serif); font-size: .9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-resume__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--on-btn); background: var(--btn-fill);
  box-shadow: inset 0 1px 0 var(--btn-rim), 0 6px 16px -8px var(--glow); }
.rd-resume__go .i { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 2px; }
.rd-resume__bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--line); }
.rd-resume__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--acc-2); }
/* today: the day's story on the skin's reading room, the words on the ground drawn over the picture */
.rd-today { position: relative; display: block; margin-bottom: 14px; border-radius: 26px; overflow: hidden; color: var(--ink);
  background: linear-gradient(160deg, rgba(var(--acc-rgb), .16), rgba(var(--ground-rgb), .92)); box-shadow: var(--cast), inset 0 0 0 1px var(--rim-soft, rgba(255,255,255,.1)); }
.rd-today__room { position: absolute; inset: 0; background: var(--rd-room) center 30% / cover no-repeat; }
.rd-today__room::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), .04) 0%, rgba(var(--ground-rgb), .66) 30%, rgba(var(--ground-rgb), .9) 39%, rgba(var(--ground-rgb), .96)); }   /* priced: verify_reading_art.py */
.rd-today__body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 18px; }
.rd-today--room .rd-today__body { padding-top: 132px; }
.rd-today__title { font: 750 1.6rem/1.15 var(--display, var(--face)); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.rd-today__uk { font-family: var(--quiz-font, 'Tempora', Georgia, serif); font-size: 1.12rem; line-height: 1.35; color: var(--ink-2); }
.rd-today__meta { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.rd-today__ways { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 12px; }
.rd-today__ways .btn--primary .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.rd-today__any { align-self: center; }
@media (min-width: 900px) { .rd-today__ways { flex-direction: row; align-items: center; gap: 8px; } .rd-today__ways .btn--primary { flex: none; padding: 0 26px; } }
@media (min-width: 900px) {
  .rd-today { min-height: 300px; display: flex; align-items: flex-end; }
  .rd-today__room { background-position: center; }
  .rd-today__room::after { background: linear-gradient(90deg, rgba(var(--ground-rgb), .96) 0%, rgba(var(--ground-rgb), .9) 44%, rgba(var(--ground-rgb), .2) 74%, rgba(var(--ground-rgb), 0)); }
  .rd-today--room .rd-today__body { padding: 30px 30px 26px; max-width: 30rem; }
  .rd-today__title { font-size: 2rem; }
}
/* Journeys: tall painted cards, a line of what is on the route */
.rd-jcard { width: 208px; }
@media (min-width: 900px) { .rd-jcard { width: 236px; } }
.rd-jcard .rd-card__foot { padding-top: 60px; gap: 3px; }
.rd-jcard .rd-card__title { font-size: 1.12rem; }
.rd-jcard__next { color: #fff; font-weight: 650; }
/* #/journeys: every Journey of a kind in view at once, a grid, two across on a phone */
.rd-grid--j { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 22px; }
@media (min-width: 640px) { .rd-grid--j { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } }
.rd-grid--j .rd-jcard { width: auto; }
.rd-rail--small .rd-jcard { width: 150px; }
.rd-rail--small .rd-jcard__line { display: none; }
.rd-rail--small .rd-jcard .rd-card__foot { padding-top: 40px; }
.rd-jcard__line { font-size: .78rem; line-height: 1.35; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* short reads: a row with its shelf's cover small */
.rd-row__art { flex: none; width: 38px; aspect-ratio: 3 / 4; margin-right: 12px; border-radius: 7px; object-fit: cover; }
/* a Journey's route: one line down the stops, a dot a stop, lit where read, ringed where to go on; the level named where it changes */
.rd-banner--j { height: 300px; }
.rd-banner--j .rd-banner__art { object-position: center 62%; }
@media (min-width: 900px) {
  .rd-jpage { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: start; }
  .rd-jside { position: sticky; top: 84px; }
  .rd-banner--j { height: auto; aspect-ratio: 3 / 4; margin-top: 8px; }
  .rd-banner--j .rd-banner__art { object-position: center; }
  .rd-jmain { margin-top: 0; }
}
.rd-route { list-style: none; margin: 4px 0 24px; padding: 0; position: relative; }
.rd-route::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--acc-2), var(--line) 70%); opacity: .7; }
.rd-route__lv { position: relative; margin: 14px 0 6px 44px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.rd-route__lv--you { color: var(--acc-ink); }
.rd-stop__a { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  transition: background-color .2s ease; }
.rd-stop__a:hover { background: var(--sel-wash); }
.rd-stop__a:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.rd-stop__dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px var(--ink-3); }
.rd-stop--read .rd-stop__dot { background: var(--acc-2); box-shadow: inset 0 0 0 2px var(--acc-2), 0 0 10px -2px var(--glow); }
.rd-stop--here .rd-stop__dot { box-shadow: inset 0 0 0 2px var(--acc-2), 0 0 0 5px rgba(var(--acc-rgb), .22); }
.rd-stop--here .rd-stop__a { background: var(--sel-wash); box-shadow: inset 0 0 0 1px var(--line); }
.rd-stop__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd-stop__tag { align-self: flex-start; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-acc); background: var(--acc-2); }
.rd-stop__title { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.rd-stop__uk { font-family: var(--quiz-font, 'Tempora', Georgia, serif); font-size: .92rem; color: var(--ink-2); }
.rd-stop__meta { font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--ink-3); }
.rd-stop__note { margin: 2px 0 3px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
/* a novella's route: each dot its chapter's number, on the same line down the stops */
.rd-route--series .rd-stop__a { padding-left: 10px; }
.rd-route--series .rd-stop__dot { width: 24px; height: 24px; display: grid; place-items: center; font-size: .68rem; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rd-route--series .rd-stop--read .rd-stop__dot { color: var(--on-acc); }
/* a Journey's way in (and «Next stop» after a story): what to do, and the stop's name under it on one line, cut short,
   so a long chapter's name never spills out of the capsule in a skin's capitals */
.rd-go { min-height: 62px; padding: 7px 22px; }
.rd-go__w { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rd-go__k { line-height: 1.1; }
.rd-go__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--face); font-size: calc(13.5px + 13.5 * var(--tz, 0px));
  font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; opacity: .84; }
/* a Journey's introduction under its line (RUN6.md R5b) */
.rd-jline { margin-bottom: 6px; font-weight: 650; color: var(--ink); }
.rd-intro { margin: 0 0 14px; max-width: 38rem; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
/* «All 17» at the head of the library's Journeys (to #/journeys) */
.rd-sec--all { display: flex; align-items: baseline; gap: 10px; }
/* the decisions under way (punk-reading.js library(), slim()): the way to any story under them, quiet */
.rd-any { margin: -4px 0 6px; display: flex; justify-content: center; }
/* a desk sets them side by side, the play key beside each name, not a screen's width from it */
@media (min-width: 900px) {
  .rd-decide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
  .rd-decide .rd-resume { margin-bottom: 0; }
  .rd-any { margin-top: 0; }
}
/* the kinds of Journey, a tap each to its grid (punk-reading.js journeysPage()) */
.rd-kinds { margin: 4px calc(-1 * var(--gutter)) 2px; }
.rd-kinds__n { margin-left: 7px; font-weight: 600; color: var(--ink-3); }
.rd-sec:focus { outline: none; }
.rd-sec:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 4px; border-radius: 6px; }
.rd-all { margin: -12px -12px -12px auto; padding: 12px; font-size: .82rem; font-weight: 650; letter-spacing: .02em; text-decoration: none; color: var(--acc-ink); }
.rd-all:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; border-radius: 6px; }
.rd-stop--read .rd-stop__title { color: var(--ink-2); }

/* ── read.html: the page ─────────────────────────────────────────────────────────── */
.rd-page { background: var(--ground); color: var(--ink); font-family: var(--face); }
html:has(> body.rd-page)::before { display: none; }   /* a story is read on the plain ground: no field here, nor its still twin (frap.css THE FIELD) */
.rd-world { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; transition: opacity .7s ease; }
.rd-world--wait { opacity: 0; transition: none; }
.rd-world::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), .22), rgba(var(--ground-rgb), .5) 40%, rgba(var(--ground-rgb), .78)); }
/* the room shows above the paper on a phone and around it on a desk; the paper itself is near-opaque (the ink's bar) */
.al-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100vh; height: 100dvh; box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.al-hero { flex: none; }
.af-bar { display: flex; align-items: center; gap: 8px; max-width: 46rem; margin: 0 auto 10px; container-type: inline-size; }
/* a bar too narrow for the back's name (320 px, or the text at 200%: AUDIT unit 55) shows the chevron alone, not a
   letter and an ellipsis: the name stays its accessible name, and a Journey's is whole on its chip below */
@container (max-width: 19.5em) { .al-hero #al-back .af-lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.al-hero #al-back { margin-right: auto; min-width: 0; flex: 0 1 auto; }
.af-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.af-ic { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); box-sizing: border-box; }
.af-ic svg { width: 20px; height: 20px; flex: none; pointer-events: none; position: relative; z-index: 1; }
.af-ic > span, .af-ic > output { position: relative; z-index: 1; }
.af-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
/* the reading order is a choice: its lozenge says so with a caret, as a select does */
.al-order .al-caret { width: 12px; height: 12px; margin: 0 -2px 0 -2px; color: var(--ink-2); }
.af-n { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink-2); }
.af-icsel { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; font-size: calc(16px + 16 * var(--tz, 0px));
  overflow: hidden; }   /* iOS lays a fresh select out at its longest option: 165px in an 81px pill made read.html 450 wide on a 428 phone, zoomed out (2026-10-20) */
.af-ic:focus-within, .af-ic:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }

/* a pane: one column of glass, centred where the window is wider */
.rd-pane { width: 100%; max-width: 46rem; margin: 0 auto; box-sizing: border-box; border-radius: 26px 26px 0 0; }
.rd-pane[hidden] { display: none !important; }
.al-boot { padding: 28px 22px; border-radius: 26px; color: var(--ink-2); }
.al-ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* two ways side by side while both labels fit, one above the other when not (Steampunk's small capitals are wide):
   a button is never narrower than its label */
.al-ways .btn { flex: 1 1 0; min-width: fit-content; }
.al-stage, .al-after { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: color-mix(in srgb, var(--ground) 86%, transparent); }
.al-stage > *, .al-after > * { position: relative; z-index: 1; }

/* the story's head: its title, the Ukrainian under the English; where you are; the level dealt */
.al-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px 10px; border-bottom: 1px solid var(--line); }
/* the two titles stacked, the Ukrainian over the English (ROUNDS.md R4). thud.css's own `.who` (a row that is a button:
   a flex row, its padding, a pointer) had reached this one by its name and set the titles in two cramped columns */
.al-head .who { flex: 1 1 auto; min-width: 0; display: block; width: auto; padding: 0; cursor: auto; }
.al-head .t { display: block; margin: 0; font-family: var(--quiz-font); font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.al-head .te { display: block; margin: 3px 0 0; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.al-head .te .al-fresh { margin-left: 8px; vertical-align: .08em; }
.al-at { flex: none; display: flex; align-items: center; gap: 7px; padding-top: 6px; white-space: nowrap; font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.al-fresh, .al-band { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: .64rem; line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.al-fresh { color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-2); }

/* the paper: a sentence is a block, the Ukrainian large and its English under it */
#al-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 22px 22px; -webkit-overflow-scrolling: touch; }
/* THE PAPER'S FOOT, FADED (2026-11-25, the owner: «Hoping for a premium looking aesthetic and feel»): a line went under the
   controls cut through its letters; it fades into them now, in the padding's own height, so the last line read to its end is whole */
#al-text { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); }
.al-block { position: relative; margin: 0 -10px 8px; padding: 6px 10px 8px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .2s ease, box-shadow .2s ease; }
.al-block.here { background: var(--sel-wash); box-shadow: inset 0 0 0 1px var(--line); }
.al-block.here::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--acc-2); }
.al-line { margin: 0; font-family: var(--quiz-font); font-weight: 400; font-size: calc(1.42rem * var(--al-scale, 1)); line-height: 1.72; color: var(--ink); text-wrap: pretty; }
.al-en { margin: 2px 0 0; width: fit-content; max-width: 100%; font-size: calc(.95rem * var(--al-scale, 1)); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.al-block.done .al-line, .al-block.done .al-en { color: var(--ink-3); }
.al-block.done .al-line .w { color: inherit; }
.al-block.done .al-line .w.on { color: var(--ink); }
.al-block.en-now .al-en { color: var(--ink); background: var(--sel-wash); border-radius: 4px; }
.w { border-radius: 4px; padding: 0 .05em; border-bottom: 2px solid transparent; cursor: pointer; }
.w.on { background: rgba(var(--acc-rgb), .22); border-bottom-color: var(--acc-2); color: var(--ink); }
.w.said { color: var(--ink-2); }
.w.unsure { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.w:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }

/* the reader's foot: five discs, their names under them */
.al-foot { flex: none; padding: 14px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.al-bar { display: flex; gap: calc(12px + 12 * var(--tz, 0px)); align-items: center; justify-content: center; margin: 0 0 26px; }
.af-disc { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(52px + 52 * var(--tz, 0px)); height: calc(52px + 52 * var(--tz, 0px)); border-radius: 999px; color: var(--ink); background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .12s ease; }
.af-disc svg { width: calc(21px + 21 * var(--tz, 0px)); height: calc(21px + 21 * var(--tz, 0px)); pointer-events: none; }
.af-big { width: calc(68px + 68 * var(--tz, 0px)); height: calc(68px + 68 * var(--tz, 0px)); color: var(--on-acc); background: var(--acc-2); box-shadow: 0 8px 22px -10px var(--glow); }
.af-big svg { width: calc(26px + 26 * var(--tz, 0px)); height: calc(26px + 26 * var(--tz, 0px)); }   /* the keys grow with the captions under them on a desk (--tz, frap.css THE MACBOOK): grown alone, «Back a line» ran into «Read to me» */
.af-cap { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; font-size: .68rem; font-weight: 600;
  white-space: nowrap; color: var(--ink-3); pointer-events: none; }
.al-bar .af-disc:not(.af-big) .af-cap { margin-top: 13px; }
.af-disc:active { transform: translateY(1px); }
.af-disc:focus-visible, .af-disc:focus-within { outline: 2px solid var(--acc-ink); outline-offset: 3px; }
.af-disc[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--acc-2); }
.af-disc[aria-pressed="true"] svg { color: var(--acc-ink); }
.al-speed .af-n { font-size: .78rem; color: var(--ink); }
/* the bar is the line's own (ROUNDS.md R4): back a line, read to me, next line, the speed and the loop beside them.
   «Again» and «Another» keep their keys (T, N) and stand where a story ends, not among the keys that move a line */
.al-quiet { display: inline-flex; }
.al-bar #al-again, .al-bar #al-next { display: none; }
.al-silent .al-speed, .al-silent #al-again, .al-silent #al-play, .al-silent #al-repeat { display: none; }
.al-kq { display: none; }
.al-silent .al-kv { display: none; }
.al-silent .al-kq { display: inline; }
.al-status { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ink-2); text-align: center; }
.al-status:empty { display: none; }
.al-say { margin: 2px 0 0; font-size: .78rem; color: var(--ink-3); text-align: center; min-height: 1.15em; }
.al-keys, .al-note { margin: 4px 0 0; font-size: .74rem; color: var(--ink-3); text-align: center; }
.al-keys kbd { font: inherit; box-shadow: inset 0 0 0 1px var(--line); border-radius: 4px; padding: 0 4px; }
@media (pointer: coarse) { .al-keys { display: none; } }

/* «Worth repeating»: what the learner did, never how it went */
.al-after > header { padding: 22px 22px 6px; }
.al-h { font-size: 1.3rem; font-weight: 700; }
.al-of { margin-top: 6px; color: var(--ink-2); }
.al-of .ot { font-family: var(--quiz-font); font-size: 1.05rem; color: var(--ink); }
#al-after-lead { margin-top: 6px; color: var(--ink-2); font-size: .92rem; }
.al-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 6px 14px; }
.al-list > li { border-bottom: 1px solid var(--line); }
.al-jump { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px; text-align: left; border-radius: 12px; }
.al-jump:hover { background: rgba(var(--tint), .06); }
.al-jump:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: -2px; }
.al-list .word { font-family: var(--quiz-font); font-size: 1.2rem; color: var(--ink); }
.al-list .word.unsure { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.al-list .why { font-size: .84rem; color: var(--ink-3); }
.al-go { margin-left: auto; flex: none; display: inline-flex; color: var(--ink-3); }
.al-none { padding: 10px 8px; color: var(--ink-2); font-size: .9rem; border-bottom: 0 !important; }
.al-after .al-foot { padding-top: 12px; }
.al-vow { font-size: .82rem; line-height: 1.45; color: var(--ink-3); }

/* «Aa»: a sheet from the foot */
.al-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .45); }
.al-scrim[hidden], .al-sheet[hidden] { display: none !important; }
.al-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; margin: 0 auto; max-width: 34rem; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 18px; max-height: 92vh; overflow: hidden; border-radius: 26px 26px 0 0;
  padding: 24px 20px max(16px, env(safe-area-inset-bottom)); background: var(--glass-strong-fill); }
.al-sheet > * { position: relative; z-index: 1; flex: none; }
/* «Aa» in three parts (ROUNDS.md R6): its name and «Done» stay put, the rows between scroll when the screen is short, so
   «Done» is never under the fold; no row may be squeezed (the faces' row, a scroller, once gave way to 4 px) */
.al-sheet > .rd-sheet-rows { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
  gap: 18px; margin: -4px -20px 0; padding: 4px 20px 16px; box-shadow: inset 0 -1px 0 var(--line); }
.rd-sheet-rows > * { flex: none; }
.al-sheet-h { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.al-srow { display: flex; align-items: center; gap: 16px; }
.al-stx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-stt { font-size: 1rem; color: var(--ink); }
.al-std { font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
.al-switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border-radius: 999px; background: rgba(var(--tint), .14); }
.al-switch .knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px; background: var(--ink-2);
  transition: transform .15s ease; pointer-events: none; }
.al-switch[aria-checked="true"] { background: var(--acc-2); }
.al-switch[aria-checked="true"] .knob { transform: translateX(20px); background: var(--on-acc); }
.al-switch:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.af-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.af-chips-l { padding: 0; margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.af-chip-row { display: flex; gap: 6px; }
.af-chip { position: relative; display: inline-flex; flex: 1 1 0; min-width: 0; }
.af-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.af-chip span { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; border-radius: 999px;
  font-size: .86rem; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.af-chip input:checked + span { color: var(--on-acc); background: var(--acc-2); box-shadow: none; font-weight: 700; }
.af-chip input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
/* the light's row: a calm skin's five (Unfiltered the longest word, CALM.md call 25) in equal cells ran into each other
   at 428 px, so each chip is as wide as its word and the rest is shared; narrower than that, the row wraps */
#rd-light .af-chip-row { flex-wrap: wrap; }
#rd-light .af-chip { flex: 1 1 auto; }
.al-fsel select { font: inherit; color: var(--ink); background: rgba(var(--tint), .08); border: 0; border-radius: 12px; padding: 8px 12px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: calc(16px + 16 * var(--tz, 0px)); }
.al-frow .al-stt { flex: 1; }

@media (max-width: 520px) {
  .al-wrap { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .al-head { padding: 14px 16px 8px; flex-wrap: wrap; }
  .al-head .t { font-size: 1.18rem; }
  #al-text { padding: 10px 16px 22px; }
  .al-bar { gap: 14px; }   /* five keys, and room between «Back a line» and «Read to me» under them */
  .af-disc { width: 46px; height: 46px; }
  .af-big { width: 62px; height: 62px; }
  .al-bar .af-disc:not(.af-big) .af-cap { margin-top: 13px; }
}
@media (prefers-reduced-motion: reduce) { .al-block, .af-disc, .al-switch .knob { transition: none; } }

/* ── each skin's own reader (Chasen's bones, the skin's material) ────────────────────────────────────────────── */
/* the skin's display face and capitals on the chrome only: the story's title is Ukrainian, in the reading face */
.al-h, .af-lbl { font-family: var(--display, var(--face)); }
.al-sheet-h, .al-at { font-family: var(--caps, var(--face)); }
/* Dieselpunk: steel, a lamp's amber on the play key */
html:not([data-palette]) .rd-pane, html[data-palette="ember"] .rd-pane {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(163, 192, 255, .14), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="ember"] .af-big { background: radial-gradient(circle at 50% 35%, #ffd38a, #e09a3c 60%, #8a5418); color: #1a0d02; box-shadow: 0 0 26px -4px rgba(255, 176, 80, .6); }
html[data-palette="ember"] .al-block.here::before { background: #ffb85c; box-shadow: 0 0 10px rgba(255, 184, 92, .7); }
/* Steampunk: brass rims, engraved capitals, the play key a polished boss */
html[data-palette="steam"] .rd-pane { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 var(--hi), 0 0 0 1px rgba(122, 84, 32, .5), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="steam"] .al-head { border-bottom: 1px solid var(--engrave); }
html[data-palette="steam"] .al-foot { border-top: 1px solid var(--engrave); }
html[data-palette="steam"] .af-disc { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 1px 0 var(--hi); }
html[data-palette="steam"] .af-big { background: radial-gradient(circle at 40% 30%, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); color: #241505;
  box-shadow: inset 0 1px 1px rgba(255, 244, 210, .7), 0 6px 18px -6px rgba(0, 0, 0, .7); }
html[data-palette="steam"] .al-block.here::before { background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo)); }
html[data-palette="steam"] .al-h, html[data-palette="steam"] .al-sheet-h { letter-spacing: .06em; }
/* Cyberpunk: a neon edge, the line in the light a cyan bar, the play key lit from within */
html[data-palette="cyber"] .rd-pane { box-shadow: inset 0 0 0 1px rgba(69, 227, 255, .28), 0 0 0 1px rgba(255, 90, 217, .12), 0 0 40px -12px rgba(69, 227, 255, .35); }
html[data-palette="cyber"] :is(.al-stage, .al-after) { background: var(--holo) center top / calc(100% - 44px) 2px no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="cyber"] .af-big { background: radial-gradient(circle at 50% 40%, #b8f6ff, var(--neon-c) 60%, #1478a0); color: #00141c; box-shadow: 0 0 24px -2px rgba(69, 227, 255, .7); }
html[data-palette="cyber"] .al-block.here::before { background: var(--neon-c); box-shadow: 0 0 12px var(--neon-c); }
html[data-palette="cyber"] .w.on { background: rgba(255, 90, 217, .2); border-bottom-color: var(--neon-m); }
html[data-palette="cyber"] .al-at { letter-spacing: .12em; }
/* Raypunk: chrome bezels, an enamel play key, the horizon's teal line */
html[data-palette="ray"] .rd-pane { border-radius: 34px 34px 0 0; box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 rgba(255, 255, 255, .22), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="ray"] :is(.al-stage, .al-after) { background: var(--horizon) center top / calc(100% - 80px) 2px no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="ray"] .af-disc { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 1px 0 rgba(255, 255, 255, .3); }
html[data-palette="ray"] .af-big { background: radial-gradient(circle at 45% 30%, #ff8b98, var(--cherry) 55%, #8d1424); color: #fff; box-shadow: 0 0 0 3px rgba(230, 240, 245, .55), 0 0 0 4px rgba(70, 92, 102, .6), 0 8px 22px -6px rgba(232, 56, 79, .6); }
html[data-palette="ray"] .al-block.here::before { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
/* Weird West: a brass bezel, the turquoise glint of its horizon, a brass-faced play key */
html[data-palette="west"] .rd-pane { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 var(--hi), 0 0 0 1px rgba(110, 70, 40, .5), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="west"] :is(.al-stage, .al-after) { background: var(--horizon) center top / calc(100% - 60px) 2px no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="west"] .af-big { background: var(--brass-face); color: #2a1606; box-shadow: inset 0 1px 1px rgba(255, 246, 220, .7), 0 6px 18px -6px rgba(0, 0, 0, .7); }
html[data-palette="west"] .al-block.here::before { background: var(--turq); box-shadow: 0 0 10px rgba(79, 202, 182, .6); }
/* Silkpunk: a gold-leaf bezel, a jade line at its middle, a vermilion lacquer play key */
html[data-palette="silk"] .rd-pane { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 var(--hi), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="silk"] :is(.al-stage, .al-after) { background: var(--horizon) center top / calc(100% - 60px) 2px no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="silk"] .af-big { background: radial-gradient(circle at 45% 30%, #f3866a, var(--vermilion) 55%, #7a2111); color: #fff6ec; box-shadow: 0 0 0 2px rgba(233, 182, 74, .55), 0 8px 22px -6px rgba(212, 72, 42, .55); }
html[data-palette="silk"] .al-block.here::before { background: var(--jade); box-shadow: 0 0 10px rgba(85, 201, 154, .6); }
/* Mosspunk and Aquapunk: the reading stage under a gold line, the play key their own green or sea, the line read lit in it */
html:is([data-palette="moss"], [data-palette="aqua"], [data-palette="solar"]) .rd-pane { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 var(--hi), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html:is([data-palette="moss"], [data-palette="aqua"], [data-palette="solar"]) :is(.al-stage, .al-after) { background: var(--horizon) center top / calc(100% - 60px) 2px no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="moss"] .af-big { background: radial-gradient(circle at 45% 30%, #a6dc86, #4f8f2f 55%, #22461a); color: #f6fdef; box-shadow: 0 0 0 2px rgba(233, 182, 74, .55), 0 8px 22px -6px rgba(124, 201, 85, .5); }
html[data-palette="aqua"] .af-big { background: radial-gradient(circle at 45% 30%, #8fe0e2, #23838a 55%, #0f4f55); color: #f2fefe; box-shadow: 0 0 0 2px rgba(233, 182, 74, .55), 0 8px 22px -6px rgba(85, 197, 201, .5); }
html[data-palette="moss"] .al-block.here::before { background: var(--leaf); box-shadow: 0 0 10px rgba(124, 201, 85, .6); }
html[data-palette="aqua"] .al-block.here::before { background: var(--aqua); box-shadow: 0 0 10px rgba(85, 197, 201, .6); }
html[data-palette="solar"] .af-big { background: radial-gradient(circle at 45% 30%, #a9d6ff, #2f7cc0 55%, #123f6e); color: #f4faff; box-shadow: 0 0 0 2px rgba(245, 184, 46, .6), 0 8px 22px -6px rgba(94, 176, 242, .5); }
html[data-palette="solar"] .al-block.here::before { background: var(--sky); box-shadow: 0 0 10px rgba(94, 176, 242, .6); }
/* Petrykivka: a lime-washed bezel, its horizon a painted hairline of cornflower and wheat, a cobalt lacquer play key
   ringed in wheat, the line being read marked in kalyna */
html[data-palette="petryk"] .rd-pane { box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 2px 0 var(--hi), 0 24px 60px -24px rgba(0, 0, 0, .8); }
html[data-palette="petryk"] :is(.al-stage, .al-after) { background: var(--horizon) center 3px / calc(100% - 60px) var(--stroke) no-repeat, color-mix(in srgb, var(--ground) 86%, transparent); }
html[data-palette="petryk"] .af-big { background: radial-gradient(circle at 45% 30%, #6f8fe6, var(--cobalt) 55%, #142a6e); color: #fbf8f0; box-shadow: 0 0 0 2px rgba(230, 193, 92, .55), 0 8px 22px -6px rgba(37, 70, 166, .55); }
html[data-palette="petryk"] .al-block.here::before { background: var(--kalyna); box-shadow: 0 0 10px rgba(200, 52, 60, .5); }
html[data-watch="on"] :is(.al-stage, .al-after) { background: var(--ground); }

/* ── the reading view, re-organised (RUN6.md R3) ──────────────────────────────────────────────────────────────── */
/* how far through: a hairline at the head of the controls, as a player's (punk-read.js §9) */
.rd-prog { position: relative; height: 3px; margin: -2px 14px 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rd-fold .rd-prog { margin-bottom: 8px; }
.rd-prog::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--acc-2);
  box-shadow: 0 0 10px var(--glow); transition: width .45s var(--ease-out, ease); }
@media (prefers-reduced-motion: reduce) { .rd-prog::after { transition: none; } }
/* a Journey's stop (punk-read.js §8): a chip under the bar, back to the route */
.rd-jchip { display: flex; align-items: center; gap: 8px; max-width: 46rem; width: 100%; margin: -2px auto 10px; box-sizing: border-box; padding: 0 6px;
  text-decoration: none; font-size: .78rem; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.rd-jchip__k { flex: none; padding: 2px 8px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-acc); background: var(--acc-2); }
.rd-jchip__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 650; color: var(--ink); }
.rd-jchip__s { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rd-jchip:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; border-radius: 8px; }
.rd-jnext { margin: 0 0 10px; }
.rd-jend { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; margin: 18px -6px 6px; padding: 14px 16px; border-radius: 18px;
  text-decoration: none; color: var(--ink); background: var(--sel-wash); box-shadow: inset 0 0 0 1px var(--line); }
.rd-jend:hover { box-shadow: inset 0 0 0 1px var(--acc-2); }
.rd-jend:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.rd-jend__k { grid-column: 1; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-ink); font-family: var(--caps, var(--face)); }
.rd-jend__t { grid-column: 1; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.rd-jend__uk { grid-column: 1; font-family: var(--quiz-font); font-size: .95rem; color: var(--ink-2); }
/* the next stop's note, what it holds (scripts/journey-notes.json), two lines at most */
.rd-jend__note { grid-column: 1; margin-top: 4px; font-size: .84rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.rd-jend__go { grid-column: 2; grid-row: 1 / span 4; align-self: center; font-size: 1.4rem; color: var(--acc-ink); }
/* with the Journey's painting at its head (Mobbin: Deepstash's «Continue Journey») */
.rd-jend--art { grid-template-columns: auto minmax(0, 1fr) auto; }
.rd-jend--art .rd-jend__art { grid-column: 1; grid-row: 1 / span 4; align-self: center; width: 46px; aspect-ratio: 3 / 4; margin-right: 12px; border-radius: 8px; object-fit: cover; box-shadow: var(--cast); }
.rd-jend--art :is(.rd-jend__k, .rd-jend__t, .rd-jend__uk, .rd-jend__note) { grid-column: 2; }
.rd-jend--art .rd-jend__go { grid-column: 3; }
/* the story read to its end: the plate lit (punk-read.js heard()) */
.rd-jend--now { box-shadow: inset 0 0 0 1.5px var(--acc-2), 0 0 0 4px rgba(var(--acc-rgb), .16); }
/* another story, anywhere else: the same plate, a button that presses the engine's «Another» */
button.rd-jend { width: calc(100% + 12px); border: 0; font: inherit; text-align: left; cursor: pointer; }
/* the controls: a player's capsule standing off the paper, the captions small; the notes kept in «Aa» on a phone */
.al-stage > .al-foot { margin: 0 10px max(10px, env(safe-area-inset-bottom)); padding: 12px 10px 10px; border-top: 0; border-radius: 26px;
  background: color-mix(in srgb, var(--ground) 70%, rgba(var(--tint), .06)); box-shadow: inset 0 0 0 1px var(--line), 0 -1px 0 rgba(255, 255, 255, .04), 0 18px 40px -22px rgba(0, 0, 0, .7); }
.al-stage > .al-foot .al-bar { margin-bottom: 28px; }   /* the captions hang 21px under the keys: the voice's line a breath below them, not touching */
.af-cap { font-size: .64rem; letter-spacing: .02em; }
.al-sheet .al-note { margin: -6px 0 0; text-align: left; line-height: 1.45; }
@media (max-width: 520px) {
  .al-stage > .al-foot { margin: 0 6px max(6px, env(safe-area-inset-bottom)); padding: 10px 6px 8px; }
  .al-stage > .al-foot .al-bar { margin-bottom: 26px; }
}
html[data-palette="steam"] .al-stage > .al-foot { border-top: 0; box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 1px 0 var(--hi), 0 18px 40px -22px rgba(0, 0, 0, .7); }
html[data-palette="cyber"] .al-stage > .al-foot { box-shadow: inset 0 0 0 1px rgba(69, 227, 255, .22), 0 0 30px -14px rgba(69, 227, 255, .5); }
html[data-palette="ray"] .al-stage > .al-foot { border-radius: 34px; box-shadow: inset 0 0 0 1px var(--rim-soft), inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px -22px rgba(0, 0, 0, .7); }
html[data-watch="on"] .al-stage > .al-foot { background: var(--ground); }
/* room to read (punk-read.js §10): the head folds to its title, the controls to their keys, while the story is scrolled */
.al-head, .al-head .te, .al-at, .af-cap, .al-say, .al-status, .al-legend, .rd-jchip, .al-stage > .al-foot .al-bar { transition: opacity .22s ease, margin .22s ease, padding .22s ease; }
.rd-fold .al-head { padding-top: 10px; padding-bottom: 8px; }
.rd-fold .al-head .te, .rd-fold .al-head .al-at, .rd-fold .rd-jchip, .rd-fold #rd-tip { display: none; }
.rd-fold .al-head .t { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-fold .al-stage > .al-foot .af-cap, .rd-fold .al-stage > .al-foot :is(.al-say, .al-legend) { display: none; }
.rd-fold .al-stage > .al-foot .al-bar { margin-bottom: 0; }
.rd-fold .al-stage > .al-foot { padding-top: 8px; padding-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .al-head, .af-cap, .al-stage > .al-foot .al-bar { transition: none; } }

@media (prefers-reduced-motion: reduce) { .rd-card { transition: none; } }

/* «Aa»'s way to The look (punk-read.js §4, ROUNDS.md R6): a row as the switches are, a link that leaves the story for
   Settings › The skin; the skins' strip and its families' captions are Settings' own now (READER.md §18) */
.rd-tolook { color: inherit; text-decoration: none; margin: -6px -8px; padding: 6px 8px; border-radius: 14px; }
.rd-tolook:hover { background: rgba(var(--tint), .06); }
.rd-tolook:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.rd-tolook__i { flex: none; width: 20px; height: 20px; color: var(--ink-2); }

/* a word looked up (punk-read.js §6): a sheet over the story, the word in the reading face, the dictionary's rows */
.rd-look__scrim { position: fixed; inset: 0; z-index: 97; background: rgba(0, 0, 0, .45); }
.rd-look { position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; margin: 0 auto; max-width: 34rem; box-sizing: border-box;
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px max(18px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: color-mix(in srgb, var(--ground) 94%, transparent); box-shadow: var(--cast-sheet); color: var(--ink); animation: rd-up .28s var(--ease-out, ease) both; }
.rd-look > * { position: relative; z-index: 1; }
.rd-look__cap { font: 700 .72rem/1 var(--caps, var(--face)); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rd-look__w { margin: 0; font: 400 2rem/1.25 var(--quiz-font, 'Tempora', Georgia, serif); color: var(--ink); }
.rd-look__w:focus { outline: none; }
.rd-look__dict:empty { display: none; }
.rd-look .ss__label { margin: 4px 0 6px; }
.rd-look__rows { margin: 0; }
.rd-look__more, .rd-look__wait, .rd-look__none { margin: 6px 2px 0; font-size: .84rem; line-height: 1.4; color: var(--ink-3); }
.rd-look__en { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.rd-look__note { font-size: .82rem; line-height: 1.4; color: var(--ink-3); }
.rd-look__ways { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rd-look__ways .btn { flex: 1 1 0; min-width: fit-content; }
/* a wide desk: the word stands beside the story, which stays in sight (no sheet over the text, no dark over the page) */
@media (min-width: 1360px) {
  .rd-look__scrim { background: transparent; }
  .rd-look { left: calc(50% + 23rem + 16px); right: auto; top: 68px; bottom: auto; margin: 0; width: min(21rem, calc(50vw - 23rem - 32px));
    max-height: calc(100vh - 92px); border-radius: 22px; padding-bottom: 18px; animation-name: rd-in; }
}
@keyframes rd-in { from { opacity: 0; } }
@keyframes rd-up { from { transform: translateY(24px); opacity: 0; } }
.al-list > li { display: flex; align-items: center; gap: 6px; }
.al-list > li .al-jump { flex: 1 1 auto; min-width: 0; }
.rd-lookbtn { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--acc-ink);
  box-shadow: inset 0 0 0 1px var(--line); }
.rd-lookbtn:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.w { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.w.rd-pressing { background: rgba(var(--acc-rgb), .16); }
/* Find's way back to the story a word was looked up from (frap.js findSheet), and Settings' to the story «Aa» left
   for The skin (frap-screens.js waiting()) */
.find__story, .set-story { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; text-decoration: none; }
.set-story { scroll-margin-top: calc(var(--sat, 0px) + 72px); }
@media (prefers-reduced-motion: reduce) { .rd-look { animation: none; } }
html[data-watch="on"] .rd-look { animation: none; }
/* the first story's tip (punk-read.js §7): one line over the text, a wash of the skin's accent */
.rd-tip { flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 22px 0; padding: 6px 6px 6px 12px; border-radius: 12px;
  background: rgba(var(--acc-rgb), .10); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .30); color: var(--ink); animation: rd-tip-in .32s ease-out both; }
.rd-tip svg { flex: none; width: 22px; height: 22px; color: var(--acc-ink); }
.rd-tip__t { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }   /* the tip's lines one under the other (THUD ENG's call 76) */
.rd-tip p { min-width: 0; margin: 0; font-size: .86rem; line-height: 1.35; }
.rd-tip__ok { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--acc-ink);
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.rd-tip__ok:hover { background: rgba(var(--acc-rgb), .14); }
.rd-tip__ok:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
@keyframes rd-tip-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 520px) { .rd-tip { margin: 10px 16px 0; } }
@media (prefers-reduced-motion: reduce) { .rd-tip { animation: none; } }
html[data-watch="on"] .rd-tip { animation: none; background: var(--ground); }
/* the look-up's «Listen» (punk-read.js §6): the word and its voice on one line */
.rd-look__top { display: flex; align-items: center; gap: 12px; }
.rd-look__top .rd-look__w { flex: 1 1 auto; min-width: 0; }
.rd-look__say { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--acc-ink); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.rd-look__say svg { width: 20px; height: 20px; }
.rd-look__say:hover { background: rgba(var(--acc-rgb), .12); }
.rd-look__say:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.rd-look__say[aria-disabled="true"] { opacity: .45; cursor: default; }
.rd-look__say.is-saying { background: rgba(var(--acc-rgb), .16); }
.rd-look__say.is-saying .w1 { animation: rd-wave 1s ease-in-out infinite; }
.rd-look__say.is-saying .w2 { animation: rd-wave 1s ease-in-out .2s infinite; }
@keyframes rd-wave { 50% { opacity: .25; } }
.rd-look__hush { margin: -4px 0 0; font-size: .82rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .rd-look__say.is-saying :is(.w1, .w2) { animation: none; } }
html[data-watch="on"] .rd-look__say.is-saying :is(.w1, .w2) { animation: none; }
/* a shelf's cover grows into its page's banner (punk-reading.js after()): the pair is clipped round, each picture
   kept to its own proportions while the box between them changes */
::view-transition-group(rd-cover) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-image-pair(rd-cover) { overflow: hidden; border-radius: 18px; }
::view-transition-old(rd-cover), ::view-transition-new(rd-cover) { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(rd-cover), ::view-transition-old(rd-cover), ::view-transition-new(rd-cover) { animation: none; } }
html[data-watch="on"]::view-transition-group(rd-cover), html[data-watch="on"]::view-transition-old(rd-cover), html[data-watch="on"]::view-transition-new(rd-cover) { animation: none; }
html[data-watch="on"] .rd-today__room { display: none; }
html[data-watch="on"] .rd-today--room .rd-today__body { padding-top: 22px; }

/* the faces shown (punk-read.js §11): the engine's select kept, out of sight, beside a row of tiles */
.rd-frow--tiles .al-fsel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rd-faces { display: flex; gap: 8px; margin-top: -10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rd-faces::-webkit-scrollbar { display: none; }
.rd-face { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 104px; max-width: 150px; padding: 10px 12px; border-radius: 14px;
  color: var(--ink); background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; }
.rd-face__s { font-size: 1.2rem; line-height: 1.5; padding-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rd-face__n { font-size: .7rem; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); }
/* the face chosen is the tile pressed: faceTiles() writes aria-pressed, and this rule had asked aria-checked since the
   strike (2026-11-11), so no tile was ever marked (found 2026-11-19, R6) */
.rd-face[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--acc-2); background: var(--sel-wash); }
.rd-face[aria-pressed="true"] .rd-face__n { color: var(--acc-ink); }
.rd-face:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
/* WebKit, Steampunk at 428 (2026-10-21): the eyebrow's spaced small capitals and the primary's would not wrap, and the
   Today card set the page 520 wide; both may break, and the card is never wider than its column */
.rd-today { min-width: 0; max-width: 100%; }
.rd-today .caps { white-space: normal; }
.rd-today__ways .btn { white-space: normal; min-width: 0; text-align: center; }

/* «Worth repeating», each word a card (Mobbin: Quizlet's «Terms from this round»): the word large, why it is there under
   it, the way back to its line at the right, «Look up» beside it; the list's hairlines gone (Max pass, 2026-10-21) */
.al-list { padding: 8px 14px 6px; }
.al-list > li { margin: 0 0 8px; padding: 2px 6px 2px 2px; border: 0 !important; border-radius: 16px; background: rgba(var(--tint), .045); box-shadow: inset 0 0 0 1px var(--line); }
.al-list > li.al-none { background: none; box-shadow: none; }
.al-list .al-jump { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: center; padding: 10px 10px 10px 12px; }
.al-list .al-jump .word { grid-column: 1; font-size: 1.32rem; line-height: 1.3; }
.al-list .al-jump .why { grid-column: 1; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.al-list .al-jump .al-go { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--acc-ink); }
.al-after > header .al-h { font-family: var(--display, var(--face)); font-size: 1.5rem; }

/* AGAIN, WITH LESS HELP; BY EAR (2026-11-16; punk-read.js §13, THEORY.md §3). The key at a story's end names the order it
   steps down to. By ear: a line not yet read by the voice is a quiet bar where its words will stand (its letters and
   their marks unseen, its room kept, so nothing moves when it shows); only while the voice reads, never in Field mode; a tapped line shows. */
.rd-less { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.rd-less small { font-size: calc(12px + 12 * var(--tz, 0px)); font-weight: 500; opacity: .82; }
html[data-rd-ear="on"]:not([data-watch="on"]) #al-stage:not(.al-silent) .al-block:not(.done):not(.rd-seen) .al-line,
html[data-rd-ear="on"]:not([data-watch="on"]) #al-stage:not(.al-silent) .al-block:not(.done):not(.rd-seen) .al-en {
  color: transparent !important; background: rgba(var(--tint), .13); border-radius: 8px; text-shadow: none !important; -webkit-user-select: none; user-select: none; }
html[data-rd-ear="on"]:not([data-watch="on"]) #al-stage:not(.al-silent) .al-block:not(.done):not(.rd-seen) :is(.al-line, .al-en) .w {
  color: transparent !important; background: none !important; box-shadow: none !important; text-shadow: none !important;
  text-decoration-color: transparent !important; border-color: transparent !important; }

/* READ ALONG; THE WORDS YOU HELD (2026-11-18; punk-read.js §14, docs/teach/S6.md). The reader's turn: a quiet mark under
   the line just read, and the engine's own «held» line put away while it stands; none in Field mode. The words held: a
   row of quiet keys under the story's last line, each opening where its word is taught. */
.rd-turn { display: block; width: max-content; margin-top: 6px; padding: 1px 9px; border-radius: 999px; font: 600 calc(12px + 12 * var(--tz, 0px))/1.5 var(--face);
  letter-spacing: .02em; color: var(--ink-2); background: rgba(var(--tint), .10); }
html[data-rd-turn="on"] #al-say { visibility: hidden; }
html[data-watch="on"] .rd-turn { display: none; }
.rd-held { margin: 18px -6px 6px; padding: 12px 14px; border-radius: 18px; background: rgba(var(--tint), .06); }
.rd-held__h { margin: 0 0 8px; font-size: calc(12px + 12 * var(--tz, 0px)); color: var(--ink-3); }
.rd-held__list { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-held__w { font: inherit; font-size: 1rem; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(var(--tint), .22); background: transparent; color: var(--ink); cursor: pointer; }
.rd-held__note { margin: 8px 0 0; font-size: calc(12px + 12 * var(--tz, 0px)); color: var(--ink-3); }
.rd-along-way { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(var(--tint), .12); }
.rd-along-way > .order__by { display: block; margin: 0 0 6px; }
.rd-jend--again + .rd-jend { margin-top: 10px; }
.rd-jend--again .rd-jend__go { font-size: 1.25rem; }

/* S5 · the rule of a small word held (punk-book-rules.js html()): a lesson a row, its number as the book sets it */
.rd-look__rules { margin: 0; }
.rd-look__n { font-variant-numeric: tabular-nums; color: var(--ink-3); margin-right: .15em; }

/* BEFORE YOU READ (2026-11-18; punk-read.js §15, docs/teach/OPUS.md C4). A closed row above the story's first line;
   opened, the story's few rare words, each with its English, a tap saying it. Nothing moves: no transition, open or
   closed, in Field mode or out of it. */
.rd-before { margin: 0 0 18px; border-radius: 16px; background: rgba(var(--tint), .06); border: 1px solid rgba(var(--tint), .12); }
.rd-before__head { display: flex; align-items: baseline; gap: 4px; min-height: 44px; box-sizing: border-box; padding: 12px 16px; cursor: pointer; list-style: none; font: 600 calc(13px + 13 * var(--tz, 0px))/1.4 var(--face); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rd-before__head::-webkit-details-marker { display: none; }
.rd-before__head::after { content: '›'; margin-left: auto; font-size: calc(18px + 18 * var(--tz, 0px)); line-height: 1; transform: rotate(90deg); }
.rd-before[open] > .rd-before__head::after { transform: rotate(-90deg); }
.rd-before__n { letter-spacing: .02em; color: var(--ink-3); }
.rd-before__body { padding: 0 12px 12px; }
.rd-before__list { display: grid; gap: 6px; }
.rd-before__w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; width: 100%; min-height: 44px; box-sizing: border-box; margin: 0; padding: 10px 12px; border: 0; border-radius: 12px;
  background: rgba(var(--tint), .07); color: var(--ink); text-align: left; font: inherit; }
button.rd-before__w { cursor: pointer; }
.rd-before__w.is-saying { background: rgba(var(--tint), .16); }
.rd-before__uk { font-family: var(--quiz-font); font-size: 1.25rem; line-height: 1.3; font-weight: 500; }   /* the story's own reading face, the learner's, as .al-line wears it: never a skin's */
.rd-before__en { font-size: calc(14px + 14 * var(--tz, 0px)); color: var(--ink-2); }
.rd-before__note, .rd-before__wait { margin: 8px 4px 0; font-size: calc(13px + 13 * var(--tz, 0px)); color: var(--ink-3); }

/* THREE FOR YOU (2026-11-23): three covers side by side, the reason above each title; the topics under them as chips */
.rd-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.rd-trio .rd-card { width: auto; }
.rd-trio__why { margin: 0 0 3px; color: var(--acc-2, #fff); letter-spacing: .1em; }
.rd-trio .rd-card__title { font-size: .9rem; }
/* three across until a card would be under six of its words wide (320 px, or the text at 200%: AUDIT unit 55): then a
   rail, as a shelf is, each card its own width and the next in sight */
.rd-trio-box { container-type: inline-size; }
@container (max-width: 19em) {
  .rd-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 9em; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
  .rd-trio::-webkit-scrollbar { display: none; }
  .rd-trio > div { scroll-snap-align: start; }
}
.rd-deal { border: 0; background: none; font-family: inherit; cursor: pointer; }
.rd-topics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 22px; }
.rd-topics__l { width: 100%; margin-bottom: 2px; color: var(--ink-2); }
/* the topics as the chips they are (2026-11-25, the owner: «cosmetique defficiencies must, must be corrected»): with no
   ground of their own they stood under the covers as loose words, not keys. Each a quiet capsule now, 36 px tall */
.rd-topic { text-decoration: none; min-height: 36px; padding: 0 14px; color: var(--ink); background: rgba(var(--tint), .08);
  box-shadow: inset 0 0 0 1px rgba(var(--tint), .14); transition: background var(--t) ease, transform var(--t) ease; }
@media (hover: hover) { .rd-topic:hover { background: rgba(var(--tint), .14); } }
.rd-topic:active { transform: scale(.97); }
@media (max-width: 520px) { .rd-trio .rd-card__uk { display: none; } .rd-trio .rd-card__foot { padding: 28px 9px 9px; } .rd-trio .rd-card__title { font-size: .82rem; } }
@media (min-width: 900px) { .rd-trio { gap: 14px; } .rd-trio .rd-card { aspect-ratio: 4 / 3; } }
/* your path (punk-reading.js pathPanel): eight ways through the library, a picture card each (Mobbin: Brilliant's
   «What do you want to learn first?» tiles); the one chosen ringed and ticked, its Journeys under it */
.rd-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
@media (min-width: 900px) { .rd-paths { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rd-path { display: grid; align-content: start; gap: 3px; padding: 0 0 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 0; border-radius: var(--r-tile, 18px); overflow: hidden; background: rgba(var(--tint), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint), .14); }
.rd-path__art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.rd-path__name { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 650; font-size: calc(16px + 16 * var(--tz, 0px)); }
.rd-path__name .i { width: 16px; height: 16px; color: var(--acc-ink); }
.rd-path__line { padding: 0 12px; font-size: calc(13px + 13 * var(--tz, 0px)); line-height: 1.35; color: var(--ink-3); }
.rd-path.is-on { box-shadow: inset 0 0 0 2px var(--acc-ink); }
.rd-path:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.rd-paths__more { margin: 4px 0 18px; }
.rd-paths__more > summary { list-style: none; cursor: pointer; margin-bottom: 10px; }
.rd-paths__more > summary::-webkit-details-marker { display: none; }
