/* ===================================================================
   EmotionalChecklist.com — presentation deck ("dusk")
   Slides are designed on a fixed 1280×720 canvas and scaled by deck.js
   to fit whatever stage is available (projector, laptop, phone, thumbnail).
   =================================================================== */

:root {
  --d-ink: #0f131a;
  --d-ink-2: #161b25;
  --d-paper: #f3ecdf;
  --d-paper-dim: rgba(243, 236, 223, 0.7);
  --d-paper-faint: rgba(243, 236, 223, 0.42);
  --d-line: rgba(243, 236, 223, 0.14);
  --d-ember: #e8a24a;
  --d-ember-2: #f3c27a;
  --d-gold: #e5c076;
  --d-sage: #8fc0a6;
  --d-lav: #b5a8dc;
  --d-rose: #e39b8e;
  --accent: var(--d-ember);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
}

html.deck-html, body.deck-body { height: 100%; margin: 0; overflow: hidden; }
body.deck-body {
  background: var(--d-ink); color: var(--d-paper);
  font-family: var(--body); display: flex; height: 100vh; height: 100dvh;
}
body.deck-body a { color: var(--d-ember-2); }

/* ---------- stage & deck ---------- */
.stage { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.deck { position: absolute; inset: 0; overflow: hidden; }

.slide {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

/* ambient background per accent */
.slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--d-ink-2), var(--d-ink) 70%);
}
/* grain */
.slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.slide[data-accent='ember'] { --accent: var(--d-ember); }
.slide[data-accent='gold']  { --accent: var(--d-gold); }
.slide[data-accent='sage']  { --accent: var(--d-sage); }
.slide[data-accent='lav']   { --accent: var(--d-lav); }
.slide[data-accent='rose']  { --accent: var(--d-rose); }

/* the 1280×720 canvas */
.canvas {
  position: relative; z-index: 1;
  width: 1280px; height: 720px; flex: none;
  transform-origin: center center;
  padding: 72px 96px; box-sizing: border-box;
  display: flex; flex-direction: column;
  font-size: 24px; line-height: 1.4; color: var(--d-paper); font-family: var(--body);
}

/* ---------- typographic primitives (inside canvas) ---------- */
.canvas h1, .canvas h2, .canvas h3, .canvas .display {
  font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.02; letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
}
.canvas h1 { font-size: 84px; }
.canvas h2 { font-size: 62px; }
.canvas h3 { font-size: 34px; letter-spacing: -0.01em; }
.canvas p { margin: 0; }
.canvas .accent { color: var(--accent); }
.canvas .ital { font-family: var(--display); font-style: italic; font-weight: 400; }
.canvas .dim { color: var(--d-paper-dim); }
.canvas .faint { color: var(--d-paper-faint); }
.canvas .lead { font-size: 30px; line-height: 1.35; color: var(--d-paper-dim); max-width: 30ch; }
.canvas .sm { font-size: 20px; }
.canvas .xs { font-size: 17px; }
.canvas .tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow .tag { color: var(--d-paper-faint); font-weight: 600; letter-spacing: 0.12em; }
.eyebrow .tag::before { content: '·'; margin: 0 10px 0 0; }

.mark { background: linear-gradient(transparent 62%, color-mix(in oklab, var(--accent) 45%, transparent) 62%); }

.canvas .row { display: flex; gap: 40px; align-items: stretch; }
.canvas .col { flex: 1 1 0; min-width: 0; }
.canvas .grow { flex: 1 1 auto; }
.canvas .bottom { margin-top: auto; }
.canvas .mt { margin-top: 28px; }
.canvas .mt-lg { margin-top: 44px; }

/* footnote / scripture ref along the bottom */
.foot {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--d-line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-size: 18px; color: var(--d-paper-faint);
}
.foot .ref { color: var(--d-paper-dim); font-family: var(--display); font-style: italic; font-size: 21px; }

/* cards */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 26px 28px; border-radius: 22px;
  background: rgba(243, 236, 223, 0.045); border: 1px solid var(--d-line);
  backdrop-filter: blur(4px);
}
.card h3 { font-size: 27px; margin-bottom: 10px; }
.card p { font-size: 20px; color: var(--d-paper-dim); line-height: 1.4; }
.card .n {
  font-family: var(--display); font-size: 52px; line-height: 1; color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; margin-bottom: 14px; display: block;
}
.card.hot { background: color-mix(in oklab, var(--accent) 12%, transparent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.card.ghost { background: transparent; border-style: dashed; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 34px; font-size: 24px; color: var(--d-paper); }
.list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--accent);
}
.list.tight { gap: 8px; }
.list.tight li { font-size: 21px; }
.list li .dim { display: block; font-size: 19px; }

