/* The how-to film (how-to.html, js/howto/player.js). The app's palette (css/style.css): amber for what you can act on,
   ice blue for live readouts. Everything inside .cam is in the frame's own pixels (1280 wide) and scales with it. */
:root {
  --void: #03050a;
  --glass: rgba(9, 14, 23, 0.72);
  --glass-strong: rgba(10, 16, 27, 0.92);
  --line: rgba(156, 184, 222, 0.16);
  --line-strong: rgba(156, 184, 222, 0.3);
  --ink: #e2e9f3;
  --ink-dim: #8e9cb2;
  --ink-faint: #5d6a80;
  --amber: #ffb547;
  --amber-ink: #1d1203;
  --ice: #93d6ff;
  --green: #7ee0a1;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--ink); }
body { font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
kbd { font: 500 11px var(--font-data); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; background: rgba(255, 255, 255, 0.05); color: var(--ink); }

.ht { position: relative; height: calc(100dvh - var(--site-head-total, 58px)); background: #000; }
.ht:fullscreen, .ht:-webkit-full-screen { height: 100vh; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.15s var(--ease); will-change: transform; }
#app { position: absolute; left: 0; top: 0; border: 0; display: block; background: #000; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }

/* before the film: the live view, soft and dim, behind the title */
body:not(.started) .fit { filter: blur(3px) brightness(0.55) saturate(1.1); transform-origin: 0 0; }
.fit { transition: filter 1.4s ease; }
body:not(.started) #app { pointer-events: none; }

/* ---------------------------------------------------------------- the cursor */
.cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -3px 0 0 -5px; opacity: 0; transform-origin: 5px 3px; transition: opacity 0.35s; will-change: transform; z-index: 3; }
.cursor.on { opacity: 1; }
.cursor svg { width: 26px; height: 26px; display: block; overflow: visible; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); transition: transform 0.12s; transform-origin: 5px 3px; }
.cursor path { fill: #fff; stroke: #0b111b; stroke-width: 1.3; stroke-linejoin: round; }
.cursor.down svg { transform: scale(0.84); }
.cursor.scrolling svg { animation: nudge 0.5s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateY(-3px); } }
.cursor-badge {
  position: absolute; left: 24px; top: 22px; white-space: nowrap;
  font: 600 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-ink); background: var(--amber); padding: 5px 8px 4px; border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(255, 181, 71, 0.7);
  opacity: 0; transform: translateY(4px) scale(0.9); transition: opacity 0.2s, transform 0.25s;
}
.cursor-badge.on { opacity: 1; transform: none; }
.ripple { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.ripple::before, .ripple::after {
  content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--amber); animation: ripple 0.7s ease-out forwards;
}
.ripple::after { border-color: rgba(255, 255, 255, 0.7); animation-delay: 0.08s; opacity: 0; }
@keyframes ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* a label pointing at a control */
/* "your turn": a ring round the control to press */
.spot { position: absolute; z-index: 2; border-radius: 12px; border: 2px solid var(--amber); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.18), 0 0 30px rgba(255, 181, 71, 0.5); animation: spot 1.1s ease-in-out infinite alternate; }
@keyframes spot { from { transform: scale(1); opacity: 1; } to { transform: scale(1.08); opacity: 0.6; } }

.callout { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.callout span {
  position: absolute; white-space: nowrap;
  font: 600 13px/1 var(--font-body); color: var(--amber-ink); background: var(--amber);
  padding: 7px 11px; border-radius: 8px; box-shadow: 0 8px 24px -8px rgba(255, 181, 71, 0.8);
  opacity: 0; transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.callout.up span { left: 0; bottom: 12px; transform: translate(-50%, 8px); }
.callout.down span { left: 0; top: 12px; transform: translate(-50%, -8px); }
.callout.right span { left: 14px; top: 0; transform: translate(-8px, -50%); }
.callout.left span { right: 14px; top: 0; transform: translate(8px, -50%); }
.callout.on.up span, .callout.on.down span { opacity: 1; transform: translate(-50%, 0); }
.callout.on.right span, .callout.on.left span { opacity: 1; transform: translate(0, -50%); }
.callout span::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); }
.callout.up span::after { left: calc(50% - 4.5px); bottom: -4px; }
.callout.down span::after { left: calc(50% - 4.5px); top: -4px; }
.callout.right span::after { left: -4px; top: calc(50% - 4.5px); }
.callout.left span::after { right: -4px; top: calc(50% - 4.5px); }

