/* Caption base styles (shared by the app and preview.html). Colours come from the host's --ink / --bg. No transitions:
   the reveal is driven frame by frame from JS so stills stay deterministic.
   .bt-cap is its own stacking context, so a material's canvas (.bt-cap-fx) can sit behind the words (z-index -1, B's
   light on the wall) or over them (z-index 1, the motes and the tracker) without escaping the caption. */
.bt-cap { position: relative; isolation: isolate; }
.bt-cap-fx { position: absolute; left: -10px; top: -22px; pointer-events: none; display: block; }
.bt-cap-line {
  position: relative;
  font: 400 clamp(19px, 2.2vw, 26px)/1.45 'Cormorant Garamond', Georgia, serif;
  color: var(--ink, rgba(240,236,228,0.95));
  text-wrap: balance;
  text-shadow: 0 0 22px var(--bg, #050505), 0 0 6px var(--bg, #050505);
}
.bt-cap-line.is-prompt { font-style: italic; }
.bt-cap-w { will-change: opacity; }
