/* Cue Prompter
   Built like a phone camera app: the camera fills the screen, the script sits in a dark
   band at the top right under the lens, and the controls float at the bottom.
   The inbox puts the next script to film first. */
:root {
  --bg: #0a0b0d;
  --surface: #15171b;      /* cards, sheets */
  --surface-2: #1e2126;    /* pressed rows, inputs */
  --line: rgba(255,255,255,.08);
  --fg: #f4f5f7;
  --muted: #9ba2ae;
  --accent: #ffcf3f;       /* prompter yellow: primary actions, current word, cues */
  --on-accent: #17130a;
  --rec: #ff3b30;
  --ok: #34c759;
  --glass: rgba(18,19,22,.62);
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font: "Atkinson Hyperlegible", var(--ui);   /* the script and burnt-in captions */
  --ease: cubic-bezier(.22,1,.36,1);            /* ease-out-quint */
  --z-hud: 4; --z-top: 5; --z-count: 6; --z-err: 8; --z-result: 10; --z-sheet: 20; --z-toast: 30;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.4 var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
code { font: .88em ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 5px; padding: 1px 5px; color: var(--accent); }
@media (pointer: coarse) { .desk-only { display: none !important; } }

/* ---------- shared controls ---------- */
.go { display: block; width: 100%; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 700; transition: transform .15s var(--ease), filter .15s; }
.go:active { transform: scale(.98); filter: brightness(.92); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 600; }
.ghost:active { background: var(--surface-2); }
.link { background: transparent; border: 0; color: var(--accent); font-weight: 600; font-size: 16px; padding: 8px 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); padding: 0; }
.icon-btn:active { background: var(--surface-2); }
.note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.acts { display: flex; gap: 10px; }
.acts > * { flex: 1; min-width: 0; }