/* a select's list, drawn the way the app's own panels look */
.dropdown {
  position: absolute; z-index: 2; padding: 5px; border-radius: 10px;
  background: var(--glass-strong); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top; transition: opacity 0.2s, transform 0.25s;
}
.dropdown.on { opacity: 1; transform: none; }
.dropdown div { height: 27px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; font: 400 13.5px var(--font-body); color: var(--ink-dim); white-space: nowrap; }
.dropdown div.sel { color: var(--ink); }
.dropdown div.hl { background: var(--amber); color: var(--amber-ink); font-weight: 600; }

/* ---------------------------------------------------------------- cuts and cards */
.dip { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 4; }
.dip.on { animation: dip 0.34s ease-out; }
@keyframes dip { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.title-card { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; z-index: 6; opacity: 0; }
.title-card.on { animation: title 3.2s ease forwards; }
.title-card h2 {
  margin: 0; font: 700 clamp(40px, 8.5vw, 112px)/0.95 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(100deg, #fff 30%, var(--amber) 50%, #fff 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 2.6s ease 0.2s both; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6));
}
.title-card p { margin: 14px 0 0; font: 500 clamp(11px, 1.3vw, 14px) var(--font-data); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); }
@keyframes title { 0% { opacity: 0; transform: scale(1.08); letter-spacing: 0.3em; } 14% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(0.98); } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

.chapter-card {
  position: absolute; left: 50%; top: 36%; z-index: 6; pointer-events: none; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 14px; opacity: 0; white-space: nowrap;
}
.chapter-card .n { font: 500 clamp(12px, 1.4vw, 16px) var(--font-data); color: var(--amber); letter-spacing: 0.3em; }
.chapter-card .t { font: 700 clamp(28px, 5vw, 66px)/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6); clip-path: inset(0 50% 0 50%); }
.chapter-card::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); transform: scaleX(0); }
.chapter-card.on { animation: fade 2.6s ease forwards; }
.chapter-card.on .t { animation: wipe 0.8s var(--ease) 0.1s forwards; }
.chapter-card.on::after { animation: grow 0.9s var(--ease) forwards; }
@keyframes fade { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes grow { to { transform: scaleX(1); } }

.keycap { position: absolute; left: 50%; top: 42%; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 14px; transform: translate(-50%, -50%); opacity: 0; }
.keycap kbd {
  min-width: 74px; height: 74px; padding: 0 16px; display: grid; place-items: center;
  font: 700 30px var(--font-display); color: var(--ink); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(#2a3446, #121925); box-shadow: 0 7px 0 #0a0e15, 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.keycap span { font: 600 18px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 16px #000; }
.keycap span:empty { display: none; }
.keycap.on { animation: keyin 1.7s ease forwards; }
.keycap.on kbd { animation: keypress 0.5s ease 0.2s; }
@keyframes keyin { 0% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); } 12% { opacity: 1; transform: translate(-50%, -50%); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%); } }
@keyframes keypress { 40% { transform: translateY(6px); box-shadow: 0 1px 0 #0a0e15, 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 181, 71, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); border-color: var(--amber); } }

/* your turn */
.try {
  position: absolute; left: 50%; top: 18%; z-index: 7; transform: translate(-50%, -10px);
  display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; overflow: hidden;
  border-radius: 999px; border: 1px solid rgba(255, 181, 71, 0.5); background: rgba(10, 16, 27, 0.85); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.08), 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), border-color 0.3s;
}
.try.on { opacity: 1; transform: translate(-50%, 0); }
.try.tap { pointer-events: auto; cursor: pointer; }
.try-ring { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); flex: none; }
.try-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--amber); animation: ping 1.2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.try-text { display: flex; flex-direction: column; gap: 3px; }
.try-text small { font: 500 10px var(--font-data); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.try-text b { font: 700 19px/1 var(--font-display); letter-spacing: 0.04em; color: #fff; }
.try-time { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--amber); transform-origin: left; }
.try.on .try-time { animation: shrink var(--s, 5s) linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
.try.done { border-color: var(--green); }
.try.done .try-ring { background: var(--green); }
.try.done .try-ring::after { border-color: var(--green); }
.try.done .try-text small { color: var(--green); }
.try.done .try-time { opacity: 0; }

/* Events and Courses */
.pagecard {
  position: absolute; right: clamp(12px, 3vw, 40px); top: 50%; z-index: 6; width: min(380px, 44%);
  display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translate(30px, -50%); transition: opacity 0.5s, transform 0.7s var(--ease); pointer-events: none;
}
.pagecard.on { opacity: 1; transform: translate(0, -50%); }
.pc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-text small { font: 500 10.5px var(--font-data); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.pc-text b { font: 700 clamp(15px, 1.9vw, 21px)/1.15 var(--font-display); color: #fff; }
.pc-text span { font-size: clamp(12px, 1.2vw, 14px); color: var(--ink-dim); line-height: 1.4; }
.pc-art { flex: none; width: clamp(64px, 9vw, 110px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.pc-eclipse { display: grid; place-items: center; background: radial-gradient(circle, #1a1206 0, #000 70%); }
.pc-eclipse i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #ffe6b0, 0 0 18px 6px rgba(255, 210, 140, 0.7), 0 0 50px 16px rgba(255, 181, 71, 0.35); }
.pc-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pc-covers img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- captions */
.cap { position: absolute; left: 50%; bottom: 74px; z-index: 8; width: min(920px, 90%); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.3s, bottom 0.6s var(--ease), top 0.6s var(--ease); }
.cap.on { opacity: 1; }
.cap.top { bottom: auto; top: 16px; }
.cap p {
  display: inline; margin: 0; padding: 6px 14px; line-height: 1.75;
  font: 600 clamp(15px, 2vw, 25px) var(--font-body); color: #fff;
  background: rgba(3, 5, 10, 0.62); -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.cap span { opacity: 0.22; animation: word 0.35s ease forwards; animation-delay: var(--d); }
@keyframes word { to { opacity: 1; } }
body.no-cc .cap { display: none; }

/* ---------------------------------------------------------------- the viewer took over */
.took {
  position: absolute; left: 50%; bottom: 84px; z-index: 9; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.took p { margin: 0; font-size: 14px; color: var(--ink-dim); white-space: nowrap; }
.took b { color: #fff; }
body.flying-free .took { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- buttons */
.btn-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px;
  border: 0; border-radius: 10px; background: var(--amber); color: var(--amber-ink); text-decoration: none;
  font: 700 14px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4), 0 10px 30px -8px rgba(255, 181, 71, 0.7); transition: filter 0.2s, transform 0.2s;
}
.btn-go { flex: none; white-space: nowrap; }
.btn-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-go svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.btn-go svg path[d^="M4 10"] { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-go:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 600 14px var(--font-body);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.big-play {
  position: absolute; left: 50%; top: 50%; z-index: 9; width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: rgba(255, 181, 71, 0.95); color: var(--amber-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 181, 71, 0.15), 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0.8); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s;
}
.big-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
body.paused .big-play { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }

/* ---------------------------------------------------------------- start screen */
.start {
  position: absolute; inset: 0; z-index: 10; display: flex; align-items: center;
  padding: clamp(20px, 6vw, 90px); background: linear-gradient(90deg, rgba(3, 5, 10, 0.9) 0%, rgba(3, 5, 10, 0.55) 45%, rgba(3, 5, 10, 0) 80%);
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}
body.started .start { opacity: 0; visibility: hidden; pointer-events: none; }
.start-inner { max-width: 600px; animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.eyebrow { margin: 0 0 14px; font: 500 12px var(--font-data); letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.start h1 { margin: 0; font: 700 clamp(40px, 7vw, 92px)/0.92 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.start h1 span { display: block; margin-top: 12px; font: 600 clamp(20px, 3.2vw, 40px)/1 var(--font-display); text-transform: none; color: var(--ink); }
.start h1 i { font-style: normal; color: var(--amber); }
.lede { margin: 22px 0 28px; max-width: 470px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: var(--ink-dim); }
.start-go { height: 56px; padding: 0 28px; font-size: 15px; }
.start-go svg { width: 20px; height: 20px; }
body:not(.app-ready) .start-go { opacity: 0.6; }
.start-status { margin: 14px 0 0; min-height: 1.4em; font: 500 12px var(--font-data); letter-spacing: 0.08em; color: var(--ink-faint); }

/* ---------------------------------------------------------------- end screen */
.end {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 8; width: min(560px, 100%);
  display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 5vw, 70px);
  background: linear-gradient(90deg, rgba(3, 5, 10, 0.9), rgba(3, 5, 10, 0.6) 70%, rgba(3, 5, 10, 0));
  opacity: 0; visibility: hidden; transform: translateX(-20px); transition: opacity 0.8s, transform 0.9s var(--ease), visibility 0s 0.8s;
}
.end.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.8s, transform 0.9s var(--ease); }
.end h2 { margin: 0; font: 700 clamp(34px, 5.4vw, 68px)/0.95 var(--font-display); text-transform: uppercase; color: #fff; }
.end-tried { margin: 16px 0 0; min-height: 0; color: var(--ink-dim); font-size: 15px; }
.end-tried:empty { display: none; }
.end-tried b { color: var(--green); }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.end-keys { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink-faint); }
.end-keys kbd { margin-left: 4px; }

/* ---------------------------------------------------------------- the bar */
.bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; height: 58px; padding: 18px 14px 8px;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; pointer-events: none;
}
body.started:is(.awake, .paused, .ended, .flying-free) .bar { opacity: 1; transform: none; pointer-events: auto; }
.bar-btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink); }
.bar-btn:hover { background: rgba(255, 255, 255, 0.1); }
.bar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#play svg { fill: currentColor; stroke: none; }
#play .i-play, body:is(.paused, .ended, .flying-free) #play .i-pause { display: none; }
body:is(.paused, .ended, .flying-free) #play .i-play { display: block; }
#cc[aria-pressed="false"] { opacity: 0.45; }
#mute .x, #mute[aria-pressed="true"] .w { display: none; }
#mute[aria-pressed="true"] .x { display: inline; }
.bar-track { position: relative; flex: 1; height: 28px; margin: 0 8px; cursor: pointer; display: flex; align-items: center; }
.bar-line { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; transition: height 0.15s; }
.bar-track:hover .bar-line { height: 6px; }
.bar-line i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.bar-marks { position: absolute; inset: 0; pointer-events: none; }
.bar-marks .mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border: 0; background: none; pointer-events: auto; }
.bar-marks .mark::before { content: ""; position: absolute; left: 5px; top: 2px; width: 2px; height: 8px; border-radius: 1px; background: rgba(0, 0, 0, 0.75); }
.bar-time { flex: none; font: 500 12px var(--font-data); color: var(--ink-dim); font-variant-numeric: tabular-nums; margin-right: 6px; }
.bar-chap { position: relative; }
.chapters {
  position: absolute; right: 0; bottom: 44px; min-width: 230px; padding: 6px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  display: none; flex-direction: column;
}
.chapters.on { display: flex; }
.chapters button { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 14px var(--font-body); color: var(--ink); }
.chapters button:hover { background: rgba(255, 255, 255, 0.08); }
.chapters b { font: 500 11px var(--font-data); color: var(--amber); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 720px) {
  .start { align-items: flex-end; background: linear-gradient(0deg, rgba(3, 5, 10, 0.95) 0%, rgba(3, 5, 10, 0.7) 55%, rgba(3, 5, 10, 0.1) 100%); }
  .lede { margin: 16px 0 20px; }
  .cap { bottom: 64px; width: 94%; }
  .cap.top { top: 8px; }
  .pagecard { top: auto; bottom: 120px; right: 50%; transform: translate(50%, 20px); width: min(380px, 92%); }
  .pagecard.on { transform: translate(50%, 0); }
  .end { width: 100%; justify-content: flex-end; background: linear-gradient(0deg, rgba(3, 5, 10, 0.95) 30%, rgba(3, 5, 10, 0)); padding-bottom: 76px; }
  .took { width: max-content; max-width: 94%; }
  .took p { white-space: normal; font-size: 13px; min-width: 0; }
  .took .btn-go { height: 40px; padding: 0 16px; font-size: 13px; letter-spacing: 0.1em; }
  .bar-time { display: none; }
  .keycap kbd { min-width: 54px; height: 54px; font-size: 22px; }
  .try { top: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .cam { transition-duration: 0.3s; }
  .title-card.on { animation-name: fade; }
}
@media (max-height: 460px) {
  .took { bottom: 58px; gap: 12px; padding: 6px 6px 6px 16px; }
  .took .btn-go { height: 36px; }
  .cap { bottom: 54px; }
  .cap p { font-size: 15px; line-height: 1.6; }
}