.num-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.num-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; font-size: 24px; }
.num-list li::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.num-list li > b, .num-list li > span { grid-column: 2; }
.num-list b { display: block; font-weight: 600; }
.num-list span.dim { font-size: 20px; margin-top: -8px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 19px;
  border: 1px solid var(--d-line); background: rgba(243, 236, 223, 0.05); color: var(--d-paper);
}
.chip.bad { border-color: color-mix(in oklab, var(--d-rose) 45%, transparent); color: var(--d-rose); }
.chip.good { border-color: color-mix(in oklab, var(--d-sage) 45%, transparent); color: var(--d-sage); }

/* quote */
.quote { font-family: var(--display); font-style: italic; font-weight: 400; line-height: 1.22; letter-spacing: -0.01em; }
.quote.xl { font-size: 54px; }
.quote.lg { font-size: 42px; }
.quote.md { font-size: 32px; }
.quote .q { color: var(--accent); }
.cite { margin-top: 26px; font-size: 19px; color: var(--d-paper-dim); font-family: var(--body); font-style: normal; }
.cite b { color: var(--d-paper); font-weight: 600; }

/* big numeral used on section slides */
.giant {
  font-family: var(--display); font-size: 420px; line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--accent) 38%, transparent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  position: absolute; right: 60px; bottom: 30px; pointer-events: none; user-select: none;
}

/* video block */
.video {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; flex: 1;
}
.video-card {
  border-radius: 26px; padding: 40px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 22%, #10141c), #0d1016 65%);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none !important; color: var(--d-paper);
}
.video-card::before {
  content: ''; position: absolute; inset: -40% auto auto -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 60%, transparent), transparent 65%); filter: blur(20px);
}
.video-card .play {
  position: absolute; top: 36px; right: 36px; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; background: var(--d-paper); color: var(--d-ink);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease;
}
.video-card:hover .play { transform: scale(1.06); }
.video-card .play svg { width: 30px; height: 30px; margin-left: 5px; }
.video-card .kicker { font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.video-card h3 { font-size: 46px; margin: 12px 0 10px; line-height: 1.02; }
.video-card .dur { font-size: 19px; color: var(--d-paper-dim); }
.video-card .dur b { color: var(--d-paper); }
.video-side .label { font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--d-paper-faint); font-weight: 700; margin-bottom: 10px; }
.video-side p { font-size: 25px; line-height: 1.35; }
.video-side .after { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--d-line); }
.video-side .after p { font-family: var(--display); font-style: italic; font-size: 30px; }

/* activity */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent);
  font-size: 15px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 20px; }
.tbl th { text-align: left; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--d-paper-faint); padding: 0 14px 12px; border-bottom: 1px solid var(--d-line); font-weight: 700; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--d-line); vertical-align: top; color: var(--d-paper); line-height: 1.35; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.blank { color: var(--d-paper-faint); font-style: italic; font-family: var(--display); }
.tbl td.ex { color: var(--d-paper-dim); }
.tbl .sit { font-weight: 600; }

/* circles of control */
.circles { display: grid; grid-template-columns: 500px 1fr; gap: 50px; align-items: center; flex: 1; }
.circles svg { width: 500px; height: 500px; display: block; }
.circles .legend { display: grid; gap: 26px; }
.circles .legend h3 { font-size: 26px; margin-bottom: 8px; }
.circles .legend h3 .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 12px; vertical-align: 2px; }

