/* Cinematic noir, from the selected Concept A and screen concepts in hub-design/cinematic-noir.
   Approved photography stays intact. Private reading uses warm case paper. */
@font-face { font-family: "Gloock"; src: url("/fonts/Gloock-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  --night: #070d10; --panel: #10171b; --lift: #1b2327; --rule: #574b3c;
  --bone: #f2eddf; --dim: #b6b3ab; --amber: #d6b684; --killer: #c74747;
  --paper: #f4eddf; --paper-ink: #262725; --teal: #1f6064; --holly: #943333;
  --display: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 1rem/1.65 var(--body); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
a { color: var(--amber); text-underline-offset: .2em; }
.eyebrow { font: 600 .76rem/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; color: #d15454; }
.k { color: var(--killer); font-style: normal; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; background: #922628; color: var(--bone); border: 1px solid #a33939; padding: .95rem 1.2rem; min-height: 52px; font-weight: 600; border-radius: 3px; }
.primary::after { content: ""; width: 1.3rem; height: 1.3rem; flex: none; background: currentColor; mask: url('/vendor/lucide/arrow-right.svg') center / contain no-repeat; }
.primary:hover { background: #aa3032; }
.primary:disabled { background: #27282a; border-color: #454545; color: #b1b0ad; cursor: not-allowed; }
.ghost { background: transparent; border: 1px solid var(--rule); padding: .7rem 1rem; min-height: 44px; border-radius: 3px; font-weight: 500; }
.ghost:hover { border-color: var(--amber); background: #192023; }
a.ghost { display: inline-flex; align-items: center; text-decoration: none; color: var(--bone); }
.note { color: var(--dim); font-size: .9rem; margin: 0; }
.error { color: #ffb2a8; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 500 .9rem/1.4 var(--body); color: var(--bone); }
.field input { background: #0b1217; border: 1px solid #928879; border-radius: 3px; padding: .8rem .9rem; min-height: 48px; min-width: 0; width: 100%; max-width: 100%; }
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: #a7a59e; }
.say { display: inline-flex; align-items: center; gap: .9rem; background: #080f12b3; border: 1px solid var(--amber); border-radius: 3px; padding: .7rem 1rem; min-height: 52px; font: 500 .95rem/1.3 var(--body); color: var(--bone); }
.say::before { content: ""; width: 1.55rem; height: 1.55rem; flex: none; background: var(--amber); mask: url('/vendor/lucide/play.svg') center / contain no-repeat; }
.say.on { background: #2b211a; color: var(--amber); }
.say.on::before { mask-image: url('/vendor/lucide/volume-2.svg'); }
.page { max-width: 1440px; margin-inline: auto; padding: 0 clamp(20px, 4vw, 56px) 4rem; display: grid; gap: 1.5rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--amber); }
.brand { font: 600 .86rem/1.25 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--bone); }
.topbar .brand { display: flex; flex: 1; align-items: center; gap: 1.5rem; }
.topbar .brand::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.hero, .host-intro { position: relative; display: grid; align-items: center; overflow: hidden; background: var(--night); }
.hero::before, .host-intro::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, #070d10f5 39%, #070d1070 59%, transparent 72%), var(--hero) 72% center / cover no-repeat; }
.hero > *, .host-intro > * { position: relative; }
.hero { min-height: 690px; }
.hero .copy, .host-intro .copy { padding: 2.5rem 0; width: min(49%, 580px); display: grid; gap: 1.2rem; }
.hero .copy p, .host-intro .copy p { margin: 0; }
.case-title { font: 400 clamp(3rem, 8.5vw, 7.8rem)/.98 var(--display); font-variant-caps: small-caps; margin: 0; letter-spacing: -.04em; }
.case-title .k { display: block; }
.headline { font: 400 clamp(1.35rem, 2.15vw, 1.9rem)/1.3 var(--display); margin: 0; padding-top: 1rem; border-top: 1px solid var(--amber); }
.form { display: grid; gap: 1rem; }
.form .primary, .hero .primary { width: 100%; }
.hero .primary { font-size: 1.2rem; }
.entry .hero .primary { font-size: 1.45rem; min-height: 64px; }
.hero .say { font-size: 1.1rem; }
.entry .field input { font-size: 1.3rem; min-height: 58px; }
.host-welcome .copy > p, .host-details .copy > p, .host-intro .copy > p { font-size: 1.05rem; }
.row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.saved { display: grid; gap: .6rem; font-size: .9rem; }
.saved:empty { display: none; }
.resume { margin-top: .4rem; padding: 1.2rem 0; border-block: 1px solid var(--amber); }
.resume summary { cursor: pointer; font-size: .88rem; list-style: none; }
.resume summary span { display: inline-block; margin-left: .8rem; color: var(--amber); text-decoration: underline; text-underline-offset: .2em; }
.resume[open] summary { margin-bottom: 1.2rem; }
.resume .form { margin-top: 1.2rem; }
.entry-note { padding-top: .3rem; font-size: .8rem; }
.steps2 { display: flex; align-items: center; gap: .6rem 1rem; font: 500 .85rem/1.3 var(--body); color: var(--dim); }
.steps2 button { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .3rem 0; min-height: 44px; color: inherit; }
.steps2 i { font-style: normal; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--amber); font-size: .8rem; }
.steps2 .on { color: var(--bone); font-weight: 600; }
.steps2 .on i { background: var(--amber); color: #10100d; }
.steps2 b { width: 2rem; height: 1px; background: var(--rule); }
.screen { display: grid; gap: 1.5rem; }
.screen h2 { font: 400 clamp(2.3rem, 4.8vw, 4.3rem)/1.08 var(--display); letter-spacing: -.025em; margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--amber); text-wrap: balance; }
.host-welcome { min-height: 740px; }
.host-welcome .copy { width: min(49%, 610px); }
.host-welcome .say { width: 100%; }
.host-key { display: grid; gap: .9rem; padding: 1.2rem 0; border-block: 1px solid var(--amber); }
.host-key .eyebrow { color: var(--bone); }
.key { display: block; text-align: left; font: 500 clamp(.9rem, 1.9vw, 1.35rem)/1.3 ui-monospace, Menlo, monospace; letter-spacing: .05em; padding: .9rem; border: 1px solid var(--rule); overflow-wrap: anywhere; }
.host-key .note { font-size: .85rem; }
.host-details .copy { max-width: 510px; }
.host-intro { min-height: 340px; }
.host-intro .copy { width: min(61%, 710px); }
.host-intro::before { background-image: linear-gradient(90deg, var(--night) 0%, #070d10f5 43%, #070d1070 62%, transparent 76%), var(--hero); background-size: auto, auto 100%; background-position: center, right center; }
.panel { padding: 1.5rem; border: 1px solid var(--rule); background: var(--panel); display: grid; gap: 1rem; }
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.prep-section { align-content: start; }
.prep-section h3 { display: flex; align-items: baseline; gap: .8rem; font: 400 1.75rem/1.2 var(--display); margin: 0; }
.prep-section h3 span { font: 500 .85rem/1 var(--body); color: var(--amber); }
.prep-section ul { margin: 0; padding-left: 1.3rem; font-size: .92rem; }
.tv-connection { display: grid; gap: .65rem; }
.tv-connection details { border: 1px solid var(--rule); border-radius: 3px; background: var(--night); padding: .8rem 1rem; }
.tv-connection summary { cursor: pointer; font-weight: 500; min-height: 28px; }
.tv-connection details[open] { border-color: var(--amber); }
.tv-connection ol { margin: .7rem 0 0; padding-left: 1.4rem; }
.tv-connection p { margin: .7rem 0 0; color: var(--dim); }

/* H4: cast the roles, as case files on Gus's desk */
.cast { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border: 1px solid var(--rule); border-radius: 3px; align-items: start; }
.desk { position: relative; padding: 2rem 1.4rem 0; display: grid; gap: 1.1rem; align-content: start; overflow: hidden;
  background: var(--night); }
.page:has(.cast) { max-width: 1520px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2.2rem 1.4rem; padding: 1rem 0 .4rem; }
.file { position: relative; display: grid; grid-template-columns: 50% 1fr; gap: .75rem; padding: .8rem .75rem .9rem .7rem; color: #2b2017;
  background: linear-gradient(170deg, #e2c193 0%, #d6b080 55%, #c89f70 100%); border-radius: 2px 6px 4px 4px;
  box-shadow: 6px -6px 0 -1px #c09c6f, 6px -6px 0 0 rgba(0,0,0,.28), 0 12px 20px rgba(0,0,0,.5); }
.file[data-tab] { padding-bottom: 2.6rem; }
.file[data-tab]::before { content: attr(data-tab); position: absolute; left: 12px; top: -16px; height: 17px; padding: 0 .7rem; background: #d8b888; border-radius: 4px 4px 0 0; font: 600 .6rem/17px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #4a3720; }
.photo { position: relative; background: #f5f0e5; padding: 5px 5px 6px; box-shadow: 0 3px 7px rgba(0,0,0,.35); transform: rotate(-1.5deg); align-self: start; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; }
.clip { position: absolute; top: -14px; left: 12px; width: 22px; height: 34px; background: #6b7073; mask: url('/vendor/lucide/paperclip.svg') center / contain no-repeat; }
.finfo { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.fname { font: 400 1.2rem/1.06 var(--display); color: #241a12; padding-bottom: .45rem; border-bottom: 1px solid rgba(43,32,23,.32); }
.frole { font-size: .74rem; line-height: 1.3; color: #46351f; }
.flabel { font: 600 .72rem/1 var(--body); color: #46351f; margin-top: .35rem; }
.file input[type="text"] { width: 100%; font: 500 1rem/1.2 var(--body); color: #1d140d; background: transparent; border: 0; border-bottom: 1px dashed rgba(43,32,23,.5); padding: .2rem 0; border-radius: 0; }
.file input::placeholder { color: #4d3c29; font-style: italic; }
.file input:focus-visible, .sit:focus-visible { outline: 2px solid #7a4a0c; outline-offset: 2px; }
.sit { position: absolute; right: .75rem; bottom: .65rem; font: 600 .7rem/1 var(--body); color: #3f2f1c; background: rgba(255,248,235,.35); border: 1px solid rgba(94,70,48,.45); padding: .38rem .55rem; border-radius: 3px; }
.stamp { display: none; position: absolute; right: .7rem; top: 46%; transform: rotate(-9deg); font: 700 .95rem/1 var(--body); color: #b3261e; border: 2px solid #b3261e; padding: .3rem .5rem; border-radius: 3px; }
.file.out { background: linear-gradient(170deg, #b9a07c 0%, #a88d68 100%); }
.file.out > .photo, .file.out > .finfo { opacity: .55; }
.file.out .photo img { filter: grayscale(1); }
.file.out .stamp { display: block; }
.file.out input, .file.out .flabel { visibility: hidden; }
.props { display: block; width: min(540px, 90%); margin: .4rem auto 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%); mask-image: linear-gradient(to bottom, transparent, #000 50%); }
.cast-side { padding: 1.8rem 1.5rem; display: grid; gap: 1.1rem; align-content: start; background: var(--panel); border-left: 1px solid var(--rule); position: sticky; top: 1rem; }
.count { font: 400 4.4rem/1 var(--display); text-align: center; color: #f3e9d6; }
.count small { display: block; font: 500 1.05rem/1.3 var(--body); color: #e9dfcc; margin-top: .4rem; }
.count .rule { font-size: .86rem; color: #b9ab98; margin-top: .3rem; }
.cast-side hr { border: 0; border-top: 1px solid #3f372b; margin: 0; }
.changes h4 { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 .55rem; }
.changes ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .86rem; color: #e2d8c6; }
.changes .none { color: #a89c8a; font-size: .86rem; margin: 0; }
.ready { padding: .75rem .8rem; border: 1px solid #3f372b; font-size: .86rem; color: #e2d8c6; }
.ready.ok { border-color: #5d7f52; }
.jump { background: none; border: 0; padding: 0; color: var(--amber); text-decoration: underline; font-weight: 600; }
.file.empty input[type="text"] { border-bottom: 2px solid #b3261e; }

/* H5: invites */
.invites { display: grid; gap: .8rem; }
.invite { display: grid; grid-template-columns: 80px minmax(160px, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: 1.2rem; background: var(--panel); border: 1px solid var(--rule); }
.invite img { width: 80px; height: 96px; border-radius: 2px; object-fit: cover; object-position: 50% 14%; }
.invite .who { font: 400 1.6rem/1.1 var(--display); }
.invite .link { font: 500 .78rem/1.3 ui-monospace, Menlo, monospace; color: var(--dim); overflow-wrap: anywhere; }
.invite .acts { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: end; }
.invite .warn { grid-column: 2 / -1; font-size: .86rem; color: #f0c48a; }
.warn { font-size: .86rem; color: #f0c48a; margin: 0; }
.screen:focus { outline: none; }
.qr { display: grid; justify-items: start; gap: .5rem; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 6px; }
.badge { font: 600 .72rem/1 var(--body); padding: .3rem .5rem; border-radius: 999px; border: 1px solid #3a465e; color: var(--dim); white-space: nowrap; }
.badge.ok { border-color: #5d7f52; color: #b9dcae; }

@media (max-width: 860px) {
  .cast { grid-template-columns: 1fr; }
  .cast-side { border-left: 0; border-top: 1px solid var(--rule); }
  .invite { grid-template-columns: 48px minmax(0, 1fr); }
  .invite .acts { grid-column: 1 / -1; justify-content: start; }
}

/* TV: one 16:9 stage that fills the window, sized in container units like the mockup */
body.tv { overflow: hidden; height: 100dvh; display: grid; place-items: center; background: #000; }
.tvbox { position: relative; width: min(calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)), calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9)); aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; container-type: inline-size; }
.tv-top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; gap: 2cqi; padding: 1.5cqi 3.2cqi; z-index: 3; border-bottom: 1px solid var(--rule); background: var(--night); }
.tv-round { font: 400 2.4cqi/1 var(--display); }
.tv-brand { font-size: 1cqi; flex: none; }
.tv-round { margin-right: auto; }
.tv-round span { font: 600 1.1cqi/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: .7cqi; }
.stepper { display: flex; gap: 1.6cqi; font: 600 1.05cqi/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stepper .on { color: var(--bone); }
.stepper .on { padding-bottom: .5cqi; border-bottom: 1px solid var(--amber); }
.mini-timer { font: 400 2.2cqi/1 var(--display); font-variant-numeric: tabular-nums; }
.stage { position: absolute; inset: 0; padding: 9cqi 3.2cqi 8cqi; display: grid; }
.st-intro { grid-template-columns: 1.1fr 1fr; gap: 3cqi; align-items: center; }
.narration-copy { position: relative; z-index: 1; min-width: 0; }
.narration-copy h3 { font: 400 4.5cqi/1.08 var(--display); margin: 0 0 1.2cqi; padding-bottom: 1.2cqi; border-bottom: 1px solid var(--amber); text-wrap: balance; }
.st-intro img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 90% center; mask-image: linear-gradient(90deg, transparent, #000 18%); }
.st-intro.long { grid-template-columns: 1.3fr 1fr; }
.long .narration-copy h3 { font-size: 3.6cqi; }
.transcript { font: 400 2.1cqi/1.35 var(--display); color: var(--bone); margin: 0; max-height: 22cqi; overflow-y: auto; scrollbar-color: var(--amber) var(--panel); padding-right: .8cqi; }
.long .transcript { font: 400 1.8cqi/1.5 var(--body); max-height: 21cqi; }
.transcript::-webkit-scrollbar { width: .45cqi; }
.transcript::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 1cqi; }
.transcript::-webkit-scrollbar-track { background: var(--panel); }
.speaker { font: 600 1.1cqi/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1cqi; display: block; }
.player { display: flex; align-items: center; gap: 1.2cqi; margin-top: 2cqi; font: 500 1.2cqi/1 var(--body); color: var(--dim); }
.player button { font: 600 1.2cqi/1 var(--body); padding: .9cqi 1.4cqi; border: 1px solid #3a465e; background: transparent; border-radius: .3cqi; }
.player .track { flex: 1; height: .4cqi; background: #263147; position: relative; }
.player .track i { position: absolute; inset: 0 auto 0 0; background: var(--amber); }
.st-film { place-items: center; padding: 8cqi 3.2cqi 7cqi; }
.st-film video { width: min(70cqi, 100%); aspect-ratio: 16 / 9; background: #05070b; outline: 1px solid var(--rule); }
.st-board { align-content: center; gap: 1.2cqi; }
.board { display: grid; gap: 1.4cqi; }
.ev { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #05070b; outline: 1px solid var(--rule); padding: 0; border: 0; text-align: left; color: inherit; display: block; width: 100%; }
.ev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev .cap { position: absolute; inset: auto 0 0 0; padding: 6cqi 1.3cqi 1.3cqi; display: grid; gap: .6cqi;
  background: linear-gradient(to bottom, rgba(7,10,16,0), rgba(7,10,16,.78) 30%, rgba(7,10,16,.94)); }
.ev .tag { font: 600 .95cqi/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.ev .t { font: 400 1.5cqi/1.25 var(--display); color: #efe6d6; }
.pager { display: flex; justify-content: center; gap: 1cqi; font: 600 1.1cqi/1 var(--body); color: var(--dim); }
.zoom { position: absolute; inset: 0; z-index: 7; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4cqi; padding: 3cqi; background: rgba(5,7,11,.97); align-items: center; }
.zoom img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; outline: 1px solid var(--rule); }
.zoom .t { font: 400 2.2cqi/1.3 var(--display); margin: .8cqi 0 1.4cqi; }
.zoom ul { list-style: none; margin: 0 0 1.6cqi; padding: 0; display: grid; gap: .8cqi; font: 400 1.45cqi/1.4 var(--body); color: #d9d2c4; }
.zoom ul b { color: var(--amber); font-weight: 600; }
.zoom > div { max-height: 46cqi; overflow-y: auto; padding-right: 1cqi; scrollbar-color: var(--amber) var(--panel); }
.st-talk { grid-template-columns: 1fr auto; gap: 4cqi; align-items: center; }
.st-talk::before { content: ""; position: absolute; inset: 7cqi 0 7cqi; background: linear-gradient(90deg, var(--night) 0%, #070d10ef 40%, #070d1070 58%, #070d10cc 100%), var(--hero) calc(100% - 16cqi) center / auto 100% no-repeat; }
.st-talk > * { position: relative; }
.cue { display: grid; gap: 1.4cqi; }
.cue h3 { font: 400 4.4cqi/1.05 var(--display); margin: 0; text-wrap: balance; max-width: 50cqi; padding-bottom: 1.4cqi; border-bottom: 1px solid var(--amber); }
.cue ol { margin: 0; padding-left: 2.4cqi; font: 400 1.7cqi/1.5 var(--body); color: #d5cfc2; }
.departed { border-left: .4cqi solid var(--amber); padding: 1cqi 1.6cqi; display: grid; gap: .6cqi; font: 400 1.35cqi/1.4 var(--body); color: #e2d8c6; max-height: 18cqi; overflow-y: auto; }
.departed b { font: 600 1.1cqi/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.timer { text-align: center; display: grid; gap: 1.2cqi; justify-items: center; }
.timer .digits { font: 400 9cqi/1 var(--display); font-variant-numeric: tabular-nums; padding-block: 1cqi; border-block: 1px solid var(--rule); }
.timer .label { font: 600 1.05cqi/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.timer.up .digits { color: var(--amber); }
.st-center { align-content: center; }
.st-center::before { content: ""; position: absolute; inset: 7cqi 0 7cqi; background: linear-gradient(90deg, var(--night), #070d10f2 38%, #070d1080 65%, transparent), var(--hero) right center / auto 100% no-repeat; }
.center-copy { position: relative; width: 58cqi; display: grid; gap: 2cqi; }
.st-center h3 { font: 400 5.4cqi/1.08 var(--display); margin: 0; text-wrap: balance; max-width: 70cqi; }
.st-center p { font: 400 1.7cqi/1.5 var(--body); color: #d5cfc2; margin: 0; max-width: 60cqi; }
.lobby-list { display: flex; flex-wrap: wrap; gap: 1cqi; max-width: 58cqi; }
.lobby-list span { font: 500 1.3cqi/1 var(--body); padding: .9cqi 1.3cqi; border: 1px solid var(--rule); border-radius: 3px; color: var(--dim); }
.lobby-list span.in { color: var(--bone); border-color: #5d7f52; }
.lobby-list span.in::before { content: ""; display: inline-block; width: .55cqi; height: .55cqi; margin-right: .7cqi; border-radius: 50%; background: #9fc58a; }
.tv-controls { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; gap: 1cqi; padding: 2cqi 3.2cqi; z-index: 5; background: var(--night); border-top: 1px solid var(--rule); }
.tv-controls .group { display: flex; gap: 1cqi; }
.tvb { font: 600 1.2cqi/1 var(--body); padding: 1.1cqi 1.7cqi; border: 1px solid #3a465e; background: transparent; border-radius: .3cqi; }
.tvb.go { background: #922628; border-color: #a33939; color: var(--bone); }
.tvb:disabled { opacity: .4; cursor: default; }
.tv-note { font: 500 1.05cqi/1.3 var(--body); color: var(--dim); }
.overlay { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; text-align: center; gap: 2cqi; align-content: center; background: rgba(5,7,11,.94); }
.overlay h2 { font: 400 4cqi/1.1 var(--display); margin: 0; }
.overlay p { font: 400 1.6cqi/1.5 var(--body); color: #d5cfc2; margin: 0; max-width: 60cqi; }
.overlay .tvb { font-size: 1.6cqi; }
.overlay .tv-connection { width: min(76cqi, 900px); max-height: 28cqi; overflow-y: auto; text-align: left; font-size: clamp(14px, 1.3cqi, 20px); }
.overlay .tv-connection p { font: inherit; color: var(--dim); max-width: none; }
.tv-help { width: min(720px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.5rem; border: 1px solid var(--amber); border-radius: 4px; background: var(--night); color: var(--bone); }
.tv-help::backdrop { background: rgba(0,0,0,.8); }
.tv-help h2 { font: 400 2rem/1.2 var(--display); margin: 0 0 1rem; }
.tv-help .tvb { font: 600 .9rem/1.4 var(--body); min-height: 44px; padding: .75rem 1rem; }
.tv-help form { margin-top: 1rem; }
.pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqi; max-width: 80cqi; }
.banner { position: absolute; top: 7.5cqi; left: 50%; transform: translateX(-50%); z-index: 6; font: 600 1.15cqi/1.3 var(--body); padding: .8cqi 1.6cqi; background: #2a2210; border: 1px solid var(--amber); border-radius: .4cqi; display: flex; gap: 1.2cqi; align-items: center; }

/* Guest phone */
body.guest { background: var(--night); }
.guest-brand { max-width: 860px; margin-inline: auto; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--amber); }
.g-top { max-width: 860px; margin-inline: auto; padding: 1.8rem 1.5rem; display: grid; grid-template-columns: 112px 1fr; gap: .9rem; align-items: center; border-bottom: 1px solid var(--rule); background: var(--night); }
.g-face { width: 112px; height: 140px; border-radius: 2px; object-fit: cover; object-position: 50% 14%; border: 2px solid var(--amber); background: var(--panel); }
.g-portrait { width: 112px; height: 140px; overflow: hidden; border: 2px solid var(--amber); border-radius: 2px; background: var(--panel); }
.g-portrait .g-face { width: 100%; height: 100%; border: 0; transform: scale(1.5); transform-origin: 50% 25%; }
.g-id { display: grid; gap: .2rem; min-width: 0; }
.g-top .who { font: 400 clamp(1.8rem, 4vw, 2.9rem)/1.1 var(--display); overflow-wrap: anywhere; }
.g-top .st { font-size: .8rem; color: var(--dim); }
.tabs { max-width: 860px; margin-inline: auto; display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); background: var(--night); position: sticky; top: 0; z-index: 2; }
.tabs button { flex: 1 0 auto; background: none; border: 0; padding: 1rem .7rem; min-height: 52px; font: 600 .78rem/1.1 var(--body); color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--amber); background: #702427; }
.tabs button .lock { display: block; font-size: .65rem; font-weight: 500; margin-top: .25rem; }
.g-body { padding: 1.5rem; display: grid; gap: 1.2rem; align-content: start; max-width: 860px; margin-inline: auto; }
.g-panel { display: grid; gap: 1.1rem; }
.card { background: var(--paper); color: var(--paper-ink); padding: 1.5rem; display: grid; gap: .8rem; border: 1px solid #d9ccb1; border-radius: 3px; overflow-wrap: break-word; hyphens: auto; }
.card .lab { font: 700 .68rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.card h4 { font: 400 1.65rem/1.25 var(--display); margin: 0; }
.card p { margin: 0; font-size: 1rem; line-height: 1.7; }
.card.aloud { border-left: 5px solid var(--teal); }
.card.aloud .lab::before { content: ""; display: inline-block; vertical-align: middle; margin-right: .5rem; width: 1.1rem; height: 1.1rem; background: currentColor; mask: url('/vendor/lucide/volume-2.svg') center / contain no-repeat; }
.card.private { background: #efe4cf; border: 2px dashed var(--holly); }
.card.private .lab { color: var(--holly); }
.card.private .lab::before { content: ""; display: inline-block; vertical-align: middle; margin-right: .5rem; width: 1.1rem; height: 1.1rem; background: currentColor; mask: url('/vendor/lucide/lock-keyhole.svg') center / contain no-repeat; }
.card.ask { border-left: 5px solid var(--holly); }
.card.ask.skip { opacity: .6; }
.card.ask.skip p { text-decoration: line-through; }
.audio { display: grid; gap: .4rem; }
.audio audio { width: 100%; }
.locked { padding: 3rem 1.5rem; text-align: center; border: 1px solid var(--rule); background: var(--panel); color: var(--dim); font-size: .95rem; }
.locked.waiting::before { content: ""; display: block; width: 2rem; height: 2rem; margin: 0 auto 1rem; background: var(--amber); mask: url('/vendor/lucide/lock-keyhole.svg') center / contain no-repeat; }
.locked b { display: block; font: 400 1.8rem/1.2 var(--display); color: var(--bone); margin-bottom: .7rem; }
.notice { padding: 1rem; border: 1px solid var(--amber); background: #24181a; display: grid; gap: .3rem; }
.notice b { font: 400 1.2rem/1.2 var(--display); }
.gone { min-height: 70vh; width: 100%; display: grid; place-items: center; padding: 2rem; text-align: center; background: linear-gradient(90deg, var(--night), #070d10ed 70%, #070d10a0), url('/img/gus/tv-lobby.jpg') right center / cover no-repeat; }
.gone .brand { display: block; margin-bottom: 1.8rem; }
.gone h1 { font: 400 2rem/1.1 var(--display); margin: 0 0 .5rem; }
.privacy-note { padding: 1rem 0; border-top: 1px solid var(--rule); }
.audio { padding: .4rem 0; }
.audio .eyebrow { color: var(--amber); }
.player button { display: inline-flex; align-items: center; gap: .7cqi; border-color: var(--rule); color: var(--bone); }
.player button::before { content: ""; width: 1.4cqi; height: 1.4cqi; background: currentColor; mask: url('/vendor/lucide/play.svg') center / contain no-repeat; }
.player #replay::before { mask-image: url('/vendor/lucide/rotate-ccw.svg'); }
.player #pp { background: #922628; border-color: #a33939; }
.player #pp[data-playing="true"]::before { mask-image: url('/vendor/lucide/pause.svg'); }
.player #unzoom::before { display: none; }
.connect-overlay { align-content: center; justify-items: start; text-align: left; padding: 3cqi; gap: 1.2cqi; background: linear-gradient(90deg, var(--night), #070d10f2 44%, #070d1080 65%, transparent), url('/img/gus/tv-connect.jpg') center / cover no-repeat; }
.connect-overlay h2 { max-width: 65cqi; font-size: 5.4cqi; }
.connect-overlay p { max-width: 56cqi; font-size: 1.35cqi; }
.connect-overlay .tv-connection { width: 56cqi; max-height: 24cqi; }
.connect-overlay .tvb.go { min-width: 35cqi; }
.connect-portrait { display: none; }
@media (max-width: 1100px) {
  .invite { grid-template-columns: 80px minmax(0, 1fr); }
  .invite .acts { grid-column: 1 / -1; justify-content: start; }
}
@media (max-width: 700px) {
  .page { padding: 0 20px 2rem; gap: 1rem; }
  .topbar { gap: .75rem; flex-wrap: wrap; padding: 1rem 0; }
  .brand { font-size: .72rem; }
  .topbar .brand::after { display: none; }
  .topbar .ghost { font-size: .72rem; padding: .6rem; }
  .steps2 { gap: .35rem; justify-content: space-between; font-size: .73rem; }
  .steps2 button { gap: .35rem; }
  .steps2 i { width: 1.55rem; height: 1.55rem; font-size: .7rem; }
  .steps2 b { width: .6rem; }
  .hero, .host-intro { min-height: 0; }
  .hero::before, .host-intro::before { position: relative; inset: auto; width: 100%; aspect-ratio: 1.45; background: var(--hero) 83% 28% / auto 125% no-repeat; mask-image: linear-gradient(#000 82%, transparent); }
  .host-welcome::before, .host-details::before, .host-intro::before { background-size: auto 100%; background-position: right center; }
  .hero .copy, .host-intro .copy { width: 100%; max-width: none; padding: .7rem 0 1.5rem; gap: 1rem; }
  .case-title { font-size: clamp(2.7rem, 12.5vw, 5rem); }
  .headline { font-size: 1.3rem; }
  .screen h2 { font-size: 2.35rem; }
  .key { font-size: .95rem; }
  .resume summary span { margin-left: .35rem; }
  .prep-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.2rem; }
  .desk { padding: 2rem 1rem 0; }
  .files { grid-template-columns: minmax(0, 1fr); }
  .cast-side { position: static; padding: 1.5rem 1rem; }
  .invite { padding: 1rem; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; }
  .invite img { width: 64px; height: 80px; }
  .invite .who { font-size: 1.35rem; }
  .invite .acts { gap: .5rem; }
  .invite .ghost { font-size: .82rem; flex: 1 0 auto; justify-content: center; }
  .invite .warn { grid-column: 1 / -1; }
  .g-top { padding: 1.2rem; grid-template-columns: 88px 1fr; gap: .9rem; }
  .g-face { width: 88px; height: 112px; }
  .g-portrait { width: 88px; height: 112px; }
  .g-top .who { font-size: 1.8rem; }
  .guest-brand { padding: 1.1rem 1.2rem; }
  .g-body { padding: 1rem; }
  .tabs button { font-size: .73rem; padding-inline: .6rem; }
  .card { padding: 1.2rem; }
  .card p { line-height: 1.65; }
  .card h4 { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .steps2 b { display: none; }
}
@media (max-width: 700px) and (orientation: portrait) {
  body.tv { height: auto; min-height: 100svh; overflow: auto; display: block; background: var(--night); }
  .tvbox { width: 100%; min-height: 100svh; aspect-ratio: auto; overflow: visible; }
  .tv-top { position: relative; padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem; flex-wrap: wrap; gap: .75rem; }
  .tv-brand { font-size: .65rem; }
  .tv-round { font-size: 1.15rem; }
  .tv-round span { font-size: .65rem; margin-bottom: .35rem; }
  #topright { width: 100%; order: 1; }
  .stepper { flex-wrap: wrap; gap: .85rem; font-size: .7rem; }
  .mini-timer { font-size: 1rem; }
  #stage:focus { outline: none; }
  .stage { position: relative; inset: auto; padding: 1.25rem; min-height: 60svh; }
  .st-intro, .st-intro.long, .st-talk { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .st-intro img { order: -1; height: auto; max-height: 240px; aspect-ratio: 1.5; object-position: right center; mask-image: linear-gradient(#000 85%, transparent); }
  .narration-copy h3, .long .narration-copy h3, .cue h3 { font-size: 2rem; max-width: none; padding-bottom: .75rem; margin-bottom: .75rem; }
  .speaker { font-size: .7rem; margin-bottom: .75rem; }
  .transcript, .long .transcript { font: 400 1rem/1.6 var(--body); max-height: none; padding-right: 0; }
  .player { flex-wrap: wrap; gap: .75rem; margin-top: 1rem; font-size: .8rem; }
  .player button, .tvb, .overlay .tvb { min-height: 44px; font: 600 .85rem/1.4 var(--body); padding: .7rem .9rem; border-radius: 3px; }
  .player button::before { width: 1rem; height: 1rem; }
  .player .track { height: 3px; min-width: 40px; }
  .st-film { padding: 1.25rem; }
  .st-film video { width: 100%; }
  .st-board { gap: 1rem; }
  .board { width: 100% !important; grid-template-columns: minmax(0, 1fr) !important; gap: 1rem; }
  .ev .cap { padding: 3rem .8rem .8rem; gap: .4rem; }
  .ev .tag { font-size: .7rem; }
  .ev .t { font-size: 1rem; }
  .pager { gap: .5rem; font-size: .8rem; flex-wrap: wrap; }
  .zoom { position: fixed; grid-template-columns: minmax(0, 1fr); overflow-y: auto; padding: 1.25rem; gap: 1rem; align-content: start; }
  .zoom .t { font-size: 1.3rem; margin: .75rem 0; }
  .zoom ul { font-size: 1rem; gap: .75rem; }
  .zoom > div { max-height: none; overflow: visible; }
  .cue { gap: 1rem; }
  .cue ol { padding-left: 1.3rem; font-size: 1rem; }
  .departed { max-height: none; padding: .75rem; gap: .5rem; font-size: .9rem; }
  .departed b { font-size: .75rem; }
  .timer { gap: .75rem; }
  .timer .digits, #digits { font-size: 3.5rem !important; }
  .timer .label { font-size: .75rem; }
  .center-copy { width: 100%; gap: 1rem; }
  .st-center h3 { font-size: 2rem; max-width: none; }
  .st-center p { font-size: 1rem; max-width: none; }
  .lobby-list { max-width: none; gap: .5rem; }
  .lobby-list span { font-size: .85rem; padding: .6rem; }
  .tv-controls { position: relative; padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); gap: .75rem; flex-wrap: wrap; }
  .tv-controls .group { gap: .5rem; flex-wrap: wrap; }
  .tv-controls .go { width: 100%; }
  .tv-note { font-size: .85rem; }
  .overlay { position: fixed; padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom)); overflow-y: auto; align-content: start; gap: 1rem; }
  .connect-overlay { background: var(--night); }
  .connect-portrait { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: right center; border-radius: 3px; }
  .connect-overlay #connection { width: 100%; }
  .overlay h2, .connect-overlay h2 { max-width: none; font-size: 2rem; }
  .overlay p, .connect-overlay p { max-width: none; font-size: 1rem; }
  .overlay .tv-connection, .connect-overlay .tv-connection { width: 100%; max-height: none; font-size: 1rem; }
  .pick { max-width: none; gap: .5rem; }
  .banner { position: fixed; top: max(.5rem, env(safe-area-inset-top)); width: calc(100% - 2rem); gap: .5rem; flex-wrap: wrap; font-size: .85rem; padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
