/* Shadow Theater: an old shadow-puppet theater at night. A lit paper screen in a carved wooden frame, a velvet curtain,
   warm footlights; everything else stays dark and quiet so the screen glows. Copyright (C) 2026 B7 Collective LLC. */
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --house: #120B07; --house-2: #1B110B; --wood: #2A170D; --wood-2: #3B2215; --wood-hi: #6A4428;
  --text: #F4E7D0; --muted: #D2BE9F; --faint: #A8916F; --amber: #F2B544; --amber-hi: #FFD27A; --ink: #1A0F08;
  --velvet: #4A1412; --velvet-2: #2C0B0A; --lamp: #FFE3AA;
  --glass: rgba(30, 19, 12, .86); --line: rgba(255, 214, 150, .14);
  --serif: "Literata", Georgia, serif; --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --bar: 64px; --gap: clamp(12px, 2vw, 24px); --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--house); color: var(--text); font: 400 17px/1.5 var(--sans);
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(150, 82, 30, .22), transparent 60%); background-attachment: fixed; }
button, input { font: inherit; color: inherit; }
a { color: var(--amber-hi); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
main:focus { outline: none; }
.noscript { max-width: 560px; margin: 15vh auto; padding: 24px; }

/* ---------------------------------------------------------------- header */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: var(--bar);
  padding: 0 calc(240px + env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: rgba(18, 11, 7, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand b { display: block; font: 600 19px/1.1 var(--serif); letter-spacing: .01em; }
.brand small { display: block; color: var(--faint); font-size: 12.5px; }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar-nav a:hover { color: var(--text); background: rgba(255, 220, 160, .06); }
.bar-nav a.on { color: var(--ink); background: var(--amber); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 214, 150, .28);
  background: rgba(255, 226, 170, .06); color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: rgba(255, 226, 170, .13); border-color: rgba(255, 214, 150, .45); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: var(--amber-hi); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 226, 170, .07); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.link:hover { color: var(--text); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: rgba(255, 214, 150, .35); }
.chip.on { background: rgba(242, 181, 68, .16); border-color: var(--amber); color: var(--amber-hi); }
.kicker { font: italic 400 15px/1.3 var(--serif); color: var(--amber-hi); letter-spacing: .02em; }
.fine { color: var(--faint); font-size: 14px; line-height: 1.45; }
.small { font-size: 14px; color: var(--muted); }
/* made with hands: a small ink stamp of a hand, not a pill */
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid currentColor; color: #7A3E12; font-size: 0; }
.badge::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 13V5a1.5 1.5 0 0 1 3 0v6V3.5a1.5 1.5 0 0 1 3 0V10V5a1.5 1.5 0 0 1 3 0v8c0 4-3 8-7 8-3 0-4.5-1.5-6-4l-2-3.5a1.5 1.5 0 0 1 2.5-1.6L8 15z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 13V5a1.5 1.5 0 0 1 3 0v6V3.5a1.5 1.5 0 0 1 3 0V10V5a1.5 1.5 0 0 1 3 0v8c0 4-3 8-7 8-3 0-4.5-1.5-6-4l-2-3.5a1.5 1.5 0 0 1 2.5-1.6L8 15z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rail .badge { color: var(--amber-hi); }

/* ---------------------------------------------------------------- the stage view */
.view-stage { padding: var(--gap); padding-left: max(var(--gap), env(safe-area-inset-left)); padding-right: max(var(--gap), env(safe-area-inset-right)); }
.stagewrap { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.deskmain > *, .desk > * { min-width: 0; }
.theater { position: relative; min-width: 0; }
/* the frame: dark carved wood with a fretwork band, lit from inside by the screen */
.prosc { position: relative; padding: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 0; border-radius: 18px 18px 10px 10px;
  background-color: var(--wood);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23573620' stroke-width='1.6'%3E%3Cpath d='M0 14a7 7 0 0 1 14 0a7 7 0 0 0 14 0M0 14a7 7 0 0 0 14 0a7 7 0 0 1 14 0'/%3E%3Ccircle cx='14' cy='14' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(255, 200, 140, .12), inset 0 2px 0 rgba(255, 210, 150, .12), 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(255, 170, 80, .22); }
.prosc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 4px rgba(20, 10, 5, .55), inset 0 0 0 5px rgba(200, 140, 80, .14); }
.screen { position: relative; overflow: hidden; border-radius: 4px; background: #E9B66C; box-shadow: 0 0 0 2px #140A05, 0 0 40px rgba(255, 190, 110, .35);
  height: calc(100dvh - var(--bar) - var(--gap) * 2 - 46px - 56px); min-height: 300px; touch-action: none; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen canvas.back { opacity: 0; transition: opacity .9s ease; }
.screen canvas.back.on { opacity: 1; }
.screen canvas.live { cursor: grab; }
.screen canvas.live:active { cursor: grabbing; }
.screen canvas.live:focus-visible { outline: none; }
/* the oil lamp breathes, very slowly */
.lamp { position: absolute; inset: -10%; pointer-events: none; background: radial-gradient(45% 50% at 50% 40%, rgba(255, 246, 220, .38), transparent 70%); mix-blend-mode: soft-light; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .75; transform: translateX(-1.5%); } to { opacity: 1; transform: translateX(1.5%); } }
/* the scalloped pelmet across the top of the screen */
.valance { position: absolute; z-index: 3; left: clamp(10px, 1.6vw, 20px); right: clamp(10px, 1.6vw, 20px); top: clamp(10px, 1.6vw, 20px); height: 20px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20' viewBox='0 0 60 20'%3E%3Cpath d='M0 0h60v6c-6 0-9 9-15 9S36 6 30 6s-9 9-15 9S6 6 0 6z' fill='%232A170D'/%3E%3Cpath d='M0 6c6 0 9 9 15 9s9-9 15-9 9 9 15 9 9-9 15-9' fill='none' stroke='%236A4428' stroke-width='1'/%3E%3Ccircle cx='15' cy='16.5' r='1.6' fill='%23C98B45'/%3E%3Ccircle cx='45' cy='16.5' r='1.6' fill='%23C98B45'/%3E%3C/svg%3E") repeat-x top left / 60px 20px; }
/* the velvet curtains: drawn shut at a bow */
.curtain { position: absolute; top: 0; bottom: 0; width: 0; z-index: 4; pointer-events: none; transition: width 1.6s cubic-bezier(.45, .05, .2, 1);
  background: repeating-linear-gradient(90deg, var(--velvet-2) 0 4%, var(--velvet) 9%, #5E1C18 12%, var(--velvet) 15%, var(--velvet-2) 20%); box-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.curtain.l { left: 0; border-radius: 0 0 40% 0 / 0 0 8% 0; }
.curtain.r { right: 0; border-radius: 0 0 0 40% / 0 0 0 8%; }
.screen.closed .curtain { width: 51%; }
/* the sill and its footlights; they warm up gently when a challenge is done */
.sill { position: relative; height: 26px; margin: 0 calc(clamp(10px, 1.6vw, 20px) * -1); border-radius: 0 0 10px 10px; background: linear-gradient(#3B2215, #24140B); box-shadow: inset 0 1px 0 rgba(255, 210, 150, .18); }
.sill::before { content: ""; position: absolute; left: 6%; right: 6%; top: 9px; height: 8px; border-radius: 8px;
  background: radial-gradient(circle at center, #FFD992 0 3px, transparent 4px) repeat-x 0 0 / 34px 8px; opacity: .75; filter: drop-shadow(0 0 4px rgba(255, 200, 110, .8)); }
.sill::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 100%; height: 60px; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 214, 140, .55), transparent 70%); }
.sill.cheer::after { animation: cheer 2.6s ease-out; }
@keyframes cheer { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.cue { position: absolute; z-index: 5; left: 50%; bottom: 7%; transform: translateX(-50%); max-width: 86%; padding: 10px 18px; border-radius: 999px; background: rgba(26, 15, 8, .82); color: var(--text);
  font-weight: 700; font-size: clamp(15px, 1.4vw, 19px); text-align: center; opacity: 0; transition: opacity .6s; pointer-events: none; }
.cue.on { opacity: 1; }
.overlay { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; background: radial-gradient(70% 70% at 50% 50%, rgba(18, 10, 5, .25), rgba(18, 10, 5, .55)); overflow: auto; }
.overlay[hidden] { display: none; }
.card { max-width: 520px; padding: clamp(20px, 3vw, 34px); border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card h1 { font-size: clamp(34px, 5vw, 56px); margin: 4px 0 10px; }
.card h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 10px; }
.card p { color: var(--muted); }
.card .row { margin: 18px 0 14px; }
.card.note { max-width: 460px; }
.card.consent { max-width: 540px; }
.card.consent .kid { font: 400 20px/1.4 var(--serif); color: var(--text); margin-bottom: 10px; }
.card.consent .grown { font-size: 15px; }
.camlive { position: absolute; z-index: 6; top: 30px; left: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 12px; border-radius: 999px; border: 0;
  background: rgba(26, 15, 8, .85); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.camlive .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2574C; box-shadow: 0 0 0 3px rgba(226, 87, 76, .25); }
.camlive b { padding: 7px 12px; border-radius: 999px; background: var(--amber); color: var(--ink); }
.camlive[hidden] { display: none; }
.read { display: block; margin: -6px 0 8px; }
.card.note p { color: var(--text); }

/* the small mirror of the player's hands */
.mirror { position: relative; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #0C0704; box-shadow: inset 0 0 0 1px var(--line); }
.mirror video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: sepia(.5) brightness(.75) contrast(1.05); }
.mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mirror.veiled video, .mirror.veiled canvas { opacity: 0; }
.mirror.veiled::after { content: "Mirror hidden"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.mirror[hidden] { display: none; }
.desk > #scriptbox > section, .castbox { padding: clamp(16px, 2vw, 22px); border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
#scriptbox { min-width: 0; }
.camzone { display: grid; gap: 10px; justify-items: start; margin-top: 22px; }
.camctl { display: grid; gap: 8px; justify-items: start; }
.castnote:empty { display: none; }
.castnote { margin-top: 10px; }
/* the strip right under the stage: the chosen puppet's tricks, the show's next step, Stop camera */
.strip { display: flex; align-items: center; gap: 8px; padding: 10px 2px 0; min-height: 0; }
.strip-tricks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.strip-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.strip-nav:empty { display: none; }
.strip:empty { display: none; }
.strip .btn.small { min-height: 44px; flex: none; white-space: nowrap; }
.strip-tricks > * { flex: none; }
.strip-name { font: 600 17px/1 var(--serif); color: var(--amber-hi); margin: 0 4px 0 2px; }
.strip-gap { flex: 1; }
.strip .stop .dot, .camlive .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2574C; box-shadow: 0 0 0 3px rgba(226, 87, 76, .25); }
.beatrow { display: flex; align-items: flex-start; gap: 12px; }
.beatrow .beat { flex: 1; }
.speak { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 214, 150, .35); background: rgba(255, 226, 170, .08); color: var(--amber-hi); display: grid; place-items: center; cursor: pointer; }
.speak:hover { background: rgba(255, 226, 170, .16); }
#readnote:empty { display: none; }
.dare-t { font-size: 17px; color: var(--text); margin-top: 2px; }
.cheer-line { color: var(--amber-hi) !important; font-weight: 700; margin-top: 6px; }
.castguide { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.cg { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid rgba(80, 45, 20, .5); cursor: pointer; text-align: left;
  background: radial-gradient(90% 90% at 30% 40%, #FBE2B0, #E2A95E); color: var(--ink); font-weight: 700; font-size: 15px; min-height: 72px; }
.cg small { display: block; font-weight: 700; font-size: 12.5px; color: #6A3F12; text-decoration: underline; }
.cg svg { width: 64px; height: 64px; }
.cg:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--amber); }
/* a prompter's cue card: a slip of paper with a folded corner */
.hintline { margin: 0 0 12px; padding: 10px 14px 10px 14px; background: #EFD9AE; color: #3A2412; font-size: 15px; border-radius: 3px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); box-shadow: inset 0 -2px 0 rgba(90, 55, 20, .15); }
.hintline::before { content: "Cue: "; font: italic 600 15px var(--serif); }
/* the "Show me" drawer */
.drawer { max-width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #1E130C; color: var(--text); }
.drawer::backdrop { background: rgba(10, 6, 3, .6); }
.drawer-in { padding: 18px 20px 20px; display: grid; gap: 12px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-head h2 { font-size: 24px; }
.drawer-art { display: flex; gap: 10px; flex-wrap: wrap; }
.drawer-art .plate { flex: 1 1 160px; padding: 10px; }
.drawer-art .plate svg { width: 100%; max-width: 200px; height: auto; }
.drawer .moves div { grid-template-columns: 8.5em 1fr; }
/* cards on short stages become a sheet over the whole page */
.overlay.sheet { position: fixed; inset: 0; z-index: 40; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(14, 9, 5, .94); }
body.sheet-open { overflow: hidden; }
.prosc:has(canvas.live:focus-visible) { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--amber), 0 30px 80px -30px rgba(0, 0, 0, .9); }
.mirror-tag { position: absolute; left: 8px; bottom: 6px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(18, 11, 7, .75); padding: 2px 8px; border-radius: 99px; }

/* ---------------------------------------------------------------- the desk */
.desk { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.script h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 4px; }
.meta-line { font: italic 15px var(--serif); color: var(--faint); margin-bottom: 12px; }
.script .lede { color: var(--muted); margin-bottom: 14px; }
.acts { display: flex; gap: 14px; list-style: none; margin: 0 0 10px; padding: 0; font: 600 17px var(--serif); color: rgba(255, 214, 150, .32); }
.acts li.past { color: var(--faint); }
.acts li.now { color: var(--amber-hi); }
.beat { font: 400 clamp(20px, 1.7vw, 25px)/1.4 var(--serif); color: var(--text); margin-bottom: 14px; }
.beat:focus { outline: none; }
.partno { display: block; font: italic 400 16px/1.4 var(--serif); color: var(--faint); margin-bottom: 4px; }
.script .nav { margin-top: 6px; }
.script .nav .btn.amber { margin-left: auto; }
.dare { margin: 4px 0 14px; padding: 12px 18px; color: #3A2412; background: #F1DCB0;
  /* a paper ticket from the director, with notched corners */
  -webkit-mask: radial-gradient(circle 9px at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat, radial-gradient(circle 9px at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat, radial-gradient(circle 9px at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat, radial-gradient(circle 9px at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  mask: radial-gradient(circle 9px at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat, radial-gradient(circle 9px at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat, radial-gradient(circle 9px at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat, radial-gradient(circle 9px at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat; }
.dare.done { background: #F6E6C2; }
.dare b { font: italic 600 16px var(--serif); color: #7A3E12; }
.dare .dare-t { color: #2A170D; }
.dare .pips .pip { border-color: #7A3E12; }
.dare .pips .pip.on { background: #7A3E12; }
.dare .pip-text { color: #5A3A20; }
.dare .btn { color: #3A2412; border-color: rgba(58, 36, 18, .35); }
.dare .link { color: #5A3A20; }
.pips { display: flex; align-items: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.pips .pip { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--amber); }
.pips .pip.on { background: var(--amber); }
.pip-text { margin-left: 6px; color: var(--muted); font-size: 15px; }
.dare .row { margin-top: 8px; }
.scenes { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scenes legend { font-weight: 700; color: var(--faint); font-size: 14px; margin-bottom: 8px; padding: 0; }
.castbar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.castbar h2 { font-size: 20px; }
.hint { color: var(--faint); font-size: 14px; }
/* the puppet rack: little lit squares of paper hung from a rail */
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; position: relative; padding-top: 10px; }
.tray::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--wood-hi), transparent); }
.puppet { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; min-height: 92px; border-radius: 10px; border: 1px solid rgba(80, 45, 20, .5); cursor: pointer;
  background: radial-gradient(90% 80% at 50% 35%, #FBE2B0, #E2A95E 75%, #B87634); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .8); }
.puppet::before { content: ""; position: absolute; top: -10px; left: 50%; width: 2px; height: 10px; background: var(--wood-hi); }
.puppet img { width: 60px; height: 48px; }
.puppet:hover { filter: brightness(1.06); }
.puppet.on { box-shadow: 0 0 0 2px var(--amber); }
.puppet.sel { box-shadow: 0 0 0 3px var(--amber-hi); }
/* puppets in tonight's show hang from a lit cord */
.puppet.want::before { width: 3px; background: var(--amber); box-shadow: 0 0 0 1px rgba(242, 181, 68, .35); }
.puppet .badge { position: absolute; top: 4px; right: 4px; }
.puppet[aria-disabled="true"] { opacity: .55; }
.puppet:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--amber); }
.controls:not(:empty) { margin-top: 18px; }
.ctl-name { font: 600 18px/1.2 var(--serif); margin-bottom: 8px; }
.controls .fine { margin-top: 8px; }
.cambox { display: grid; gap: 10px; justify-items: start; }
.cambox .row { width: 100%; }

/* ---------------------------------------------------------------- pages: shows, shapes, program */
.page { max-width: 1180px; margin: 0 auto; padding: clamp(18px, 4vw, 44px) max(var(--gap), env(safe-area-inset-right)) 64px max(var(--gap), env(safe-area-inset-left)); }
.page-head { display: grid; gap: 8px; justify-items: start; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.page-head h1:focus { outline: none; }
.page-head .lede { color: var(--muted); max-width: 62ch; font-size: 18px; }
.page-head .btn { margin-top: 6px; }
.filterbox > summary { display: none; }
.bill-cast { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
.bill-cast img { width: 30px; height: 24px; border-radius: 4px; background: radial-gradient(#F7D9A2, #D99A52); }
.filters { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); margin-bottom: 28px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flabel { min-width: 104px; color: var(--faint); font-weight: 700; font-size: 14px; }
.bill { break-inside: avoid; margin-bottom: 28px; }
.bill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.bill-head img { width: 112px; height: 63px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px #140A05, 0 0 24px rgba(255, 180, 90, .22); }
.bill-head h2 { font-size: 26px; }
.bill-head .count { margin-left: auto; color: var(--faint); font: italic 15px var(--serif); }
.bill-list { list-style: none; margin: 0; padding: 0; }
.bill-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; border-radius: 0; }
.bill-item:hover { background: rgba(255, 226, 170, .05); }
.bill-item .t { font: italic 400 20px/1.3 var(--serif); color: var(--text); }
.bill-item .meta { grid-column: 1; color: var(--faint); font-size: 14.5px; }
.bill-item .tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bill-item .tag.new { color: var(--amber-hi); font: italic 600 16px var(--serif); }
.empty { padding: 28px; border-radius: var(--r); border: 1px dashed var(--line); display: grid; gap: 14px; justify-items: start; color: var(--muted); }
/* guide */
.split { display: grid; gap: var(--gap); }
.rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rail a { position: relative; flex: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 14px 4px 6px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.rail a img { border-radius: 8px; background: radial-gradient(#F7D9A2, #D99A52); }
.rail a.on { color: var(--text); border-color: var(--amber); background: rgba(242, 181, 68, .1); }
.rail .badge { margin-left: 4px; }
.howto { min-width: 0; display: grid; gap: var(--gap); padding: clamp(18px, 3vw, 32px); border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.howto-art { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.plate { margin: 0; flex: 1 1 220px; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 16px; border-radius: 14px;
  background: radial-gradient(80% 80% at 50% 40%, #FCE7BF, #E8B470 80%, #C3803D); box-shadow: inset 0 0 0 1px rgba(80, 45, 20, .45), inset 0 0 30px rgba(120, 60, 20, .35); }
.plate figcaption { color: #3A2412; font-size: 13.5px; font-weight: 700; }
.plate svg { max-width: 100%; height: auto; }
.hand .hp { fill: #F1D6B0; stroke: #3A2412; stroke-width: 2.6; stroke-linejoin: round; }
.hand .hs { stroke: #3A2412; stroke-linecap: round; fill: none; }
.hand .hf { stroke: #F1D6B0; stroke-linecap: round; fill: none; }
.howto-text h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 2px 0 12px; }
.howto-text h3 { font-size: 20px; margin: 20px 0 8px; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 18px; }
.steps li::marker { color: var(--amber); font-weight: 700; }
.moves { display: grid; gap: 8px; margin: 0 0 18px; }
.moves div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
.moves dt { font-weight: 700; color: var(--amber-hi); }
.moves dd { margin: 0; color: var(--muted); }
.tips { margin-top: 18px; max-width: 80ch; }
/* program */
.tally { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.tally div { flex: 1 1 140px; padding: 14px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.tally dt { color: var(--faint); font-size: 13.5px; font-weight: 700; }
.tally dd { margin: 2px 0 0; font: 600 30px/1.1 var(--serif); }
.tally small { font: 400 15px var(--sans); color: var(--faint); }
.playbill { list-style: none; margin: 0; padding: clamp(18px, 3vw, 34px); border-radius: 6px; counter-reset: act;
  background: #1D120B; border: 1px solid rgba(255, 214, 150, .2); box-shadow: inset 0 0 0 6px #1D120B, inset 0 0 0 7px rgba(242, 181, 68, .35); }
.playbill li { padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: act; }
.playbill li:last-child { border-bottom: 0; }
.pb-t { display: flex; align-items: baseline; gap: 10px; font: italic 400 21px/1.3 var(--serif); }
.pb-t::before { content: counter(act, upper-roman) "."; font-style: normal; color: var(--amber); font-size: 15px; min-width: 2.2em; }
.pb-t .dots { flex: 1; border-bottom: 2px dotted rgba(255, 214, 150, .25); transform: translateY(-5px); }
.pb-n { font: 700 14px var(--sans); color: var(--muted); font-style: normal; }
.pb-m { color: var(--faint); font-size: 14.5px; padding-left: 2.6em; margin-top: 2px; }

/* ---------------------------------------------------------------- layouts */
/* phones, held upright: stage on top, the desk below */
@media (max-width: 699px) {
  :root { --bar: 58px; --gap: 12px; }
  .bar { gap: 10px; padding-right: calc(64px + env(safe-area-inset-right)); backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 11, 7, .98); }
  .brand small { display: none; }
  .brand b { font-size: 17px; }
  .bar-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; padding: 6px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)); background: rgba(18, 11, 7, .96); box-shadow: 0 -12px 24px rgba(0, 0, 0, .45); }
  .bar-nav a { padding: 0 10px; font-size: 14px; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-strip { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  html:has(body.has-strip) { scroll-padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  .strip { position: fixed; z-index: 19; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); gap: 6px;
    background: rgba(24, 15, 10, .97); box-shadow: 0 -10px 22px rgba(0, 0, 0, .4); }
  /* one row: the tricks scroll sideways inside the strip, the show's next step stays pinned at the right */
  .strip-tricks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-right: 4px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .strip-tricks::-webkit-scrollbar { display: none; }
  .strip .btn.small { flex: none; padding: 0 11px; font-size: 14.5px; white-space: nowrap; }
  .strip-name { font-size: 15px; flex: none; }
  .brand { min-height: 44px; }
  .speak { width: 48px; height: 48px; }
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); scroll-padding-top: calc(var(--bar) + 8px); }
  /* leave room for the shared "Who's playing?" chip: the name sits on two short lines */
  .bar { padding-right: calc(228px + env(safe-area-inset-right)); }
  .brand { min-width: 0; }
  .brand b { max-width: 5.2em; font-size: 16px; line-height: 1.08; }
  .brand svg { width: 34px; height: 34px; }
  .screen { height: min(41svh, 100vw); min-height: 230px; }
  .script h2 { font-size: 23px; }
  .acts { margin-bottom: 6px; }
  .tray { grid-template-columns: repeat(7, 78px); overflow-x: auto; padding-bottom: 12px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
  .card h1 { font-size: 34px; }
  .card { padding: 18px; }
  .card .row .btn { flex: 1 1 auto; }
  .moves div { grid-template-columns: 1fr; gap: 0; }
  .flabel { min-width: 100%; }
  .filterbox > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-weight: 700; list-style: none; margin-bottom: 12px; }
  .filterbox > summary::-webkit-details-marker { display: none; }
  .filterbox > summary small { color: var(--faint); font-weight: 400; font-size: 14px; text-align: right; }
  .filterbox[open] > summary { border-color: var(--amber); }
  .bill-head img { width: 84px; height: 47px; }
  .plate { flex: 1 1 140px; padding: 10px; }
  .plate svg { width: 100%; max-width: 220px; }
  .plate img { width: 120px; height: 96px; }
}
@media (max-width: 419px) { .brand svg { width: 34px; height: 34px; } .brand b { display: none; } .bar-nav a { padding: 0 6px; font-size: 13.5px; } }
/* phones held sideways: the stage fills the height, the desk scrolls beside it */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar: 48px; --gap: 10px; }
  .bar-nav { position: static; padding: 0; background: none; border: 0; }
  body { padding-bottom: 0; }
  .brand small, .brand b { display: none; }
  .bar-nav a { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .view-stage .stagewrap { grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); align-items: start; }
  .screen { height: calc(100dvh - var(--bar) - var(--gap) * 2 - 30px - 54px); min-height: 200px; }
  .strip { position: static; padding-top: 6px; }
  .strip-tricks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.has-strip { padding-bottom: 0; }
  .prosc { padding: 8px 8px 0; }
  .valance { left: 8px; right: 8px; top: 8px; }
  .sill { height: 18px; margin: 0 -8px; }
  .desk { max-height: calc(100dvh - var(--bar) - var(--gap) * 2); overflow-y: auto; }
  .card h1 { font-size: 30px; }
  .card { padding: 14px 18px; }
  .card .row { margin: 10px 0; }
}
/* tablets upright and square foldables: the stage, then the desk in two columns */
@media (min-width: 700px) and (max-aspect-ratio: 99/100) {
  .screen { height: min(56svh, 74vw); }
  .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split { grid-template-columns: 200px minmax(0, 1fr); }
  .rail { flex-direction: column; overflow: visible; }
}
/* wide screens: the stage beside its desk */
@media (min-width: 700px) and (min-aspect-ratio: 1/1) and (min-height: 521px) {
  .view-stage .stagewrap { grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px); align-items: start; }
  .desk { max-height: calc(100dvh - var(--bar) - var(--gap) * 2); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
  .split { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .rail { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--bar) + 16px); }
  .howto { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .howto-art { flex-direction: column; }
}
@media (min-width: 1100px) and (min-aspect-ratio: 1/1) { .view-shows .page { max-width: 1240px; } .view-shows .bills-wrap { columns: 2; column-gap: 40px; } }
/* very big screens: keep the desk readable from the couch */
@media (min-width: 700px) and (max-width: 1000px) { .howto { grid-template-columns: minmax(0, 1fr) !important; } .howto-art { flex-direction: row !important; } }
@media (min-width: 700px) and (max-width: 1060px) { .brand small { display: none; } .bar { gap: 8px; } .bar-nav a { padding: 0 10px; font-size: 14.5px; } }
@media (min-width: 1700px) { body { font-size: 18px; } .beat { font-size: 28px; } }
/* foldables in tabletop posture: the stage on the top half, the desk on the bottom half */
@media (vertical-viewport-segments: 2) {
  .view-stage { padding-top: 6px; }
  .view-stage .stagewrap { grid-template-columns: 1fr; gap: 0; }
  .screen { height: calc(env(viewport-segment-height 0 0, 50vh) - var(--bar) - 40px); min-height: 0; }
  .desk { margin-top: calc(env(viewport-segment-top 0 1, 50vh) - env(viewport-segment-bottom 0 0, 50vh) + 12px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; max-height: none; overflow: visible; }
  .screen { height: calc(env(viewport-segment-height 0 0, 50vh) - var(--bar) - 40px - 56px); }
}
/* foldables in book posture: the stage on the left page, the desk on the right */
@media (horizontal-viewport-segments: 2) {
  .view-stage .stagewrap { grid-template-columns: calc(env(viewport-segment-width 0 0, 50vw) - var(--gap) * 2) 1fr; column-gap: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw) + var(--gap) * 2); }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: none; }
  .curtain, .screen canvas.back, .cue { transition: none; }
  .sill.cheer::after { animation: none; opacity: 0; }
  * { scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .puppet, .btn, .chip { border: 1px solid CanvasText; } }

/* ---------------------------------------------------------------- the camera check */
.card.check { max-width: 560px; }
.checks { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 30px 6.5em 1fr; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 226, 170, .05); }
.checks li .ci { color: var(--faint); display: grid; }
.checks li .meter { grid-column: 3; height: 8px; border-radius: 8px; background: rgba(255, 214, 150, .14); overflow: hidden; }
.checks li .meter i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .4s; }
.checks li .v { grid-column: 2 / 4; color: var(--muted); font-size: 15px; }
.checks li.good .ci, .checks li.good .v { color: #9BE0B6; }
.checks li.good .meter i { background: #5FC79B; }
.checks li.warn .ci, .checks li.warn .v { color: var(--amber-hi); }
.ck-ready { display: flex; align-items: center; gap: 8px; color: #9BE0B6 !important; font: 600 22px var(--serif); margin: 6px 0; }
.ck-ready[hidden] { display: none; }
.dist { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dist legend { font-weight: 700; color: var(--faint); font-size: 14px; margin-bottom: 6px; padding: 0; }
.cue { display: flex; align-items: center; gap: 10px; }
.plate.setup svg { width: 100%; max-width: 420px; height: auto; }
/* ---------------------------------------------------------------- the TV stage: the stage fills the screen, text big enough for across the room */
.caption, .tvmenu { display: none; }
body.tv .bar, body.tv .desk, body.tv .bar-nav, body.tv [data-tis] { display: none !important; }
body.tv { padding: 0 !important; overflow: hidden; }
body.tv .view-stage { padding: 3.5vh 3.5vw; }
body.tv .stagewrap { grid-template-columns: 1fr !important; }
body.tv .screen { height: calc(100dvh - 7vh - 30px) !important; }
body.tv .strip { display: none; }
body.tv .caption { display: block; position: absolute; z-index: 5; left: 14%; right: 14%; top: 10%; text-align: center; pointer-events: none; }
body.tv .caption:empty { display: none; }
body.tv .caption p { display: inline; font: 400 clamp(26px, 3.4vw, 54px)/1.3 var(--serif); color: var(--text); background: rgba(22, 13, 8, .82); padding: .1em .45em; border-radius: .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
body.tv .caption .cap-dare { display: block; width: fit-content; margin: .5em auto 0; font: 700 clamp(20px, 2.4vw, 38px)/1.3 var(--sans); color: var(--amber-hi); }
body.tv .cue { font-size: clamp(24px, 2.8vw, 46px); bottom: 8%; padding: 14px 28px; }
body.tv .cue svg { width: 1.2em; height: 1.2em; }
body.tv .tvmenu { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 6; top: 30px; right: 14px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(26, 15, 8, .85); color: var(--text); font: 700 18px var(--sans); cursor: pointer; }
body.tv .camlive { top: 30px; left: 14px; font-size: 16px; }
body.tv .card { max-width: 760px; }
body.tv .card h1, body.tv .card h2 { font-size: clamp(36px, 4vw, 64px); }
body.tv .card p { font-size: clamp(18px, 1.8vw, 28px); }

/* ---------------------------------------------------------------- Record my show */
.recdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E2574C; box-shadow: 0 0 0 3px rgba(226, 87, 76, .25); }
.recnow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 0 6px; }
.recnow b { font-variant-numeric: tabular-nums; color: var(--amber-hi); }
.reclevel { width: 70px; height: 10px; border-radius: 10px; background: rgba(255, 214, 150, .16); overflow: hidden; }
.reclevel i { display: block; height: 100%; width: 0; background: #5FC79B; transition: width .1s; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 12px 0 4px; font-weight: 700; cursor: pointer; }
.toggle input { width: 24px; height: 24px; accent-color: var(--amber); }
.preview { width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }
body.tv .strip { display: flex; position: absolute; z-index: 6; bottom: 2vh; left: 50%; transform: translateX(-50%); background: rgba(26,15,8,.85); padding: 8px 12px; border-radius: 999px; }
body.tv .strip > :not(.recnow):not([data-do=recstop]):not(.reclevel) { display: none; }
body.tv .strip:not(:has(.recnow)) { display: none; }

/* the camera check's touch offer shows only when the device is slow */
.check #ck-touch[hidden] { display: none; }

/* credits on the Hand shapes page, and the grown-up gate (every link out of the theater) */
.credits { max-width: 760px; margin: 28px 0 8px; color: var(--text); }
.credits h2 { font-size: 1.15rem; margin: 0 0 6px; }
.credits ul { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.credits a, .outlink { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--amber); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gate { max-width: min(460px, calc(100vw - 24px)); margin: auto; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: #1E130C; color: var(--text); }
.gate::backdrop { background: rgba(10, 6, 3, .6); }
.gate h2 { margin: 0 0 4px; font-size: 1.3rem; }
.gate .gate-site { margin: 0 0 16px; font-weight: 700; color: var(--amber); }
.gate .hold { position: relative; overflow: hidden; width: 100%; min-height: 56px; padding: 8px 18px; line-height: 1.35; touch-action: none; user-select: none; -webkit-user-select: none; }
.gate .hold .fill { position: absolute; inset: 0; background: rgba(242, 181, 68, .35); transform: scaleX(0); transform-origin: left; }
.gate .hold .lbl { position: relative; }
.gate .gate-go { margin: 0; }
.gate .gate-go a { width: 100%; }
.gate .row { margin-top: 12px; }

/* the story part and the ticket stay clear of the fixed strip and nav when focused or scrolled to */
#beat, .dare { scroll-margin-top: 72px; scroll-margin-bottom: var(--clear-bottom, 16px); }

/* the TV stage on a short screen (a phone held sideways): the camera pill and Menu shrink to their essentials, and
   the caption sits small between them at the very top, so it neither collides with them nor covers flying puppets */
@media (max-height: 520px) {
  body.tv .camlive > span:not(.dot) { display: none; }
  body.tv .camlive, body.tv .tvmenu { top: 10px; }
  body.tv .tvmenu > span { display: none; }
  body.tv .tvmenu { padding: 0 12px; }
  body.tv .caption { top: 8px; left: 170px; right: 76px; }
  body.tv .caption p { font-size: 17px; line-height: 1.3; }
  body.tv .caption .cap-dare { font-size: 15px; margin-top: .3em; }
  body.tv .cue { font-size: 17px; padding: 8px 16px; bottom: 6%; }
}
/* foldables in book posture: the strip under the stage stays on one row (it scrolls sideways), and the stage leaves
   room for it, so Next part is never off the bottom of the screen */
@media (horizontal-viewport-segments: 2) {
  .view-stage .strip { flex-wrap: nowrap; }
  .view-stage .strip-tricks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .view-stage .strip-nav { flex: none; }
  .view-stage .screen { max-height: calc(100dvh - var(--bar, 64px) - 150px); }
}