/* breathing on slide */
.breathe-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; flex: 1; }
.breather-stage { position: relative; width: 340px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.breather-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--d-line); }
.breather-ring.r2 { inset: 12%; border-style: dashed; opacity: 0.5; }
.breather-orb {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6c98a, var(--d-ember) 55%, #b6761f);
  box-shadow: 0 30px 70px -20px rgba(232, 162, 74, 0.8);
  transform: scale(0.72); transition: transform 4s cubic-bezier(0.45, 0, 0.35, 1);
}
.breather.is-in .breather-orb, .breather.is-hold-in .breather-orb { transform: scale(1.35); }
.breather-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.breather-label .phase { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--d-paper); text-shadow: 0 2px 22px rgba(15, 19, 26, 0.85), 0 0 2px rgba(15, 19, 26, 0.6); }
.breather-label .count { font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; color: var(--d-paper); text-shadow: 0 1px 12px rgba(15, 19, 26, 0.9); }
.breather-controls { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.breather-controls button {
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--d-line); background: rgba(243, 236, 223, 0.08); color: var(--d-paper); cursor: pointer;
}
.breather-controls button:hover { background: rgba(243, 236, 223, 0.16); }
.breather-controls .round { font-size: 16px; color: var(--d-paper-faint); font-variant-numeric: tabular-nums; }

/* checklist on slide */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; font-size: 25px; line-height: 1.35; }
.checks li::before {
  content: ''; width: 30px; height: 30px; margin-top: 3px; border-radius: 9px;
  border: 2px solid color-mix(in oklab, var(--accent) 70%, transparent);
}
.checks .l { font-family: var(--display); font-weight: 600; color: var(--accent); margin-right: 10px; }

/* optional indicator lives in the HUD section label */
.hud-section .opt { color: var(--d-ember); margin-left: 10px; }

/* static thumbnails (facilitator guide): no reveal animation, relative box */
.thumb .slide {
  position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: none;
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; transition: none;
}
.thumb .canvas { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.thumb .canvas [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }

/* staggered reveal inside active slide */
.canvas [data-reveal] { opacity: 0; transform: translateY(18px); }
.slide.is-active .canvas [data-reveal] {
  animation: d-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(120ms + var(--i, 0) * 110ms);
}
@keyframes d-rise { to { opacity: 1; transform: none; } }
body.no-anim .canvas [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .canvas [data-reveal], .slide.is-active .canvas [data-reveal] { animation: none; opacity: 1; transform: none; }
}

/* ---------- HUD ---------- */
.hud { position: absolute; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 18px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: 0; justify-content: space-between; }
.hud-bottom { bottom: 0; }
.hud-btn, .hud-section, .hud-timer {
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--d-paper-dim); background: rgba(15, 19, 26, 0.55); border: 1px solid var(--d-line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; white-space: nowrap;
}
.hud-btn:hover, .hud-section:hover, .hud-timer:hover { color: var(--d-paper); border-color: rgba(243, 236, 223, 0.35); }
.hud-btn.is-on { background: var(--d-paper); color: var(--d-ink); border-color: transparent; }
.hud-btn kbd { font: inherit; font-size: 10.5px; opacity: 0.6; }
.hud-section { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11.5px; }
.hud-section i { font-style: normal; opacity: 0.55; margin: 0 8px; }
.hud-right { display: flex; gap: 8px; align-items: center; }
.hud-timer { font-variant-numeric: tabular-nums; min-width: 78px; justify-content: center; }
.hud-timer.ahead { color: var(--d-sage); border-color: color-mix(in oklab, var(--d-sage) 40%, transparent); }
.hud-timer.close { color: var(--d-gold); }
.hud-timer.behind { color: var(--d-rose); border-color: color-mix(in oklab, var(--d-rose) 45%, transparent); }
.hud-plan { font-size: 12px; color: var(--d-paper-faint); font-variant-numeric: tabular-nums; }

.hud-progress { flex: 1; height: 2px; background: rgba(243, 236, 223, 0.12); border-radius: 2px; overflow: hidden; }
.hud-progress i { display: block; height: 100%; width: 0; background: var(--d-ember); transition: width 0.4s ease; }
.hud-counter { font-size: 12.5px; color: var(--d-paper-faint); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.hud.is-hidden { opacity: 0; transition: opacity 0.4s; }
.stage:hover .hud.is-hidden { opacity: 1; }

/* tap zones (touch / click nav) */
.tap { position: absolute; top: 60px; bottom: 60px; width: 18%; background: transparent; border: 0; cursor: pointer; z-index: 5; opacity: 0; }
.tap.prev { left: 0; } .tap.next { right: 0; }

/* countdown */
.countdown {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px); z-index: 25;
  display: none; align-items: baseline; gap: 12px; padding: 14px 26px; border-radius: 999px;
  background: rgba(15, 19, 26, 0.7); border: 1px solid var(--d-line); backdrop-filter: blur(10px);
  font-family: var(--display); font-size: 40px; font-variant-numeric: tabular-nums; color: var(--d-paper);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.countdown.is-on { display: flex; opacity: 1; transform: translateX(-50%); }
.countdown small { font-family: var(--body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--d-paper-faint); }
.countdown.done { animation: pulse 1s ease-in-out infinite; border-color: var(--d-ember); color: var(--d-ember); }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.04); } }

