:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --ink: #161C33;
  --body: #454D6B;
  --muted: #6B7390;
  --line: #DDE2EE;
  --brand: #2D4897;
  --brand-soft: #E6EAF5;
  --accent: #E58A3A;
  --accent-ink: #8A4A10;
  --shadow: 0 1px 2px rgba(22, 28, 51, .06), 0 8px 24px rgba(22, 28, 51, .06);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11152A; --surface: #1A2038; --ink: #EEF1FA; --body: #BCC4DD; --muted: #8E98B8;
    --line: #2A3150; --brand: #8EA5EC; --brand-soft: #222A49; --accent: #F0A262; --accent-ink: #F0A262;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11152A; --surface: #1A2038; --ink: #EEF1FA; --body: #BCC4DD; --muted: #8E98B8;
  --line: #2A3150; --brand: #8EA5EC; --brand-soft: #222A49; --accent: #F0A262; --accent-ink: #F0A262;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.5 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
main:focus { outline: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { display: block; height: 22px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: var(--line); }
.brand-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav a {
  font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.topnav a:hover { color: var(--ink); background: var(--brand-soft); }
.topnav a[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 760px) { .topnav { display: none; } .brand-sep, .brand-title { display: none; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- home ---------- */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin-top: 12px; }
.hero .lead { font-size: 20px; color: var(--body); margin-top: 18px; max-width: 34em; }
.hero-art { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #E9EDF5; }
.hero-art svg { display: block; width: 100%; height: 100%; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; } }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; }
.how-step .n { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.how-step h3 { font-size: 18px; }
.how-step p { font-size: 16px; color: var(--body); margin-top: 4px; }
.how-step .t { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

.topic { margin-bottom: 52px; scroll-margin-top: 80px; }
.topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--brand); padding-bottom: 10px; margin-bottom: 18px; }
.topic-head h3 { font-size: 30px; letter-spacing: -.01em; }
.topic-head p { color: var(--muted); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card-art { aspect-ratio: 16 / 9; background: #E9EDF5; position: relative; }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-play {
  position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.card-play svg { width: 18px; height: 18px; margin-left: 3px; }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-level { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .06em; text-transform: uppercase; }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.card-sum { font-size: 16px; color: var(--body); }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } }
.qcard { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.qrow { display: flex; gap: 12px; align-items: center; }
.qquote { font-size: 21px; font-weight: 700; line-height: 1.25; flex: 1; }
.qcard .ctx { color: var(--body); font-size: 16px; }
.qcard details { font-size: 16px; color: var(--body); }
.qcard summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.qcard details p { margin-top: 6px; }

.footer { color: var(--muted); font-size: 14px; padding: 32px 0 48px; border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--brand); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1B1306; }
.btn.icon { width: 42px; padding: 0; }
.btn.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; flex-shrink: 0; }

/* ---------- scene page ---------- */
.scene-page { padding: 24px 0 64px; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.scene-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.scene-head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.01em; margin-top: 6px; }

.player { background: #0E1328; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #0E1328; }
.player:fullscreen .stage { max-height: calc(100vh - 64px); width: auto; aspect-ratio: 16 / 9; margin: 0 auto; }
.stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #E9EDF5; container-type: inline-size; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.bubble {
  position: absolute; transform: translate(-50%, -100%); max-width: 44%;
  background: #FFFFFF; color: #161C33; border-radius: 16px; padding: .6em .9em;
  font-size: clamp(13px, 1.9cqw, 26px); line-height: 1.3; font-weight: 500;
  box-shadow: 0 6px 22px rgba(22, 28, 51, .18);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; text-wrap: pretty;
}
.bubble.show { opacity: 1; transform: translate(-50%, calc(-100% - 6px)); }
.bubble::after {
  content: ""; position: absolute; left: var(--tail, 50%); bottom: -9px; transform: translateX(-50%);
  border: 10px solid transparent; border-top-color: #FFFFFF; border-bottom: 0;
}
.bubble .who { display: block; font-size: .62em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--who, #2D4897); margin-bottom: .15em; }

.caption {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  max-width: 82%; text-align: center;
  background: rgba(14, 19, 40, .82); color: #F3F5FB; border-radius: 12px;
  padding: .5em 1em; font-size: clamp(13px, 1.8cqw, 24px); line-height: 1.3; font-style: italic;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.caption.show { opacity: 1; }
.caption .tag { font-style: normal; font-weight: 800; font-size: .7em; letter-spacing: .12em; text-transform: uppercase; color: #F0A262; margin-right: .6em; }

.nametag {
  position: absolute; transform: translateX(-50%); top: 70.5%;
  font-size: clamp(10px, 1.25cqw, 17px); font-weight: 700; color: #3A2A1E;
  background: #F6EBDD; padding: .1em .55em; border-radius: 6px; white-space: nowrap;
  transition: opacity .4s ease;
}
.nametag.ty { top: 91%; background: #2D4897; color: #FFFFFF; }

.overlay-start {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(14,19,40,.15), rgba(14,19,40,.55));
  border: 0; cursor: pointer; padding: 0;
}
.overlay-start .big {
  width: clamp(64px, 10cqw, 120px); height: clamp(64px, 10cqw, 120px); border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.overlay-start:hover .big { transform: scale(1.05); }
.overlay-start .big svg { width: 38%; height: 38%; margin-left: 6%; }
.overlay-start:focus-visible .big { outline: 4px solid #FFFFFF; outline-offset: 4px; }

.controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0E1328; color: #E6EAF5; }
.controls .btn { background: #1C2440; border-color: #2B3558; color: #E6EAF5; height: 38px; }
.controls .btn:hover { border-color: #8EA5EC; }
.controls .btn.icon { width: 38px; }
.progress { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 40px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: #2B3558; transition: background .2s ease; }
.progress span.done { background: #8EA5EC; }
.progress span.now { background: #F0A262; }
.controls .spacer { flex: 1; }
@media (max-width: 560px) { .controls .hide-sm { display: none; } }

/* ---------- ask + reveal ---------- */
.ask {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center;
}
.ask[hidden] { display: none; }
.ask .k { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.ask .q { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; margin-top: 6px; }
.ask .sub { color: var(--body); margin-top: 8px; font-size: 17px; }
.ask-tools { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 220px; }
.timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1; letter-spacing: -.02em; }
.timer.done { color: var(--accent-ink); }
@media (max-width: 760px) { .ask { grid-template-columns: 1fr; } .ask-tools { min-width: 0; } }

.reveal { margin-top: 20px; display: none; }
.reveal.show { display: block; animation: rise .35s ease both; }
.hint { background: var(--brand-soft); border-radius: 16px; padding: 18px 22px; font-size: 18px; color: var(--ink); }
.hint b { color: var(--brand); }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }
.move { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.move h3 { font-size: 19px; }
.move p { font-size: 16px; color: var(--body); }
.move .say { font-style: italic; color: var(--ink); }
.reveal-foot { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .reveal-foot { grid-template-columns: 1fr; } }
.check, .experts { border-radius: 16px; padding: 16px 20px; }
.check { background: var(--surface); border: 1px solid var(--line); }
.experts { background: var(--brand); color: #fff; min-width: 260px; }
.check .k, .experts .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.check .k { color: var(--brand); }
.experts .k { color: #C9D4FA; }
.check p, .experts p { margin-top: 4px; }

.transcript { margin-top: 20px; font-size: 16px; color: var(--body); }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.transcript ol { padding-left: 20px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.transcript .w { font-weight: 700; color: var(--ink); }
.transcript .i { font-style: italic; color: var(--muted); }

.next-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- stage internals (SVG) ---------- */
.person { transition: opacity .6s ease; }
.person .lean { transition: transform .5s cubic-bezier(.3,.7,.3,1); transform-box: fill-box; transform-origin: 50% 100%; }
.person .walk { transition: transform 1.6s ease-in, opacity 1.6s ease-in; }
.person .spot { opacity: 0; transition: opacity .25s ease; }
.person.speaking .spot { opacity: 1; }
.person .arm-up { opacity: 0; transition: opacity .25s ease; }
.person.hand .arm-up { opacity: 1; }
.dim .person:not(.keep), .dim .table-layer, .dim .ty-layer, .dim .props-layer > g:not(.keep) { opacity: .12; }
.corridor-tint { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.dim .corridor-tint { opacity: .5; }
.tear { animation: tear 1.4s ease-in infinite; }
.tear.t2 { animation-delay: .7s; }
@keyframes tear { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.clock-min { transform-box: fill-box; transform-origin: 50% 100%; }
.clock.spin .clock-min { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.door-panel { transition: transform .5s ease; transform-box: fill-box; transform-origin: 0 50%; }
.door-open .door-panel { transform: scaleX(.25); }
.lid { transition: transform .3s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.lid.closed { transform: scaleY(.12); }
.tissue { transition: transform .8s ease, opacity .4s ease; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- scene switcher in controls ---------- */
.stage-box { position: relative; }
.controls .sep { width: 1px; height: 24px; background: #2B3558; margin: 0 2px; }
.controls .btn:disabled { opacity: .35; cursor: default; }
.scene-select {
  height: 38px; max-width: 260px; min-width: 0; border-radius: 10px; padding: 0 30px 0 12px;
  background: #1C2440 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D2EE' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid #2B3558; color: #E6EAF5; font: 600 15px/1 'Source Sans 3', system-ui, sans-serif;
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.scene-select:hover { border-color: #8EA5EC; }
.scene-select:focus-visible { outline: 3px solid #8EA5EC; outline-offset: 2px; }
.scene-select option, .scene-select optgroup { background: #1C2440; color: #E6EAF5; }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1B1306; }

.endzone { margin-top: 20px; }
.endzone[hidden] { display: none; }
.endzone .ask { margin-top: 0; }
.endzone-nav { display: none; }
.present-head { display: none; }

/* ---------- presentation mode ---------- */
body.presenting { overflow: hidden; }
.presenting .topbar { display: none; }
.presenting .player {
  position: fixed; inset: 0; z-index: 100; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; background: #0B1022;
}
.presenting .present-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px; color: #C9D2EE; flex-shrink: 0;
}
.presenting .present-head p { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.presenting .ph-topic { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F0A262; white-space: nowrap; }
.presenting .ph-title { font-size: 18px; font-weight: 700; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presenting .ph-count { font-size: 14px; font-weight: 700; color: #8E9BBE; font-variant-numeric: tabular-nums; }
.presenting .stage-box { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.presenting .stage { width: min(100vw, calc((100vh - 106px) * 16 / 9)); border-radius: 0; }
.presenting .controls { flex-shrink: 0; padding: 8px 16px; }

.presenting .endzone {
  position: absolute; inset: 0; margin: 0; overflow: auto; z-index: 5;
  background: rgba(8, 12, 28, .9); backdrop-filter: blur(3px);
  padding: clamp(16px, 4vh, 48px) clamp(16px, 5vw, 80px);

}
.presenting .endzone > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.presenting .endzone .ask { padding: clamp(20px, 3vh, 36px) clamp(20px, 3vw, 40px); }
.presenting .endzone .ask .q { font-size: clamp(26px, 3vw, 46px); }
.presenting .endzone .ask .sub { font-size: clamp(16px, 1.4vw, 22px); }
.presenting .endzone .timer { font-size: clamp(44px, 5vw, 80px); }
.presenting .endzone .hint { font-size: clamp(17px, 1.5vw, 24px); }
.presenting .endzone .move h3 { font-size: clamp(18px, 1.6vw, 26px); }
.presenting .endzone .move p, .presenting .endzone .check p, .presenting .endzone .experts p { font-size: clamp(15px, 1.3vw, 21px); }
.presenting .endzone-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; }
.presenting .endzone-nav .btn:not(.primary) { background: #1C2440; border-color: #2B3558; color: #E6EAF5; }
.presenting .endzone-nav .btn:first-child { margin-right: auto; }
.presenting .transcript, .presenting .next-row, .presenting .crumbs, .presenting .scene-head { visibility: hidden; }

/* ---------- topic colours ---------- */
.topic, .scene-page, .topnav a { --topic-ink: var(--topic); --topic-soft: color-mix(in srgb, var(--topic) 12%, var(--surface)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topic, :root:not([data-theme="light"]) .scene-page, :root:not([data-theme="light"]) .topnav a { --topic-ink: color-mix(in srgb, var(--topic) 60%, #FFFFFF); }
}
:root[data-theme="dark"] .topic, :root[data-theme="dark"] .scene-page, :root[data-theme="dark"] .topnav a { --topic-ink: color-mix(in srgb, var(--topic) 60%, #FFFFFF); }

.topnav .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--topic); margin-right: 7px; vertical-align: 1px; }
.topnav a[aria-current="true"] { color: var(--topic-ink); background: var(--topic-soft); }

.topic .topic-head { border-bottom-color: var(--topic); }
.topic .topic-head h3 { display: flex; align-items: center; gap: 12px; color: var(--topic-ink); }
.topic .topic-head h3::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--topic); }
.topic .card { border-top: 5px solid var(--topic); }
.topic .card:hover { border-color: var(--topic); }
.topic .card-level { color: var(--topic-ink); }
.topic .card-play { background: var(--topic); color: #FFFFFF; }

.scene-page .eyebrow { color: var(--topic-ink); }
.scene-page .player { border-top: 5px solid var(--topic); }
.scene-page .progress span.now { background: color-mix(in srgb, var(--topic) 55%, #FFFFFF); }
.scene-page .progress span.done { background: color-mix(in srgb, var(--topic) 35%, #8EA5EC); }
.scene-page .overlay-start .big { background: var(--topic); color: #FFFFFF; }
.scene-page .caption .tag { color: color-mix(in srgb, var(--topic) 45%, #FFFFFF); }
.scene-page .ask { border-left: 6px solid var(--topic); }
.scene-page .ask .k { color: var(--topic-ink); }
.scene-page .ask-tools { min-width: 200px; }
.scene-page .ask-tools .btn.primary { background: var(--topic); border-color: var(--topic); }
.presenting .ph-topic { color: color-mix(in srgb, var(--topic) 50%, #FFFFFF); }
.presenting .player { border-top: 0; box-shadow: inset 0 5px 0 var(--topic); }
.presenting .endzone { display: flex; align-items: center; }
.presenting .endzone[hidden] { display: none; }
.presenting .endzone .ask { width: 100%; }
.presenting .endzone .ask .q { font-size: clamp(30px, 3.6vw, 56px); }

/* ---------- groups ---------- */
.group { scroll-margin-top: 80px; margin-bottom: 24px; }
.group + .group { border-top: 1px solid var(--line); padding-top: 48px; }
.group-head { margin-bottom: 36px; }
.group-head h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.02em; line-height: 1.05; margin-top: 8px; }
.group-head .lead { font-size: 19px; color: var(--body); margin-top: 10px; max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.chip:hover { border-color: var(--topic); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--topic); }
#topic-rychlovky { border-top: 1px solid var(--line); padding-top: 48px; }
