/* A Cast of One. Palette: the take's daylight wall and the tavern's ember. Fonts: Oswald (titles) and
   JetBrains Mono (slate data), both under the SIL Open Font License, see assets/fonts/. */
@font-face { font-family: "Oswald"; src: url("assets/fonts/oswald-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* light: the take's wall */
  --bg: #f3f2ef; --bg2: #e9e7e2; --card: #fbfaf8; --ink: #17130f; --muted: #5b544b; --line: #d9d4cb;
  --control-line: #8c8378;
  --accent: #a3560f; --accent-ink: #ffffff; --accent-soft: #f6e3cc;
  --ok: #1f7a45; --warn: #9a5b0c; --bad: #b3372b; --na: #6b6b72;
  --knight: #7a2a25; --goblin: #4f6b1f; --wizard: #26356b; --raven: #1d2a2f; --actor: #55504a;
  --r-sm: 6px; --r-md: 12px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --title: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --header: 64px;
  color-scheme: light;
}
/* dark: the tavern at night */
[data-theme="dark"] {
  --bg: #100c09; --bg2: #18120e; --card: #1c1611; --ink: #f5ede1; --muted: #b5a794; --line: #3b3027;
  --control-line: #806f5b;
  --accent: #f0a142; --accent-ink: #1a1108; --accent-soft: #3b2a17;
  --ok: #5ccf8b; --warn: #f0b44a; --bad: #ff7a6b; --na: #a39a8f;
  --knight: #e8877c; --goblin: #9cc45a; --wizard: #8ea2ff; --raven: #7fb4c2; --actor: #c9c2b8;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #100c09; --bg2: #18120e; --card: #1c1611; --ink: #f5ede1; --muted: #b5a794; --line: #3b3027;
    --control-line: #806f5b;
    --accent: #f0a142; --accent-ink: #1a1108; --accent-soft: #3b2a17;
    --ok: #5ccf8b; --warn: #f0b44a; --bad: #ff7a6b; --na: #a39a8f;
    --knight: #e8877c; --goblin: #9cc45a; --wizard: #8ea2ff; --raven: #7fb4c2; --actor: #c9c2b8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
b, strong { font-weight: 650; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650;
}
.skip:focus { top: 12px; }

/* logo: black on light, white on dark */
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .logo-on-light { display: none; }
  [data-theme="auto"] .logo-on-dark { display: inline-block; }
}

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  height: var(--header); padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.top > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; border-radius: var(--r-sm); }
.brand .logo { height: 24px; width: auto; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -8px; padding-left: 12px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap;
  flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.crumb:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-short { display: none; }
.nav.is-overflowing { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.theme {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px;
  padding: 0 12px; border: 1px solid var(--control-line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px;
}
.theme-icon { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; }
[data-theme="auto"] .theme-icon { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
[data-theme="light"] .theme-icon { background: currentColor; border-color: transparent; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px currentColor; width: 10px; height: 10px; margin: 3px; }
[data-theme="dark"] .theme-icon { border: 0; background: transparent; box-shadow: inset -5px -2px 0 0 currentColor; }
.top-create { flex: none; }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* buttons: one primary, one secondary, one text style */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1px solid var(--control-line); background: transparent; border-radius: 999px; padding: 9px 18px;
  font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s cubic-bezier(.23, 1, .32, 1);
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--ink); }
  .btn.primary:hover { background: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
  .theme:hover { border-color: var(--ink); }
}
.seg { display: inline-flex; border: 1px solid var(--control-line); border-radius: 999px; padding: 3px; background: var(--bg2); }
.seg button {
  min-height: 36px; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-size: 14px; color: var(--muted); white-space: nowrap; transition: background-color .16s, color .16s;
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* type */
h1, h2, .stat b { font-family: var(--title); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(32px, 2.8vw, 44px); margin: 0; }
h2 { font-size: clamp(28px, 2.5vw, 36px); margin: 0 0 12px; }   /* under the page title (round 4, B25) */
h3 { font-size: 20px; margin: 0 0 12px; line-height: 1.25; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 34em; }
.small-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.mono, .num, .dl-kind, .step .n, .replay-foot, .cmp figcaption .cu, .sheet-kicker { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* hero: the title and the disclosure, then the player across the whole row, then the models and the downloads */
.hero { padding: 14px 0 48px; }
.hero-title { margin-bottom: 14px; }
.hero-title .eyebrow { margin-bottom: 6px; }
h1 .l { display: inline; }
.disclosure { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* the skill and the making-of, compact, beside the title from 1100 px: in the first screen at no height cost (round 6, A23) */
.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.dl-compact { display: flex; flex: none; gap: 8px; }
.dlc { display: grid; grid-template-columns: 20px auto; column-gap: 8px; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid var(--control-line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: border-color .16s; }
.dlc-icon { grid-row: 1 / span 2; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dlc-kind { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.dlc-title { font-size: 14px; font-weight: 650; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .dlc:hover { border-color: var(--ink); } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 32px; align-items: start; margin-top: 14px; }
.hero-info .lead { margin: 0; }
.credits { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.credits b { color: var(--ink); font-weight: 650; }
.credits .sep { padding: 0 2px; color: var(--control-line); }
#stageCredits > span:not(.sep):not(.sr-only) { white-space: nowrap; }
#stageCredits:empty { min-height: 2.9em; } .cast-steps:empty { min-height: 44px; }   /* no jump when the script fills them (round 4, R4-4) */

/* the player: the stage over one transport bar, as one block */
.hero-player {
  --hero-above: 150px;   /* what sits between the header and the stage: the title and the disclosure */
  --hero-below: 82px;    /* the transport bar and a margin */
  /* full width; on a short screen the height is capped (never below 2:1) so the transport stays in view, cropping from the bottom */
  --stage-h: min(56.25cqw, max(38cqw, calc(100svh - var(--header) - var(--hero-above) - var(--hero-below))));   /* floor 2.6:1 (round 6, A22) */
  container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.transport {
  display: grid; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line);
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto; grid-template-areas: "play prev next steps voice loop fs";
}
.tp-play { grid-area: play; } .tp-prev { grid-area: prev; } .tp-next { grid-area: next; } .cast-steps { grid-area: steps; }
.tp-voice { grid-area: voice; } .tp-loop { grid-area: loop; } .tp-fs { grid-area: fs; }
.tp {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--control-line);
  background: transparent; color: var(--ink); cursor: pointer; transition: background-color .16s, border-color .16s, color .16s, transform .16s cubic-bezier(.23, 1, .32, 1);
}
.tp .i { width: 20px; height: 20px; fill: currentColor; }
.tp .i .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp:active { transform: scale(.95); }
.tp-play { width: 48px; height: 48px; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tp-play .i { width: 22px; height: 22px; }
.tp-play .i-pause, .tp-play.is-playing .i-play, .tp-fs .i-fs-exit, .tp-fs.is-fs .i-fs { display: none; }
.tp-play.is-playing .i-pause, .tp-fs.is-fs .i-fs-exit { display: block; }
.tp[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .tp:hover { border-color: var(--ink); }
  .tp-play:hover, .tp[aria-pressed="true"]:hover { background: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
}
.tp-voice { background: transparent; padding: 0; }
.tp-voice button { min-height: 44px; }   /* the same height as the bar's other controls (round 6, R6-3) */
/* the four characters: a step each, with the progress of its take */
.cast-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.cast-step {
  --role: var(--ink); --p: 0;
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--control-line); border-radius: var(--r-md); background: transparent; cursor: pointer; overflow: hidden; text-align: left;
}
.cast-step[data-role="knight"] { --role: var(--knight); } .cast-step[data-role="goblin"] { --role: var(--goblin); }
.cast-step[data-role="wizard"] { --role: var(--wizard); } .cast-step[data-role="raven"] { --role: var(--raven); }
.cast-step img { flex: none; width: 28px; height: 36px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg2); }
.cast-step-name { min-width: 0; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-step-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in oklab, var(--role) 18%, transparent); }
.cast-step-bar i { display: block; height: 100%; background: var(--role); transform-origin: left; transform: scaleX(var(--p)); }
.cast-step[aria-selected="true"] { border-color: var(--role); box-shadow: inset 0 0 0 1px var(--role); }
@media (hover: hover) and (pointer: fine) { .cast-step:hover { border-color: var(--ink); } .cast-step[aria-selected="true"]:hover { border-color: var(--role); } }

/* the stage: take under, character over, clipped at the divider */
.stage {
  position: relative; width: 100%; height: var(--stage-h); background: var(--bg2); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; container-type: inline-size;
}
.stage .v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }   /* the faces sit in the top half: crop from the bottom */
.stage .over { clip-path: inset(0 0 0 var(--pos, 50%)); -webkit-clip-path: inset(0 0 0 var(--pos, 50%)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; pointer-events: none; }
.divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.5); }
.knob {
  position: absolute; top: 50%; left: -20px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.knob::before, .knob::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.knob::before { left: 5px; border-right: 8px solid #111; border-left: 0; }
.knob::after { right: 5px; border-left: 8px solid #111; border-right: 0; }
.slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag { position: absolute; top: 2.5%; padding: 6px 10px; border-radius: var(--r-sm); background: #0c0a08; color: #fff; font-size: clamp(12px, 1.1cqi, 16px); line-height: 1.3; pointer-events: none; white-space: nowrap; transition: opacity .16s; }
.tag b { display: block; font-size: clamp(13px, 1.25cqi, 18px); }   /* the labels grow with the stage (round 4, B27) */
.tag span { opacity: .85; }
.tag .tag-line { display: block; }
/* the page's label sits over the one burned into the take, with the same words */
.tag-left { left: 1.2%; top: 1cqw; min-width: 24%; min-height: 5.4cqw; border-left: 3px solid #ffd65a; }   /* in width units: it covers the burned-in label however the height is cropped */
.tag-right { right: 1.5%; text-align: right; }
@container (max-width: 560px) {
  .tag { font-size: 11px; padding: 4px 8px; top: 8px; }
  .tag b { font-size: 12px; }
  .tag-left { top: 6px; }
  .tag .tag-more, .tag-right span { display: none; }
  .caption { left: 12px; right: 12px; }
  .knob { width: 32px; height: 32px; left: -16px; margin-top: -16px; }
  .caption { bottom: 8px; }
  .stage-loading { top: calc(50% + 22px); }
}
.caption {
  position: absolute; left: 24px; right: 24px; bottom: 16px; text-align: center;
  color: rgba(255,255,255,.72); font-size: clamp(13px, 1.7vw, 19px); text-shadow: 0 1px 4px rgba(0,0,0,.9); pointer-events: none;
}
.caption span.ph { display: inline-block; background: rgba(0,0,0,.7); padding: 4px 10px; border-radius: var(--r-sm); }
.caption:empty, .stage.is-paused .caption { display: none; }
.caption .w.said { color: #fff; }
.caption .w.now { color: #f0a142; }
.stage-loading {
  position: absolute; left: 50%; top: calc(50% + 30px); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 14px; pointer-events: none;
}
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* full screen: the player (stage and transport) fills the screen; the stage keeps its whole 16:9 frame, letterboxed */
.hero-player:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #000; border: 0; border-radius: 0; }
.hero-player:-webkit-full-screen { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #000; border: 0; border-radius: 0; }
.hero-player.is-expanded { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #000; border: 0; border-radius: 0; }
.hero-player:fullscreen .stage { align-self: center; justify-self: center; width: min(100vw, (100vh - 66px) * 16 / 9); height: auto; aspect-ratio: 16 / 9; }
.hero-player:-webkit-full-screen .stage { align-self: center; justify-self: center; width: min(100vw, (100vh - 66px) * 16 / 9); height: auto; aspect-ratio: 16 / 9; }
.hero-player.is-expanded .stage { align-self: center; justify-self: center; width: min(100vw, (100dvh - 66px) * 16 / 9); height: auto; aspect-ratio: 16 / 9; }
.hero-player:fullscreen .stage .v, .hero-player.is-expanded .stage .v { object-position: 50% 50%; }
.hero-player:fullscreen .transport, .hero-player.is-expanded .transport { background: var(--card); }
body.has-expanded { overflow: hidden; }
.film-frame:fullscreen, .cmp-frame:fullscreen { background: #000; display: grid; place-items: center; }
.film-frame:-webkit-full-screen, .cmp-frame:-webkit-full-screen { background: #000; display: grid; place-items: center; }
.film-frame:fullscreen video, .cmp-frame:fullscreen video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }
.cmp-frame:fullscreen video::cue { font-size: clamp(18px, 2.2vw, 30px); }
.film-frame:-webkit-full-screen video, .cmp-frame:-webkit-full-screen video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }
.stage-error { position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); z-index: 4; background: rgba(0,0,0,.8); color: #fff; border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; text-align: center; }
.stage-error a { color: #ffd65a; }
.stage:has(.slider:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }

/* downloads: the agent skill and the making-of */
/* the kicker, the pair, then the two help links: on desktop the links share the kicker's row */
.takeaway-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.takeaway-hero .takeaway-kicker { grid-area: 1 / 1; }
.takeaway-hero .takeaway-links { grid-area: 1 / 2; justify-self: end; }
.takeaway-hero .dl-pair { grid-area: 2 / 1 / 3 / 3; margin-top: 6px; }
.takeaway-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; }
.takeaway-kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); }
.takeaway-help { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--ink); text-underline-offset: 3px; border-radius: var(--r-sm); }
.dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--control-line); border-radius: var(--r-md);
  background: transparent; text-decoration: none; color: var(--ink); transition: border-color .16s;
}
@media (hover: hover) and (pointer: fine) { .dl:hover { border-color: var(--ink); } }
.dl-icon {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px;
  background: transparent; color: var(--accent);
}
.dl-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-text { display: grid; gap: 2px; min-width: 0; }
.dl-kind { font-size: 12px; color: var(--muted); }
.nw { white-space: nowrap; }   /* a size, a page count or "making-of" never breaks inside itself */
.dl-title { font-weight: 650; font-size: 16px; }
.dl-line { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* sections */
.block { padding: 64px 0; border-top: 1px solid var(--line); }
.block-head { max-width: 760px; margin-bottom: 28px; }
.block-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* the cast: the selected role's card and the preview film */
.cast-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
.role-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.role-card h3 { margin: 12px 0 0; font-size: 20px; color: var(--role, var(--ink)); }
.role-card .sub { color: var(--muted); font-size: 14px; margin: 2px 0 14px; }
.role-card dl { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; margin: 0 0 14px; font-size: 14px; }
.role-card dt { color: var(--muted); }
.role-card dd { margin: 0; }
.role-card .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.role-card .route-cu { margin: 12px 0 0; font-size: 14px; }
.role-card .route-cu b { font-family: var(--mono); font-weight: 600; }
.verdict { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-sm); border: 1px solid currentColor; }
.verdict.holds { color: var(--ok); } .verdict.work { color: var(--warn); } .verdict.fails { color: var(--bad); } .verdict.na { color: var(--na); }
.film { margin: 0; }
.film-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg2); box-shadow: var(--shadow); }
.film-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff;
}
.round .i { width: 20px; height: 20px; fill: #fff; }
.round .i .stroke { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.round .i-pause, .round .i-sound-on, .round .i-fs-exit, .round.is-playing .i-play, .round[aria-pressed="true"] .i-sound-off, .round.is-fs .i-fs { display: none; }
.round.is-playing .i-pause, .round[aria-pressed="true"] .i-sound-on, .round.is-fs .i-fs-exit { display: block; }
.round.sm { width: 36px; height: 36px; }
.round.sm .i { width: 16px; height: 16px; }
.cmp-frame { position: relative; }
.clip-controls { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.film figcaption { font-size: 14px; color: var(--muted); margin: 10px 0 12px; }

/* the scene: a screenplay list */
.script { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.script li {
  display: grid; grid-template-columns: 44px 120px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.script li.pilot { background: var(--accent-soft); border-radius: var(--r-md); border-bottom-color: transparent; margin: 4px 0; }
.script .num { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.script .line { font-size: 16px; }
.script .line.action { color: var(--muted); font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip.knight { color: var(--knight); } .chip.goblin { color: var(--goblin); } .chip.wizard { color: var(--wizard); }
.chip.raven { color: var(--raven); } .chip.all, .chip.actor { color: var(--actor); }
.play-as { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.play-as button {
  min-height: 36px; border: 1px solid var(--control-line); background: var(--card); border-radius: 999px; padding: 6px 12px;
  font-size: 13px; cursor: pointer; transition: border-color .16s;
}
@media (hover: hover) and (pointer: fine) { .play-as button:hover { border-color: var(--ink); } }

/* what held */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.cmp h3 { margin: 0; }
.cmp .q { color: var(--muted); margin: 2px 0 14px; font-size: 14px; }
.cmp .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp figure { margin: 0; }
.cmp video::cue { font-size: 13px; line-height: 1.35; background: rgba(0,0,0,.72); }
.compare-grid.three .cmp video::cue { font-size: 12px; }
.cmp video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--bg2); display: block; }
.cmp figcaption { font-size: 14px; margin-top: 8px; }
.cmp figcaption b { display: block; }
.cmp figcaption span { color: var(--muted); display: block; margin: 2px 0 6px; }
.cmp figcaption .cu { display: inline; color: var(--muted); font-size: 12px; margin: 0 0 0 8px; font-weight: 500; white-space: nowrap; }
.cmp figcaption .verdict { display: inline-block; margin: 0; }
.cmp .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.seedance { margin-top: 40px; }
.seedance summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; margin-bottom: 12px; border-radius: var(--r-sm); }
.seedance summary::-webkit-details-marker { display: none; }
.seedance summary::before { content: ""; align-self: center; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .16s; }
.seedance[open] summary::before { transform: rotate(45deg); }
.seedance-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.seedance-count { font-size: 14px; color: var(--muted); }
.seedance-intro { color: var(--muted); margin: 0 0 16px; font-size: 16px; max-width: 760px; }
.compare-grid.three { grid-template-columns: repeat(3, 1fr); }
.compare-grid.three .pair { grid-template-columns: 1fr; }
/* the cards of a row share their rows: titles, subtitles, videos, model lines, notes and verdicts line up across them */
@media (min-width: 981px) {
  .compare-grid { grid-template-rows: repeat(7, auto); row-gap: 0; }
  .compare-grid.three { grid-template-rows: repeat(11, auto); }
  .compare-grid > .cmp { display: grid; grid-template-rows: subgrid; grid-row: span 7; }
  .compare-grid.three > .cmp { grid-row: span 11; }
  .cmp .pair { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .compare-grid.three .cmp .pair { grid-row: span 8; }
  .cmp figure { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .cmp figcaption { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-items: start; }
  .cmp figcaption .verdict { justify-self: start; align-self: start; }
  .compare-grid.three .pair figure + figure .cmp-frame { margin-top: 16px; }
}

/* how a take becomes a character */
.replay { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.replay-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-items: start; }
.lane-col { display: grid; gap: 14px; align-content: start; }
.lane h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.lane .track { position: relative; display: grid; gap: 6px; }
.step { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg2); overflow: hidden; font-size: 14px; }
.step .fill { position: absolute; inset: 0; background: var(--accent-soft); z-index: 0; transform: scaleX(0); transform-origin: left; }
.step.done .fill { transform: scaleX(1); }
.step > *:not(.fill) { position: relative; z-index: 1; }
.step .m { color: var(--muted); font-size: 12px; display: block; }
.step .n { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.step.done .n { color: var(--ink); }
.replay-foot { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; font-size: 14px; }
.live-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.shoot { margin-top: 44px; }
.shoot h3 { font-size: 28px; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.rules li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rules li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.numbers { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 18px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 28px; white-space: nowrap; margin-bottom: 6px; }
.stat span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* make your own: one border level, the band's */
.takeaway-band {
  margin: 0; background: transparent;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 32px; align-items: start;
}
.takeaway-head h2 { margin: 0 0 10px; }
.takeaway-head p { margin: 0; color: var(--muted); font-size: 16px; }
.takeaway-band .dl-pair { align-self: center; }
.takeaway-band .dl { background: transparent; }
@media (hover: hover) and (pointer: fine) { .takeaway-band .dl:hover { border-color: var(--ink); } }
.takeaway-band .quickstart, .takeaway-foot { grid-column: 1 / -1; }
.quickstart { border-top: 1px dashed var(--line); padding-top: 16px; font-size: 14px; }
.quickstart h3 { margin: 0 0 8px; font-size: 16px; }
.quickstart ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }
.quickstart code { font-family: var(--mono); font-size: 12px; background: var(--bg2); padding: 1px 5px; border-radius: var(--r-sm); color: var(--ink); overflow-wrap: anywhere; }
.quickstart a { border-radius: 4px; }
.quickstart-prompt { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg2); border-radius: var(--r-md); font-size: 14px; color: var(--ink); }

/* quickstart dialog */
.sheet { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); }
.sheet-mid { width: min(820px, calc(100vw - 48px)); }
.sheet-wide { width: min(1280px, 90vw); max-width: none; max-height: 90vh; }   /* about 90 % of the window, up to 1280 px */
.sheet-mid .sheet-inner, .sheet-wide .sheet-inner { padding: 32px; gap: 14px; }
.sheet-wide h3 { font-size: 26px; padding-right: 48px; }
.sheet-wide h4 { margin: 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.howmade-lede { margin: 0; font-size: 16px; color: var(--muted); max-width: 72ch; }
.howmade-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.howmade-steps h4 { margin: 0 0 4px; }
.howmade-steps p { margin: 0; font-size: 14px; }
.howmade-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }   /* four in a row, or 2x2, never 3 + 1 */
@media (max-width: 1200px) { .howmade-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-role { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.hm-role h5 { margin: 0 0 10px; font-size: 16px; color: var(--role, var(--ink)); }
.hm-role ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.hm-role li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.hm-role li .m { color: var(--muted); }
.hm-role li .n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.hm-role .total { display: flex; justify-content: space-between; margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 650; }
.hm-role .total span:last-child { font-family: var(--mono); }
.howmade-verdicts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 14px; }
.howmade-verdicts b { display: block; margin-bottom: 2px; }
.howmade-verdicts .verdict { font-size: 11px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; }
.howmade-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2px 0 4px; font-size: 14px; }
.howmade-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
.howmade-links .dlc-icon { width: 20px; height: 20px; }
.sheet::backdrop { background: rgba(0,0,0,.55); }
.sheet { overscroll-behavior: contain; }
html:has(dialog[open]) { overflow: hidden; }   /* the page behind a dialog stays put (round 4, R4-3) */
.sheet-inner { position: relative; padding: 24px; display: grid; gap: 12px; }
.sheet-inner h3 { margin: 0; font-size: 20px; }
.sheet-inner .quickstart { border-top: 1px dashed var(--line); }
.sheet-inner > .btn { justify-self: start; }
.sheet-kicker { margin: 0; font-size: 12px; color: var(--muted); }
.sheet-close { position: sticky; top: 10px; z-index: 2; display: block; margin: 10px 10px -54px auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--control-line); background: var(--bg2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }   /* stays in reach while a long dialog scrolls */

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 32px 28px; display: flex; gap: 20px; align-items: center; }
.foot .logo { height: 20px; width: auto; flex: none; }
.foot p { margin: 0; }
.foot p a { color: inherit; text-underline-offset: 3px; }
/* the shared runtime mounts its links in this bar; its colours follow the page theme */
.foot-bar { --exploration-footer-bg: var(--bg2); --exploration-footer-ink: var(--ink); --exploration-footer-border: var(--line); }
.foot-downloads { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-dl { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; border-radius: 4px; }

/* one focus ring everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, .dl:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.brand:focus-visible, .nav a:focus-visible, .takeaway-help:focus-visible, .foot-dl:focus-visible, .quickstart a:focus-visible { border-radius: var(--r-sm); }

/* touch screens: thumb-sized targets */
@media (pointer: coarse) {
  .play-as button, .seg button, .theme, .takeaway-help, .btn.small, .copy-prompt { min-height: 44px; }
  .play-as button { padding: 10px 14px; font-size: 14px; }
  .theme { min-width: 44px; }
  .quickstart a { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .slider { pointer-events: none; }
  .top .nav a { min-height: 44px; }   /* wins over the section row's 40 px */
  .foot-inner a { display: inline-block; padding-block: 13px; margin-block: -13px; }
  #cast .block-head a { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .seedance > summary { min-height: 44px; align-items: center; }
  .round.sm { width: 44px; height: 44px; }
  .tp-voice button { min-height: 44px; }
}

/* wide screens: give the reveal the room */
@media (min-width: 1600px) {
  main, .foot-inner { max-width: 1400px; }
}

/* tablets and small laptops: the section links move to a second header row, the steps to a row of their own */
@media (max-width: 1100px) {
  .transport { grid-template-areas: "steps steps steps steps steps steps steps" "play prev next . voice loop fs"; }
  .hero-player { --hero-below: 132px; }   /* two rows of transport */
}
/* short laptop windows: the eyebrow goes, so the stage and the whole transport fit the first screen (round 6, A22) */
@media (max-height: 820px) and (min-width: 981px) {
  .hero-title .eyebrow { display: none; }
  .hero-player { --hero-above: 124px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 28px; }
  .hero-title { margin-bottom: 16px; }
  h1 { font-size: clamp(40px, 6vw, 56px); }
  h1 .l { display: block; }
  .hero-foot { grid-template-columns: 1fr; }
  .takeaway-hero { margin-top: 14px; }
  .howmade-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howmade-steps, .howmade-verdicts { grid-template-columns: 1fr; }
  .theme-label { display: none; }
  .theme { padding: 0; width: 40px; }
  .cast-grid { grid-template-columns: 1fr; }
  .film { order: -1; }
  .compare-grid, .compare-grid.three { grid-template-columns: 1fr; }
  .compare-grid.three .pair { grid-template-columns: 1fr 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .takeaway-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header: 52px; }
  .top { height: 52px; padding: 0 16px; gap: 10px; }
  .nav { display: none; }   /* "How it's made" stays in the hero's links */
  .theme { margin-left: auto; }
  .hero-head { flex-direction: column; align-items: stretch; }
  .dl-compact { width: 100%; }
  .dlc { flex: 1; min-width: 0; padding: 6px 10px; }
  .dlc { column-gap: 6px; grid-template-columns: 18px minmax(0, 1fr); }
  .dlc-icon { width: 18px; height: 18px; }
  .dlc-kind { font-size: 10px; white-space: normal; }
  .dlc-title { font-size: 13px; line-height: 1.25; white-space: normal; }
  .crumb { margin-left: -4px; padding-left: 10px; }
  main { padding: 0 16px; }
  .hero { padding: 16px 0 36px; }
  .eyebrow { display: none; }
  h1 { font-size: min(40px, 10.2vw); }
  h1 .l { display: inline-block; }   /* "One actor. No suit." shares a line when it fits: two lines from 320 px up */
  .hero-title { margin-bottom: 12px; }
  .disclosure { font-size: 13px; margin-top: 8px; }
  .lead { font-size: 16px; margin-top: 0; }
  .takeaway-hero { display: block; margin: 10px 0 20px; }
  .hero-player { border-radius: var(--r-md); }
  .transport { gap: 6px; padding: 8px; grid-template-columns: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "steps steps steps steps steps" "play prev next . fs" "voice voice voice voice loop"; }
  .tp-voice { justify-self: stretch; }
  .tp-voice button { flex: 1; }
  .cast-step { gap: 6px; padding: 4px 6px 4px 4px; }
  .cast-step img { width: 24px; height: 32px; }
  .cast-step-name { font-size: 13px; }
  .howmade-roles { grid-template-columns: 1fr; }
  .takeaway-hero .takeaway-links { margin-top: 0; }
  .sheet-mid, .sheet-wide { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }   /* full screen on phones (the UA caps a dialog at 100% - 38px) */
  .sheet-mid .sheet-inner, .sheet-wide .sheet-inner { padding: 22px 18px; }
  .block { padding: 44px 0; }
  .dl { padding: 10px 12px; gap: 8px; }
  .dl-icon { display: none; }
  .dl-kind { font-family: inherit; font-size: 12px; }
  .dl-title { font-size: 14px; line-height: 1.3; }
  .dl-line { font-size: 12px; line-height: 1.35; }
  .script li { grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 12px 8px; }
  .script .who { grid-column: 2; }
  .script .line { grid-column: 1 / -1; }
  .script .play-as { grid-column: 1 / -1; justify-content: flex-start; }
  .cmp .pair, .compare-grid.three .pair { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; padding: 28px 16px; }
  .btn.top-create { padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 400px) {
  .top { gap: 8px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .nav { gap: 12px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 24px; }
  .brand .logo { height: 20px; }
  .crumb { font-size: 13px; padding-left: 8px; margin-left: -2px; gap: 4px; }
  .btn.top-create { padding: 6px 10px; }
  .dl-pair { gap: 6px; }
}
@media (max-width: 400px) {
  .hero { padding-top: 10px; }
  .hero-title { margin-bottom: 8px; }   /* Play inside a 320x568 first screen (round 6, B33) */
  .disclosure { font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
  .transport { padding: 6px; }
  .seg-long { display: none; }   /* "Character" and "Actor": the group is labelled Voice */
  #replayRoles button { padding: 7px 9px; font-size: 13px; }   /* four roles since the raven speaks */
}
@media (max-width: 480px) {
  .cast-step img { display: none; }   /* four names fit a phone's width; the stage tag shows who it is */
  .cast-step { justify-content: center; padding: 4px; }
}
@media (max-width: 359px) {
  .top-create { display: none; }
}
/* short screens (a phone held sideways): a slim header, no section row, the title beside the reveal */
@media (max-height: 500px) {
  :root { --header: 52px; }
  .top { height: 52px; min-height: 0; padding-top: 0; flex-wrap: nowrap; }
  .nav { display: none; }
  .theme { margin-left: auto; }
}
@media (max-height: 500px) and (min-width: 700px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "title player" "take player" "info info"; column-gap: 24px; padding-top: 16px; }
  .hero-title { grid-area: title; margin: 0; }
  .hero-player { grid-area: player; align-self: start; --hero-above: 16px; --hero-below: 62px; }
  .hero-foot { display: contents; }
  .hero-info { grid-area: info; margin-top: 14px; }
  .takeaway-hero { grid-area: take; display: block; margin: 12px 0 0; }
  .eyebrow { display: none; }
  h1 { font-size: 34px; }
  h1 .l { display: block; }
  .disclosure { font-size: 12.5px; }
  .transport { gap: 6px; padding: 6px 8px; grid-template-columns: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "play prev next steps fs" "voice voice voice voice loop"; }
  .tp-voice { justify-self: stretch; } .tp-voice button { flex: 1; }
  .cast-step { justify-content: center; padding: 4px; }
  .cast-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the thumbnail shows; the name is read */
  .dl-line, .dl-icon, .dl-kind-what { display: none; }
  .dl-kind { font-family: inherit; font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .spinner { animation: none; }
  .btn:active { transform: none; }
}

/* Emmanuel review 3: the downloads live in the top bar, the theme switch is an icon */
.nav a.nav-dl { gap: 6px; color: var(--ink); font-weight: 600; }
.nav a.nav-dl .dlc-icon { grid-row: auto; width: 18px; height: 18px; }
.theme-label { display: none; }
.theme { min-width: 44px; justify-content: center; }