/* ---------- presenter notes panel ---------- */
.notes {
  flex: 0 0 0; width: 0; overflow: hidden; height: 100%;
  background: #0b0e13; border-left: 1px solid var(--d-line);
  display: flex; flex-direction: column;
  transition: flex-basis 0.3s ease, width 0.3s ease;
}
body.notes-open .notes { flex-basis: 34%; width: 34%; min-width: 360px; }
.notes-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--d-line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.notes-head .k { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--d-paper-faint); font-weight: 700; }
.notes-head .t { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.notes-head .m { font-size: 12px; color: var(--d-ember); font-weight: 700; white-space: nowrap; }
.notes-body { padding: 18px 22px 30px; overflow-y: auto; flex: 1; font-size: 15.5px; line-height: 1.55; color: var(--d-paper-dim); }
.note { margin: 0 0 14px; display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.note .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 4px; }
.note .txt { color: var(--d-paper); }
.note .txt em { color: var(--d-paper-dim); }
.note.say .lbl { color: var(--d-ember); }
.note.ask .lbl { color: var(--d-lav); }
.note.do .lbl { color: var(--d-sage); }
.note.tip .lbl { color: var(--d-paper-faint); }
.note.time .lbl { color: var(--d-gold); }
.note.watch .lbl { color: var(--d-rose); }
.note.say .txt { font-family: var(--display); font-size: 17px; line-height: 1.45; }
.note.say .txt::before { content: '“'; color: var(--d-ember); }
.note.say .txt::after { content: '”'; color: var(--d-ember); }
.notes-next { padding: 14px 22px 18px; border-top: 1px solid var(--d-line); font-size: 12.5px; color: var(--d-paper-faint); }
.notes-next b { color: var(--d-paper-dim); font-weight: 600; }

/* ---------- overlays ---------- */
.overlay {
  position: absolute; inset: 0; z-index: 40; display: none; overflow: auto;
  background: rgba(11, 14, 19, 0.92); backdrop-filter: blur(10px); padding: 70px 40px 40px;
}
.overlay.is-on { display: block; }
.overlay h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0 0 18px; }
.grid-sections { display: grid; gap: 26px; }
.grid-sec-title { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--d-paper-faint); font-weight: 700; margin-bottom: 10px; }
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.grid-item {
  text-align: left; font: inherit; color: var(--d-paper); cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--d-line); background: rgba(243, 236, 223, 0.04);
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
}
.grid-item:hover { border-color: rgba(243, 236, 223, 0.35); }
.grid-item.is-current { border-color: var(--d-ember); background: color-mix(in oklab, var(--d-ember) 12%, transparent); }
.grid-item .i { font-family: var(--display); font-size: 20px; color: var(--d-ember); line-height: 1.1; }
.grid-item .t { font-size: 14px; line-height: 1.3; }
.grid-item .o { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-paper-faint); display: block; margin-top: 3px; }
.grid-item .mins { font-size: 11px; color: var(--d-paper-faint); }

.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 30px; font-size: 14.5px; color: var(--d-paper-dim); max-width: 900px; }
.keys div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--d-line); }
.keys kbd { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--d-line); background: rgba(243, 236, 223, 0.06); color: var(--d-paper); }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  body.deck-body { flex-direction: column; }
  body.notes-open .notes { flex-basis: 46%; width: 100%; min-width: 0; border-left: 0; border-top: 1px solid var(--d-line); }
  .hud-plan, .hud-btn kbd, #btnHelp, #btnFull, .hud-btn[href$='guide.html'] { display: none; }
  .hud-top { gap: 8px; }
  .hud-section { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .hud-right { flex: 0 0 auto; }
}
/* portrait phones: 16:9 slides are tiny — nudge to rotate */
.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 600px) {
  .rotate-hint {
    display: block; position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); z-index: 6;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-paper-faint);
    padding: 8px 14px; border: 1px solid var(--d-line); border-radius: 999px; background: rgba(15, 19, 26, 0.6);
  }
}