/* iOS-style switch row */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: transparent; border: 0; padding: 13px 0; text-align: left; font-size: 16px; }
.switch i { position: relative; width: 50px; height: 30px; border-radius: 15px; background: #3a3d44; flex: none; transition: background .2s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch[aria-pressed=true] i { background: var(--ok); }
.switch[aria-pressed=true] i::after { transform: translateX(20px); }

/* ---------- inbox / editor pages ---------- */
.page {
  min-height: 100%; display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto;
  padding-block: calc(12px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.wordmark .mark { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(255,59,48,.2); }
#inboxCount { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.top .icon-btn { margin-right: -8px; }

/* up next */
.next { position: relative; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.next-k { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
.next-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.next h2 { margin: 2px 0 0; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; padding-right: 28px; }
#nextPreview { margin: 2px 0 0; color: #c5cad3; font: 16px/1.5 var(--font); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#nextMeta { margin: 4px 0 10px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.next-more { position: absolute; top: 12px; right: 10px; }

.empty { margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.empty p { margin: 0; }
.empty-t { color: var(--fg); font-size: 20px; font-weight: 700; margin-bottom: 6px !important; }

.sec { margin: 14px 0 -2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list:empty { display: none; }
.item { display: flex; align-items: stretch; }
.item + .item { border-top: 1px solid var(--line); }
.item .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; border: 0; padding: 13px 4px 13px 16px; }
.item .open:active, .item .more:active { background: var(--surface-2); }
.item .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #4a4e57; }
.item.new .dot { background: var(--accent); }
.item.recorded .dot { display: none; }
.item .tick { display: none; color: var(--ok); width: 18px; height: 18px; margin-left: -5px; stroke-width: 2.4; }
.item.recorded .tick { display: block; }
.item .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.item .t { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.recorded .t { color: var(--muted); font-weight: 500; }
.item .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.item .more { width: 48px; flex: none; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); padding: 0; }

.add { display: flex; gap: 10px; margin-top: 14px; }
.add > button { flex: 1; }
.add svg { width: 19px; height: 19px; color: var(--muted); }
.page.empty-inbox .add > #pasteBtn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.page.empty-inbox .add > #pasteBtn svg { color: currentColor; }

/* editor */
.back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; flex: 1; }
.back svg { width: 20px; height: 20px; }
#edMeta { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.page-t { margin: 0; font-size: 26px; letter-spacing: -.01em; }
textarea { width: 100%; flex: 1; min-height: 46vh; resize: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font: 18px/1.5 var(--font); }
textarea::placeholder { color: var(--muted); }

/* ---------- sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-sheet); background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
  padding-top: calc(16px + env(safe-area-inset-top)); animation: fade .2s var(--ease); }
.sheet { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: rise .28s var(--ease); }
.sheet::before { content: ""; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #3a3d44; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-title { margin: 4px 0 0; font-weight: 700; font-size: 17px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 14px; overflow: hidden; }
.menu button { background: transparent; border: 0; padding: 15px; font-size: 17px; text-align: center; }
.menu button + button { border-top: 1px solid var(--line); }
.menu button:active { background: #272a30; }
.menu .danger { color: #ff6b61; }
.sheet .cancel { background: var(--surface-2); border: 0; border-radius: 14px; padding: 15px; font-size: 17px; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* settings */
.group { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.group.rows { gap: 0; padding-block: 2px; }
.group.rows .switch + .switch { border-top: 1px solid var(--line); }
.group-t { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #111316; border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 9px 8px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background .2s var(--ease), color .2s; }
.seg button[aria-pressed=true] { background: #3a3d44; color: var(--fg); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 16px; }
.slider output { color: var(--muted); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); margin: 0; }
.help p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dl { text-decoration: none; background: var(--surface); }
.repo > div { display: flex; flex-direction: column; gap: 10px; }
.repo p { margin: 0; font-size: 15px; }
.repo .small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.repo .small.bad { color: #ff8a80; }
.repo input { width: 100%; background: #111316; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 16px var(--ui); }
.repo input::placeholder { color: var(--muted); }
.repo .go { padding: 13px; font-size: 16px; }
.help b { color: var(--fg); font-weight: 600; }

/* send to phone (computer only) */
.qr { background: #fff; border-radius: 14px; padding: 10px; width: min(100%, 280px); margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; stroke: none; }
.qr-too-long { color: #111; text-align: center; font-size: 14px; line-height: 1.45; margin: 0; padding: 12px; }
#sendLink { width: 100%; background: var(--surface-2); color: var(--muted); border: 0; border-radius: 10px; padding: 11px; font: 12px ui-monospace, Menlo, monospace; }
.send .note { text-align: center; }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; background: #000; overflow: hidden; touch-action: none; }
#cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#cam.mirror { transform: scaleX(-1); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.1); }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #fff; }
.round:active { background: rgba(60,62,68,.8); }

#band {
  position: absolute; left: 0; right: 0; top: 0; height: 42%; overflow: hidden;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(0,0,0,.86) 0%, rgba(0,0,0,.76) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
  cursor: grab;
}
#scroller { position: absolute; left: 0; right: 0; top: 0; will-change: transform;
  padding-left: max(30px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
#text { position: relative; font-family: var(--font); font-weight: 700; line-height: 1.34; font-size: var(--fs, 30px); max-width: 900px; margin: 0 auto; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
#text.flip { transform: scaleX(-1); }
#text p { margin: 0 0 .7em; }
#text .w { transition: opacity .25s, color .15s; }
#text .w.said { opacity: .36; }
#text .w.now { color: var(--accent); }
#text .w.em { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .14em; }
#text .cue {
  display: inline-block; vertical-align: .2em; font: 700 max(12px, calc(var(--fs, 30px) * .42))/1 var(--ui);
  text-transform: lowercase; color: var(--on-accent); background: var(--accent);
  border-radius: 6px; padding: .3em .5em; text-shadow: none;
}
#guide { position: absolute; left: 10px; top: calc(42% * .3 + var(--fs, 30px) * .67 - 8px); width: 0; height: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 11px solid var(--accent); pointer-events: none; }

/* hook timer: first 3 seconds of a take */
#hookbar { position: absolute; left: 0; right: 0; bottom: 18%; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; z-index: 2; }
#band.hook #hookbar { opacity: 1; }
#hookbar.run { transform: scaleX(1); transition: transform 3s linear; }
#band.hook { box-shadow: inset 0 0 0 2px rgba(255,207,63,.55); }

/* TikTok UI overlay */
#safe { position: absolute; inset: 0; pointer-events: none; }
#safe .z { position: absolute; border: 2px dashed rgba(255,207,63,.65); background: rgba(255,207,63,.06); border-radius: 6px; }
#safe .z span { position: absolute; left: 6px; bottom: 4px; font: 600 11px var(--ui); color: rgba(255,207,63,.95); }
#safe .z-top { left: 0; right: 0; top: 0; height: 9%; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; }
#safe .z-right { right: 0; width: 16%; top: 40%; height: 42%; border-right: 0; }
#safe .z-right span { writing-mode: vertical-rl; left: auto; right: 4px; bottom: 6px; }
#safe .z-bottom { left: 0; right: 16%; bottom: 0; height: 19%; border-bottom: 0; border-left: 0; }

/* top: close, script queue, timer */
#topbar { position: absolute; z-index: var(--z-top); left: 0; right: 0; top: calc(8px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 8px; pointer-events: none;
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
#topbar > * { pointer-events: auto; }
body.recording #back, body.recording #queue { display: none !important; }
body.recording #timer { margin: 0 auto; }
#queue { display: flex; align-items: center; border-radius: 999px; padding: 2px; font-size: 14px; font-weight: 600; min-width: 0; max-width: 64%; margin: 0 auto; }
#queue span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; min-width: 0; font-variant-numeric: tabular-nums; }
#queue button { background: transparent; border: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none; }
#queue svg { width: 18px; height: 18px; }
#timer { margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 7px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; background: rgba(255,59,48,.9); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
#timer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
#tPace { font-weight: 500; opacity: .85; }
#tPace:empty { display: none; }
#tPace.fast::after { content: " · slow down"; }
#tPace.slow::after { content: " · speed up"; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

#count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 128px var(--ui); text-shadow: 0 4px 30px rgba(0,0,0,.6); pointer-events: none; z-index: var(--z-count); }
#again { position: absolute; z-index: var(--z-count); left: 50%; top: 48%; transform: translate(-50%, -50%); width: min(88%, 420px);
  background: rgba(15,17,20,.92); border: 1px solid var(--accent); border-radius: 16px; padding: 14px 16px 18px; text-align: center; font-size: 17px; overflow: hidden; }
#again i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform-origin: left; }
#again i.run { animation: drain 1.6s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#toast { position: fixed; z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); background: rgba(30,32,37,.96); border-radius: 14px; padding: 11px 16px; font-size: 15px; font-weight: 500; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: drop .25s var(--ease); }
#stage:not([hidden]) ~ #toast { top: 50%; }
#toast button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 14px; }
@keyframes drop { from { transform: translate(-50%, -10px); opacity: 0; } }
#err { position: absolute; z-index: var(--z-err); left: 16px; right: 16px; top: 50%; transform: translateY(-50%); background: var(--surface); border-radius: 16px; padding: 18px; font-size: 16px; line-height: 1.5; }

/* bottom controls */
#hud { position: absolute; z-index: var(--z-hud); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; align-items: center;
  padding-block: 40px calc(18px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
#hint { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
body.recording #hintTxt { display: none; }
#listenDot { display: flex; align-items: center; gap: 6px; }
#listenDot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s ease-in-out infinite; }
.bar { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar > :first-child { justify-self: center; }
.slot { justify-self: center; display: flex; }
.big { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; padding: 0; }
.big i { display: block; width: 62px; height: 62px; border-radius: 31px; background: var(--rec); transition: transform .25s var(--ease), border-radius .25s var(--ease); }
.big:active i { transform: scale(.94); }
.big.on i { transform: scale(.48); border-radius: 14px; }
.redo { display: none; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; white-space: nowrap; }
.redo svg { width: 19px; height: 19px; stroke-width: 2.4; }
.redo:active { filter: brightness(.9); }
body.recording .redo { display: inline-flex; }
body.recording #swap, body.recording #adjBtn { visibility: hidden; }
#adjBtn[aria-expanded=true] { background: var(--fg); color: #111; }

/* adjust tray */
#adj { width: 100%; max-width: 360px; border-radius: 20px; padding: 6px 14px 14px; display: flex; flex-direction: column; animation: rise .22s var(--ease); }
.adj-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.adj-row + .adj-row { border-top: 1px solid rgba(255,255,255,.08); }
.adj-l { font-size: 15px; font-weight: 600; }
.step { display: flex; align-items: center; gap: 4px; }
.step button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); font-size: 22px; line-height: 1; padding: 0; }
.step button:active { background: rgba(255,255,255,.2); }
.step b { min-width: 70px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step .a-sm { font-size: 14px; } .step .a-lg { font-size: 22px; }
.adj-chips { display: flex; gap: 8px; margin-top: 8px; }
.chip { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 600; white-space: nowrap; padding: 0 8px; }
.chip svg { width: 17px; height: 17px; }
.chip:active { background: rgba(255,255,255,.2); }
.chip[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }

/* ---------- result ---------- */
#result { position: fixed; inset: 0; z-index: var(--z-result); background: var(--bg); overflow-y: auto; animation: fade .2s var(--ease);
  padding-block: calc(16px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.rcard { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rhead h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
#stats { margin: 2px 0 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
#playback { width: 100%; max-height: 42vh; border-radius: 16px; background: #000; }
.rcard > .acts > * { padding: 13px 6px; font-size: 15px; white-space: nowrap; }
#burnRow { background: var(--surface); border-radius: 14px; padding: 12px 16px; }
.prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
#shareVid.go { border: 0; }
.rcard > .acts { margin-top: 6px; }
.rcard > .link { align-self: center; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #hookbar.run { transition: transform 3s linear !important; }
}

/* laptop / landscape: shorter script band, wider centred text */
@media (min-aspect-ratio: 5/4) {
  #band { height: 36%; }
  #guide { top: calc(36% * .3 + var(--fs, 30px) * .67 - 8px); left: max(10px, calc(50% - 470px)); }
  #scroller { padding-left: max(40px, env(safe-area-inset-left)); padding-right: 40px; }
  #safe { display: none; }
}
@media (min-width: 900px) {
  .page { max-width: 640px; padding-top: 32px; }
}
