/* Hybrid deck — tokens, stage, layouts, fragments, UI. All layout is in stage px (1920x1080). */

:root {
  --paper: #F6F1E3;
  --ink: #1F1D1A;
  --ink-soft: #5B564E;
  --yellow: #D9A520;
  --yellow-deep: #B8860B;
  --green: #2F4F3A;
  --green-soft: #6E8B74;
  --grey: #B9B3A6;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  --t-scene: 350ms;
  --t-frag: 450ms;
  --card-shadow: 0 1px 0 rgba(31, 29, 26, 0.18), 0 12px 28px rgba(31, 29, 26, 0.12);
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
* { box-sizing: border-box; }
html.shoot, html.shoot * { cursor: none !important; }

/* ---------- stage ---------- */
.viewport { position: fixed; inset: 0; background: var(--paper); }
.stage {
  position: absolute;
  left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--paper);
}
.scene {
  position: absolute; inset: 0;
  display: none;
  overflow: hidden;
  background: var(--paper);
}
.scene.active { display: block; z-index: 1; }
.scene.leaving { display: block; z-index: 2; pointer-events: none; animation: sceneOut var(--t-scene) ease both; }
html.instant .scene.leaving { animation: none !important; display: none; }
@keyframes sceneOut { from { opacity: 1; } to { opacity: 0; } }

