/* Generated from the film source by split_film.py. */
  /* calybris.tech tokens; every domain gets its own accent on the same ground. */
  :root {
    color-scheme: dark;
    --bg: #06080b; --bg-2: #0b0d11; --panel: rgba(11,13,17,.82); --line: rgba(148,170,205,.14); --line-hot: rgba(59,109,246,.55);
    --white: #e8ecf3; --muted: #98a2b3; --faint: #667085; --accent: #3b6df6; --accent-quiet: #93b4ff; --cyan: #08edf3;
    --positive: #16b39c; --critical: #e5484d; --warn: #e8a33d; --dom: #08edf3;
    --display: "Inter", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  html, body { height: 100%; margin: 0; background: #030405; color: var(--white); }
  body { font: 15px/1.5 var(--display); display: grid; place-items: center; overflow: hidden; }
  .frame { position: relative; width: min(100vw, calc(100vh * var(--ar))); height: min(100vh, calc(100vw / var(--ar))); background: var(--bg); overflow: hidden; --ar: 1.7778; container-type: size; }
  .frame.f11 { --ar: 1; } .frame.f45 { --ar: .8; }
  canvas#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
  .frame.explore canvas#scene { touch-action: none; }
  .frame.explore canvas#scene { cursor: grab; }
  .fader { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .45s ease; z-index: 2; }
  .fader.on { opacity: 1; }
  .scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 58% at 0% 100%, rgba(11,14,20,.93) 0%, rgba(11,14,20,.55) 45%, transparent 76%), linear-gradient(to top, rgba(11,14,20,.8), transparent 20%); }

  .brand { position: absolute; left: 3.2cqmin; top: 3cqmin; display: flex; align-items: center; gap: 10px; pointer-events: none; z-index: 3; }
  .brand img { width: clamp(20px, 3.6cqmin, 34px); }
  .brand b { font: 700 clamp(15px, 2.6cqmin, 24px)/1 var(--display); letter-spacing: -.01em; }
  .brand span { font: 500 clamp(10px, 1.4cqmin, 12px)/1 var(--mono); color: var(--dom); border: 1px solid color-mix(in srgb, var(--dom) 50%, transparent); padding: 3px 6px; border-radius: 5px; transition: color .4s, border-color .4s; }

  .stats { position: absolute; right: 3.2cqmin; top: 3cqmin; display: flex; gap: clamp(10px, 2.6cqmin, 28px); pointer-events: none; text-align: right; z-index: 3; }
  .stats div { display: grid; gap: 2px; }
  .stats b { font: 700 clamp(14px, 2.7cqmin, 26px)/1 var(--display); font-variant-numeric: tabular-nums; }
  .stats small { font: 500 clamp(9px, 1.25cqmin, 11px)/1 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
  .stats .dom b { color: var(--dom); transition: color .4s; }
  @container (max-aspect-ratio: 1.2) { .stats .opt { display: none; } }

  .caption { position: absolute; left: 3.2cqmin; bottom: 12cqmin; max-width: min(62ch, 70cqw); pointer-events: none; display: grid; gap: 1.2cqmin; z-index: 3; }
  .caption .eyebrow { font: 600 clamp(10px, 1.5cqmin, 13px)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dom); }
  .caption h1 { font: 700 clamp(26px, 6cqmin, 62px)/1.02 var(--display); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
  .caption h1 em { font-style: normal; color: var(--dom); }
  .caption p { font: 500 clamp(12px, 1.95cqmin, 19px)/1.4 var(--display); color: var(--muted); margin: 0; max-width: 58ch; }
  .caption code { font-family: var(--mono); color: var(--white); font-size: .9em; }
  .caption .fade { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .caption .rule { font: 600 clamp(12px, 1.9cqmin, 18px)/1.35 var(--mono); color: var(--warn); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .tally { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 clamp(10px, 1.5cqmin, 14px)/1.3 var(--mono); color: var(--muted); }
  .tally span { display: inline-flex; align-items: center; gap: 6px; opacity: .3; transition: opacity .3s; }
  .tally span.on { opacity: 1; color: var(--white); }
  .tally i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

  .strip { position: absolute; right: 3.2cqmin; top: 50%; transform: translateY(-50%); width: min(330px, 34cqw); display: grid; gap: 4px; z-index: 3; pointer-events: none; }
  .strip[hidden] { display: none; }
  .strip.left { left: 3.2cqmin; right: auto; top: 11cqmin; transform: none; width: min(300px, 30cqw); }
  .strip h4 { margin: 0 0 4px; font: 600 clamp(9px, 1.3cqmin, 11px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .cand { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: clamp(4px, .8cqmin, 7px) 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font: 500 clamp(10px, 1.45cqmin, 13px)/1.2 var(--mono); transition: opacity .35s, border-color .35s, transform .35s; }
  .cand small { display: block; color: var(--faint); font-size: .85em; margin-top: 2px; }
  .cand em { font-style: normal; font-size: .85em; padding: 2px 6px; border-radius: 4px; background: rgba(148,170,205,.1); color: var(--muted); white-space: nowrap; }
  .cand.out { opacity: .35; }
  .cand.ok { border-color: color-mix(in srgb, var(--positive) 60%, transparent); }
  .cand.win { border-color: var(--dom); box-shadow: 0 0 22px color-mix(in srgb, var(--dom) 35%, transparent); transform: translateX(-6px); opacity: 1; }
  .cand.win em { background: var(--dom); color: #06121a; }
  @container (max-aspect-ratio: 1.2) { .foot { display: none; } }
  @container (max-aspect-ratio: 1.2) { .strip { top: 13cqmin; transform: none; width: 44cqw; } .cand small { display: none; } }

  .tag { position: absolute; transform: translate(-50%, -125%); pointer-events: none; font: 600 clamp(10px, 1.5cqmin, 13px)/1.25 var(--mono); color: var(--white); background: rgba(11,14,20,.8);
    border: 1px solid var(--dom); border-radius: 6px; padding: 5px 8px; white-space: nowrap; z-index: 3; }
  .tag small { display: block; color: var(--muted); font-weight: 500; }
  .tag.soft { border-color: var(--line); color: var(--muted); background: rgba(11,14,20,.5); font-weight: 500; transform: translate(-50%, -50%); }
  .tag[hidden] { display: none; }

  .card { position: absolute; right: 3.2cqmin; top: 50%; transform: translateY(-50%); width: min(420px, 42cqw); background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 12px;
    padding: clamp(12px, 2.2cqmin, 20px); display: grid; gap: 8px; font: 12px/1.45 var(--mono); z-index: 3; }
  .card[hidden] { display: none; }
  .card h3 { font: 700 clamp(14px, 2.2cqmin, 19px)/1.1 var(--display); margin: 0; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
  .card h3 small { font: 500 11px var(--mono); color: var(--muted); }
  .card .row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
  .card .row span:first-child { color: var(--muted); }
  .card .row span:last-child { overflow-wrap: anywhere; }
  .card .ok { color: var(--positive); font-weight: 600; } .card .no { color: var(--critical); font-weight: 600; }
  @container (max-aspect-ratio: 1.2) { .card { top: auto; bottom: 36cqmin; transform: none; left: 3.2cqmin; right: 3.2cqmin; width: auto; } }

  .bar { position: absolute; left: 3.2cqmin; right: 3.2cqmin; bottom: 3cqmin; display: flex; align-items: center; gap: 10px; z-index: 3; }
  .chapters { flex: 1; display: flex; gap: 4px; }
  .chapters button { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0 0; cursor: pointer; text-align: left; color: var(--faint); font: 500 clamp(9px, 1.3cqmin, 11px)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
  .chapters button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: rgba(148,170,205,.18); }
  .chapters button i { position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; background: var(--dom); width: 0; }
  .chapters button.on { color: var(--white); }
  @container (max-aspect-ratio: 1.2) { .chapters button { font-size: 0; } }
  .ctl { display: flex; gap: 6px; }
  .ctl button { font: 600 clamp(10px, 1.35cqmin, 12px)/1 var(--mono); color: var(--white); background: rgba(18,22,31,.8); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; cursor: pointer; }
  .ctl button:hover { border-color: var(--line-hot); }
  .ctl button[aria-pressed="true"] { border-color: var(--dom); color: var(--dom); }
  button:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .frame.clean .bar, .frame.clean .foot { display: none; }
  .frame.paused .chapters button.on i { opacity: .45; }
  .frame.embed .brand { display: none; }
  .frame.embed #bFmt, .frame.embed #bClean { display: none; }
  .frame.embed { width: 100vw; height: 100vh; }
  .foot { position: absolute; left: 3.2cqmin; bottom: 8cqmin; font: 500 clamp(8px, 1.15cqmin, 11px)/1.3 var(--mono); color: var(--faint); pointer-events: none; z-index: 3; }

  .drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); background: rgba(11,14,20,.95); backdrop-filter: blur(16px); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); display: grid; grid-template-rows: auto auto 1fr; z-index: 6; }
  .drawer.open { transform: none; }
  .drawer header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .drawer header b { font: 700 18px var(--display); }
  .tabs { display: flex; gap: 4px; padding: 10px 16px 0; flex-wrap: wrap; }
  .tabs button, .dbtn { font: 600 12px var(--mono); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; cursor: pointer; }
  .tabs button[aria-selected="true"] { color: var(--cyan); border-color: var(--cyan); }
  .dbtn { color: var(--white); background: var(--bg-2); }
  .dbtn.danger { color: #ffb3b3; border-color: rgba(229,72,77,.4); }
  .pane { overflow: auto; padding: 14px 16px 24px; display: grid; gap: 12px; align-content: start; font: 12.5px/1.5 var(--mono); }
  .pane[hidden] { display: none; }
  .pane p { margin: 0; color: var(--muted); font-family: var(--display); font-size: 13.5px; }
  .pane .btns { display: flex; flex-wrap: wrap; gap: 6px; }
  .pane table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pane th, .pane td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .pane th { color: var(--muted); font-weight: 500; position: sticky; top: 0; background: #0d1118; }
  .pane td.n { text-align: right; font-variant-numeric: tabular-nums; }
  .pane tr.win td { color: var(--cyan); }
  .pane .tbl { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
  .log { display: grid; gap: 4px; max-height: 30vh; overflow: auto; }
  .log .ok { color: var(--positive); } .log .no { color: var(--critical); } .log .info { color: var(--muted); }
  .pane textarea { width: 100%; min-height: 240px; box-sizing: border-box; font: 12px/1.45 var(--mono); background: #070a0f; color: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
  .err { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,14,20,.95); padding: 24px; text-align: center; z-index: 9; }
  .err[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) { .caption .fade { animation: none; } .drawer, .fader { transition: none; } }
.flip { border-left: 2px solid var(--accent, #3b6df6); padding-left: 10px; }
