/* BRAND NEW DAY — UI shell. The canvas fills the window; letterbox bars and
 * captions are DOM so page.screenshot composites them for free. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* boot veil */
#boot { position: fixed; inset: 0; z-index: 50; background: #05070f;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease; }
#boot.fade { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-title { color: #e63946; font-size: 34px; font-weight: 800;
  letter-spacing: .35em; text-indent: .35em; }
.boot-sub { color: #6b7a99; font-size: 12px; letter-spacing: .2em; margin-top: 10px; }
.boot-bar { width: 240px; height: 2px; background: #1a2340; margin: 22px auto 0; }
#bootFill { width: 0%; height: 100%; background: #e63946; transition: width .3s; }

/* letterbox */
.bar { position: fixed; left: 0; right: 0; background: #000; z-index: 10; }
#barTop { top: 0; height: var(--barH, 60px); }
#barBot { bottom: 0; height: var(--barH, 60px); }

/* captions live in the bottom bar */
#caption { position: absolute; left: 8%; right: 8%; top: 50%;
  transform: translateY(-50%); text-align: center;
  color: #f1f5ff; font-size: clamp(14px, 2.2vh, 20px); line-height: 1.35;
  text-shadow: 0 1px 3px #000; opacity: 0; transition: opacity .35s ease; }
#caption.on { opacity: 1; }
#capWho { color: #ffd166; font-weight: 700; margin-right: .6em;
  letter-spacing: .06em; }
#capWho:empty { margin-right: 0; }

/* title card */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#titlecard { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0;
  transition: opacity .8s ease; }
#titlecard.on { opacity: 1; }
#tcMain { color: #fff; font-size: clamp(38px, 9vw, 96px); font-weight: 900;
  letter-spacing: .22em; text-indent: .22em; text-shadow: 0 2px 24px rgba(230,57,70,.55); }
#tcSub { color: #9fb0d0; font-size: clamp(11px, 1.8vw, 16px); letter-spacing: .3em;
  margin-top: 14px; text-transform: uppercase; }

/* timeline */
#timeline { position: absolute; left: 0; right: 0; bottom: 8px; height: 26px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  pointer-events: auto; opacity: .28; transition: opacity .25s; z-index: 30; }
#timeline:hover { opacity: 1; }
#btnPlay { background: none; border: 1px solid #445; color: #cdd6ea;
  border-radius: 4px; font-size: 10px; width: 26px; height: 18px; cursor: pointer; }
#pips { display: flex; gap: 6px; }
.pip { width: 22px; height: 4px; background: #2a3352; border-radius: 2px;
  cursor: pointer; position: relative; overflow: hidden; }
.pip .fill { position: absolute; inset: 0; width: 0%; background: #e63946; }
.pip.done .fill { width: 100%; opacity: .55; }
#sceneLabel { color: #8fa0c0; font-size: 11px; letter-spacing: .08em;
  min-width: 150px; text-align: left; }