/* full-bleed picture(s) */
.shots { position: absolute; inset: 0; overflow: hidden; z-index: 0; isolation: isolate; } /* shot z-indexes stay inside */
img.bg {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
img.bg.shot { opacity: 0; }
img.bg.shot.base { opacity: 1; }
.overlay-svg { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }
.leaders { z-index: 3; }
.fx { z-index: 4; }

/* sprites (ink on white → multiply) */
/* multiply on the positioned/animated element itself: a child blend would only see the (transparent) parent */
.sprite { position: absolute; transform-origin: 50% 100%; mix-blend-mode: multiply; }
.sprite img { display: block; width: 100%; height: auto; }
.sprite.flip img { transform: scaleX(-1); }
.clip { position: absolute; overflow: hidden; }

/* ---------- fragments ---------- */
.frag { visibility: hidden; opacity: 0; }
.frag.on { visibility: visible; opacity: 1; }
.frag.on.fade { animation: fadeIn var(--t-frag) ease-out both; }
.frag.on.rise { animation: riseIn var(--t-frag) cubic-bezier(0.22, 0.61, 0.36, 1) both; } /* THE text reveal: 450 ms ease-out */
.frag.on.vfade { animation: fadeIn 500ms ease-out both; } /* video inset */
.frag.on.grow { animation: growIn 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
.frag.on.growx { animation: growXIn 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-box: fill-box; transform-origin: 0% 50%; }
.frag.on.pop { animation: popIn 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-box: fill-box; transform-origin: 50% 50%; }
.frag.on.draw, .frag.on.count { animation: fadeIn 200ms ease-out both; }
/* wall writing (REVISION2 A1): a soft, slanted left→right wipe = an animated gradient mask (per-line --wipe-ms) */
.frag.on.wipe { animation: wallWipe var(--wipe-ms, 900ms) cubic-bezier(0.35, 0.05, 0.45, 1) both; }
@keyframes wallWipe {
  from { -webkit-mask-position: 100% 0%; mask-position: 100% 0%; }
  to { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; }
}
html.instant .frag, html.shoot .frag, html.mirror .frag, .scene.instant .frag { animation: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes growIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growXIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .frag, .scene { animation: none !important; }
}

/* ---------- typography ---------- */
.hand { font-family: var(--hand); }
.big { font-family: var(--hand); font-size: 84px; line-height: 0.95; color: var(--yellow-deep); font-weight: 600; }
.label { font-size: 26px; line-height: 1.3; color: var(--ink); }
.muted { color: var(--ink-soft); }
.italic { font-style: italic; }
h1, h2, h3, p { margin: 0; font-weight: 400; }

/* bands (safe text zones) */
.band { position: absolute; left: 0; right: 0; padding: 48px 120px; display: flex; gap: 36px; align-items: flex-start; }
.band.top { top: 0; height: 320px; }
.band.bottom { bottom: 0; height: 320px; align-items: flex-end; padding-bottom: 72px; }
.band.center { justify-content: center; }

/* cards — ONE text style for every text block that appears on a click (REVISION1 A2):
   paper card, 1.5 px ink border, 18 px padding, Fraunces 26 (head 30/600), small-caps kicker in yellow, reveal .rise */
.card, .callout, .note-card {
  position: absolute;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 18px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.35;
}
.card.static, .note-card.static { position: relative; }
.card .kicker, .note-card .kicker { font-size: 20px; font-weight: 600; color: var(--yellow-deep); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.2; }
.card .head, .note-card .head { font-size: 30px; font-weight: 600; line-height: 1.15; margin-bottom: 8px; }
.card .text, .note-card .text { font-size: 26px; line-height: 1.35; color: var(--ink); }
.card .lines p, .note-card .items p { font-size: 26px; line-height: 1.35; margin: 0; }
.note-card .items p + p { margin-top: 6px; }
.note-card .items b { font-weight: 600; }
.note-card .src { font-size: 20px; color: var(--ink-soft); margin-top: 10px; }
.note-card.align-center { text-align: center; }
.note-card.align-right { text-align: right; }
.note-card.compact { font-size: 22px; padding: 12px 16px 14px; }
.note-card.compact .head { font-size: 26px; margin-bottom: 4px; }
.note-card.compact .text { font-size: 22px; line-height: 1.3; }
.note-card.colored .text { color: inherit; }
/* plain note (REVISION2 A2): the same text, no card — for data/chart layouts and empty wall areas */
.note-card.plain { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.note-card.plain.compact { padding: 0; }
.callout .big { margin-bottom: 4px; }
.callout .label { font-size: 26px; line-height: 1.3; }
.callout.row { display: flex; align-items: center; gap: 22px; padding: 12px 28px 14px; }
.callout.row .big { margin: 0; }
.callout.label-only { padding: 16px 28px 18px; }
.leader-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.leader-dot { fill: var(--ink); }

.stat { display: flex; flex-direction: column; }
.stat .big { margin-bottom: 4px; }
.stat .label { font-size: 26px; line-height: 1.3; }
.stat-row { display: flex; gap: 48px; }
.stat-row .stat { flex: 1; }

/* pills: ctx.pills() items are short note cards; .pill.green / .pill.yellow are filled STATUS pills (divider, papers) */
.pills { display: flex; gap: 20px; flex-wrap: wrap; }
.pills.stack { flex-direction: column; align-items: center; }
.pill {
  display: inline-block;
  padding: 10px 24px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 26px;
  line-height: 1.3;
  box-shadow: var(--card-shadow);
}
.note-card.pill { padding: 10px 24px 12px; }
.pill.green, .pill.yellow { border-radius: 999px; font-size: 24px; padding: 8px 22px; box-shadow: none; }
.pill.green { background: var(--green); color: var(--paper); border-color: var(--green); }
.pill.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* banner = a wide, centred note card (never black) */
.note-card.banner { left: 120px; right: 120px; text-align: center; }
.banner.bottom { bottom: 72px; }
.banner.top { top: 56px; }

/* note row = one note card per item */
.note-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.note-row .note-card { flex: 0 1 auto; }

/* camera layers (follow the camera of a picture) and the video inset */
.cam-layer { position: absolute; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.cam-layer .video-inset { pointer-events: auto; }
.video-inset { position: absolute; }
.video-inset video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink), var(--card-shadow); }
.video-inset .note-card.vlabel { position: absolute; left: 0; top: calc(100% + 18px); }
/* flatten(): the dim layer over the picture (below the video layer), fades to `dim` */
/* player controls over the flat video (v2.4) */
.vctl { position: absolute; opacity: 0; visibility: hidden; cursor: pointer; border-radius: 3px; overflow: hidden; }
.vctl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; padding: 14px 26px 0; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(rgba(31, 29, 26, 0), rgba(31, 29, 26, 0.78)); color: var(--paper); font-family: var(--serif); font-size: 22px;
  opacity: 0; transition: opacity 250ms ease; cursor: default; }
.vctl:hover .vctl-bar, .vctl.paused .vctl-bar { opacity: 1; }
.vctl-play { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vctl-play .i-pause, .vctl.paused .vctl-play .i-play { display: block; }
.vctl-play .i-play, .vctl.paused .vctl-play .i-pause { display: none; }
.vctl-time { min-width: 64px; font-variant-numeric: tabular-nums; }
.vctl-seek { flex: 1 1 auto; height: 6px; accent-color: var(--yellow); cursor: pointer; }
.video-dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }

/* wall writing (REVISION2 A1): charcoal Caveat, multiply-blended with the picture. The blend sits on the camera LAYER
   (a transformed element is an isolated group: a blend on a child would only see its transparent parent); the block
   carries the rotation, the opacity and the roughening filter (#deck-rough), each line its own wipe mask. */
.cam-layer.wall-layer { mix-blend-mode: multiply; }
.wall-text { position: absolute; transform-origin: 0 0; font-family: var(--hand); font-weight: 600; color: #3a3733; opacity: 0.88; }
.wall-text.align-center { text-align: center; }
.wall-text.align-right { text-align: right; }
.wall-line {
  font-size: 64px; line-height: 1.1; letter-spacing: 0.01em;
  filter: blur(0.3px);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 50%, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(100deg, #000 0%, #000 50%, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0%; mask-position: 0% 0%;
}
.wall-line + .wall-line { margin-top: 0.08em; }

/* brace (REVISION2 A5) */
.overlay-svg.brace { overflow: visible; }
.brace-path { fill: none; stroke: var(--ink); stroke-width: 2; }

/* papers (s03b): three cards side by side on paper */
.papers { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 60px 120px 90px; }
.papers-title { font-size: 44px; font-weight: 600; }
.papers-row { display: flex; gap: 60px; align-items: stretch; justify-content: center; width: 100%; }
.paper-card {
  position: relative; flex: 0 0 520px; width: 520px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: var(--card-shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.paper-card .vignette { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--grey); border-radius: 3px; background: var(--paper); }
.paper-card .vignette img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(0.9); }
.paper-card .head-row { display: flex; align-items: baseline; gap: 16px; margin-top: 6px; }
.paper-card .num { font-family: var(--hand); font-size: 72px; line-height: 0.9; color: var(--yellow); font-weight: 600; flex: 0 0 auto; }
.paper-card .head { font-size: 30px; font-weight: 600; line-height: 1.15; }
.paper-card .role { font-size: 26px; line-height: 1.3; }
.paper-card .setting { font-size: 22px; line-height: 1.3; color: var(--ink-soft); }
.paper-card .status { align-self: center; text-align: center; margin-top: 6px; font-size: 20px; padding: 6px 18px; }

.source { position: absolute; font-size: 20px; color: var(--ink-soft); font-style: italic; }

/* ---------- layouts ---------- */
/* title */
.title-block { position: absolute; left: 120px; top: 72px; width: 1500px; }
.title-block h1 { font-size: 72px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 14px; }
.title-block h2 { font-size: 36px; line-height: 1.25; color: var(--ink); margin-bottom: 20px; max-width: 1350px; }
.title-block p { font-size: 26px; line-height: 1.35; color: var(--ink-soft); }

/* hero */
.question-card { max-width: 1380px; }
.question-card .kicker { font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 8px; }
.question-card .text { font-size: 34px; line-height: 1.35; }

/* split */
.split { position: absolute; inset: 0; display: flex; }
.split .figure { position: relative; flex: 0 0 46%; height: 100%; background: var(--paper); }
.split .figure img.fig {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 50%;
}
.split .content { position: relative; flex: 1 1 auto; height: 100%; padding: 80px 100px 80px 60px; }
.split.image-right { flex-direction: row-reverse; }
.split.image-right .content { padding: 80px 60px 80px 100px; }
.vignette-edge {
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 50%, #000 62%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 66% 60% at 50% 50%, #000 62%, rgba(0,0,0,0) 100%);
}
.levels { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; gap: 24px; }
.level { position: relative; width: 300px; }
.level .head { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.level .row { font-size: 22px; line-height: 1.3; color: var(--ink-soft); }
.level .row b { color: var(--ink); font-weight: 600; }
.columns { display: flex; gap: 48px; }
.column { flex: 1; }
.column .head { font-size: 36px; font-weight: 600; margin-bottom: 16px; }
.column ul { margin: 0; padding-left: 0; list-style: none; }
.column li { font-size: 28px; line-height: 1.35; padding: 8px 0 8px 26px; position: relative; }
.column li::before { content: ''; position: absolute; left: 0; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }

/* data: chart + vignette */
.data { position: absolute; inset: 0; display: flex; }
.data .chart-col { position: relative; flex: 0 0 58%; height: 100%; padding: 60px 40px 60px 80px; display: flex; align-items: center; justify-content: center; }
.data .figure-col { position: relative; flex: 1 1 auto; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px; }
.data.chart-right { flex-direction: row-reverse; }
.data.chart-right .chart-col { padding: 60px 80px 60px 40px; }
.data .figure-col img.fig {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 50%;
  filter: saturate(0.85) contrast(0.97);
}
.chart { overflow: visible; }
.chart text { font-family: var(--serif); fill: var(--ink); }
.chart .hand { font-family: var(--hand); }
.chart .title { font-size: 34px; font-weight: 600; }
.chart .lbl { font-size: 28px; }
.chart .val { font-size: 30px; font-weight: 600; }
.chart .tick { font-size: 24px; fill: var(--ink-soft); }
.chart .axis-label { font-size: 24px; fill: var(--ink-soft); font-style: italic; }
.chart .note { font-size: 26px; fill: var(--ink); font-weight: 600; }
/* chart notes and ring-overlay cards are real note cards inside <foreignObject> */
.chart foreignObject, .ring-overlay foreignObject { overflow: visible; }
.fo-wrap { display: flex; width: 100%; height: 100%; align-items: flex-start; justify-content: flex-start; }
.fo-wrap.v-end { align-items: flex-end; }
.fo-wrap.v-center { align-items: center; }
.fo-wrap.h-center { justify-content: center; }
.fo-wrap.h-end { justify-content: flex-end; }
.fo-wrap .note-card { position: relative; }
/* a chart's takeaway, lifted out of the chart column by deck.js: one line centred on the stage, above the source line */
.takeaway-band { position: absolute; left: 0; right: 0; bottom: 140px; display: flex; justify-content: center; pointer-events: none; z-index: 3; }
.takeaway-band .note-card { position: relative; max-width: 1560px; text-align: center; }
.ring-overlay { overflow: visible; }
.ring-overlay .ring-seg { fill: none; stroke-linecap: round; }
.ring-overlay .station-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.chart .src { font-size: 20px; fill: var(--ink-soft); font-style: italic; }
.chart .hair { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.chart .hair.soft { stroke: var(--grey); }
.chart .dnf { font-size: 24px; fill: var(--ink-soft); font-style: italic; }
.chart .legend { font-size: 26px; font-weight: 600; }

/* divider */
.divider-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  background: rgba(246, 241, 227, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 72px 64px 72px 96px;
  display: flex; flex-direction: column; justify-content: center;
}
.divider-panel .number { font-family: var(--hand); font-size: 220px; line-height: 0.85; color: var(--yellow); font-weight: 600; margin-bottom: 18px; }
.divider-panel .title { font-size: 56px; font-weight: 600; line-height: 1.1; margin-bottom: 22px; }
.divider-panel .question { font-size: 30px; font-style: italic; line-height: 1.35; color: var(--ink); margin-bottom: 30px; }
.divider-panel .pill { align-self: flex-start; font-size: 24px; }
.divider-panel .contrast { margin-top: 36px; font-size: 26px; line-height: 1.45; color: var(--ink); }
.divider-panel .contrast p { margin-bottom: 8px; }

/* video */
.video-wrap { position: absolute; left: 220px; top: 60px; width: 1480px; }
.video-wrap video { display: block; width: 1480px; height: auto; background: #000; border: 10px solid var(--paper); border-radius: 4px; box-shadow: var(--card-shadow); cursor: pointer; }
.video-wrap .vlabel { margin-top: 20px; font-size: 26px; color: var(--ink-soft); text-align: center; }
.backdrop { opacity: 0.2; }

/* close */
.closing { position: absolute; left: 0; right: 0; top: 70px; text-align: center; }
.closing p { font-size: 44px; line-height: 1.3; }
.closing p.thanks { font-size: 30px; margin-top: 18px; color: var(--ink-soft); font-style: italic; }

/* placeholder (stub scenes) */
.placeholder-title { position: absolute; left: 120px; top: 56px; padding: 14px 28px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: var(--card-shadow); font-size: 40px; font-weight: 600; }
.placeholder-title small { display: block; font-size: 20px; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }

/* ---------- UI chrome ---------- */
.ui { position: absolute; z-index: 20; }
#act { left: 40px; bottom: 22px; font-family: var(--hand); font-size: 28px; color: var(--ink-soft); pointer-events: none; }
#counter { right: 40px; bottom: 26px; font-size: 20px; color: var(--ink-soft); pointer-events: none; }
#toast { left: 50%; top: 40px; transform: translateX(-50%); padding: 10px 24px; background: var(--ink); color: var(--paper); font-size: 28px; border-radius: 6px; display: none; }
#notes {
  left: 0; right: 0; bottom: 0;
  background: rgba(246, 241, 227, 0.94);
  border-top: 1.5px solid var(--ink);
  padding: 18px 220px 20px 40px;
  font-size: 22px; line-height: 1.4;
  max-height: 200px; overflow: hidden;
  display: none;
}
#notes.open { display: block; }
#notes b { font-weight: 600; margin-right: 10px; }
#overview {
  inset: 0; background: rgba(246, 241, 227, 0.97);
  display: none; padding: 50px 60px; overflow: hidden;
  grid-template-columns: repeat(6, 1fr); gap: 20px 18px; align-content: start;
}
#overview.open { display: grid; }
#overview .tile { cursor: pointer; border: 1.5px solid transparent; border-radius: 6px; padding: 6px; }
#overview .tile:hover, #overview .tile.current { border-color: var(--ink); background: #fff; }
#overview .tile .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid var(--grey); background: var(--paper); }
#overview .tile .cap { font-size: 18px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#overview .tile .cap b { font-weight: 600; margin-right: 6px; }
#help {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 820px; padding: 36px 48px;
  background: var(--paper); border: 1.5px solid var(--ink); box-shadow: var(--card-shadow); border-radius: 6px;
  display: none; font-size: 24px; line-height: 1.5;
}
#help.open { display: block; }
#help h3 { font-size: 32px; font-weight: 600; margin-bottom: 12px; }
#help table { border-collapse: collapse; }
#help td { padding: 3px 24px 3px 0; vertical-align: top; }
#help kbd { font-family: var(--serif); font-weight: 600; background: #fff; border: 1px solid var(--grey); border-radius: 4px; padding: 0 8px; }

/* ---------- presenter window ---------- */
body.presenter { overflow: auto; background: #2b2924; color: var(--paper); }
body.presenter .viewport { display: none; }
#presenter { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 420px; grid-template-rows: auto 1fr; gap: 16px; padding: 16px; }
#presenter .cur { grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; }
#presenter .frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--paper); border: 2px solid #777; overflow: hidden; }
#presenter .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#presenter .side { display: flex; flex-direction: column; gap: 12px; }
#presenter .clock { font-size: 44px; font-variant-numeric: tabular-nums; }
#presenter .clock small { font-size: 18px; color: #bbb; margin-left: 10px; }
#presenter .pos { font-size: 22px; color: #ddd; }
#presenter .next-label { font-size: 16px; color: #bbb; text-transform: uppercase; letter-spacing: 0.08em; }
#presenter .narr { font-size: 22px; line-height: 1.45; overflow: auto; padding: 14px 16px; background: #1f1d1a; border-radius: 6px; flex: 1; }
#presenter .narr h4 { margin: 0 0 8px; font-weight: 600; font-size: 20px; color: var(--yellow); }
#presenter .keys { font-size: 14px; color: #999; }
