/* demo-player.css — the demo card (10 October 2026), shared by the landing
   page and /demo with js/demo-player.js. Moved unchanged from index.html. */

/* The demo: a real chapter, performed by the app, following along. */
.lp-demo { position: relative; display: flex; flex-direction: column; gap: var(--vv-space-4); padding: var(--vv-space-6); border-radius: var(--vv-radius-xl); border: 1px solid var(--vv-line); background: var(--vv-panel); box-shadow: var(--vv-shadow-panel); }
.lp-demo__head { display: flex; align-items: center; gap: var(--vv-space-4); }
.lp-demo__book { margin: 0 0 2px; color: var(--vv-text-2); font-size: var(--vv-size-s); }
.lp-demo__time { margin-left: auto; color: var(--vv-text-2); font-size: var(--vv-size-s); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The script reads as the studio's (9 October 2026, Marty's call): one
   paragraph per block, the narrator's tags in italic inside the
   character's paragraph (patterns.css .vv-line, .vv-attr). A fixed box
   that scrolls itself, so the card keeps its height as speakers change;
   the side padding leaves room for .vv-line--now's -20px margins. */
.lp-demo__lines { position: relative; height: 420px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 28px 20px 160px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 72px), transparent); }
.lp-demo__lines .vv-line { flex-shrink: 0; }
/* Inside the paragraph being spoken, the line being spoken is the
   brightest (as app.html's .app-seg). */
.vv-line--now .lp-seg { color: var(--vv-text-2); transition: color var(--vv-dur) var(--vv-ease); }
.vv-line--now .lp-seg.lp-seg--now { color: var(--vv-text); }
.vv-line--now .lp-seg.vv-attr.lp-seg--now { color: var(--vv-text); }
.lp-break-para .vv-line__speaker { display: none; }
/* A line is a place to jump to (demo-player.js). */
.lp-demo__lines .lp-seg { cursor: pointer; }
.lp-break { display: block; width: 3.5em; height: 1px; margin: 0.65em 0; background: var(--vv-line-strong); }
.lp-seek { width: 100%; accent-color: var(--vv-amber); }
.lp-demo__credit { margin: 0; color: var(--vv-text-2); font-size: var(--vv-size-xs); }
/* A collaborator's credit under the chapter title (demo-player.js). */
.lp-demo__by { margin: 4px 0 0; color: var(--vv-amber); font-size: var(--vv-size-s); font-weight: var(--vv-weight-semibold); }

/* A script's clip (18 October 2026, the Send a page campaign): the studio's
   screenplay page (patterns.css §12) at the proportions the studio uses on a
   phone (app.html's .app-page), so a clip reads as the studio does. The
   block being spoken takes .vv-page__block--now's tint; earlier ones dim. */
.lp-demo__lines .lp-page { flex-shrink: 0; width: 100%; box-sizing: border-box; padding: 1.5em 6% 2em; border-radius: 6px; font-size: 0.875rem; line-height: 1.3rem; }
.lp-page .vv-page__cue { margin-left: 32%; }
.lp-page .vv-page__paren { margin-left: 22%; max-width: none; }
.lp-page .vv-page__dialogue { margin-left: 12%; margin-right: 8%; max-width: none; }
.lp-page .lp-page-group { cursor: pointer; transition: opacity var(--vv-dur) var(--vv-ease); }
.lp-page .lp-page-group--quiet { color: var(--vv-ink-2); }
.lp-page .lp-page-group--past { opacity: 0.6; }
/* Dark unless Paper is chosen (18 October 2026, night): patterns.css
   .vv-page--dark; the reader's quiet blocks in the stage's secondary text. */
.lp-page.vv-page--dark .lp-page-group--quiet { color: var(--vv-text-2); }

@media (max-width: 680px) {
  .lp-demo__lines { height: 340px; }
  .lp-demo__lines .lp-page { font-size: 0.8125rem; line-height: 1.25rem; }
  /* On a phone the spoken paragraph keeps the script size: 23px wraps
     a long speech past what the box can show. */
  .lp-demo__lines .vv-line--now .vv-line__text { font-size: var(--vv-size-script); }
}
@media (prefers-reduced-motion: reduce) { .lp-seg { transition: none; } }
