/* conversations: chapter 03, The Salon. Film shots 16 (the round table) and 17 (versus),
   then the mechanics as in-world panels, the transcript log, the film clip and the mark. */

/* ---------- stance chips (shared) ---------- */
.stance { --c: var(--lav); display: inline-flex; align-items: center; padding: 0.34em 0.62em 0.3em; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--c) 75%, transparent);
  font: 700 0.58rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap; }
.stance.agree { --c: var(--mint); } .stance.partial { --c: var(--gold); } .stance.disagree { --c: var(--red); } .stance.curious { --c: var(--cyan); }
.prose .stance { font-size: 0.56rem; vertical-align: 0.14em; }

/* small game keys: the replay controls */
.vk { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 42px; min-width: 42px; padding: 0.45rem 0.75rem; border-radius: 10px;
  border: 1px solid rgba(171, 132, 249, 0.38); background: rgba(16, 14, 26, 0.88); color: var(--white); font: 600 0.62rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.vk:hover { border-color: var(--gold); box-shadow: 0 0 18px -6px var(--gold); color: var(--gold-hi); }
.vk:active { transform: translateY(1px); }
.vk .key { height: 1.7em; min-width: 1.7em; font-size: 0.56rem; }
.vk--play { border-color: rgba(245, 197, 66, 0.6); }
.ic { position: relative; display: inline-block; width: 14px; height: 12px; flex: none; }
.ic::before, .ic::after { content: ""; position: absolute; top: 0; }
.ic-play::before { left: 2px; border-left: 11px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ic-pause::before, .ic-pause::after { width: 4px; height: 12px; background: currentColor; border-radius: 1px; }
.ic-pause::before { left: 2px; } .ic-pause::after { right: 2px; }
.ic-prev::before, .ic-prev::after { border-right: 7px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ic-prev::before { left: 0; } .ic-prev::after { left: 7px; }
.ic-next::before, .ic-next::after { border-left: 7px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ic-next::before { left: 0; } .ic-next::after { left: 7px; }

/* ==========================================================================
   SHOT 1 · THE SALON: the round table
   ========================================================================== */
.salon-shot { padding-top: calc(var(--hud-y) + 80px); }
.salon { display: grid; justify-items: center; }
.salon-cap { min-height: 1.6em; text-align: center; font: 400 clamp(0.78rem, 1.15vw, 1.08rem)/1.5 var(--mono); letter-spacing: 0.04em; color: var(--text-2); }
.salon-cap [data-type].typing::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--lav); animation: blink 0.9s steps(1) infinite; }

/* the chapter slam: it lands centred, then docks into the HUD */
.chap-slam { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 0.6rem; text-align: center; pointer-events: none; opacity: 0; }
.chap-slam::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 60vh; transform: translateY(-50%); z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 9, 0.86) 30%, rgba(5, 4, 9, 0.86) 70%, transparent); }
.chap-num { display: inline-flex; align-items: center; gap: 0.9rem; font: 700 clamp(1rem, 1.6vw, 1.5rem)/1 var(--mono); letter-spacing: 0.3em; color: var(--gold); text-shadow: var(--glow-gold); }
.chap-num .ring { width: clamp(40px, 4vw, 60px); height: auto; }
.chap-slam .slam { font-size: clamp(3rem, 9vw, 9rem); }
.chap-sub { color: var(--lav); }
html.js .salon-shot.on .chap-slam { animation: chap 2.2s var(--ease) both; }
html.js .salon-shot.on .chap-slam .slam { animation: chapTrack 1s var(--ease) both; }
@keyframes chap {
  0% { opacity: 0; transform: scale(1.12); }
  14% { opacity: 1; transform: none; }
  62% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-36vw, -42vh) scale(0.2); }
}
@keyframes chapTrack { from { letter-spacing: 0.24em; filter: blur(6px); } to { letter-spacing: 0.005em; filter: none; } }

/* the network: eight seats on an ellipse, the topic card at the centre */
.net { --rx: 0.375; --ry: 0.36; position: relative; width: 100%; max-width: 1360px; aspect-ratio: 1000 / 420; margin-top: clamp(0.6rem, 2vw, 1.8rem); container-type: inline-size; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.net-table { fill: none; stroke: rgba(171, 132, 249, 0.3); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
html.js .net-table { opacity: 0; transition: opacity 1s var(--ease) 1.3s; }
html.js .on .net-table { opacity: 1; }
.net-links line { stroke-width: 2.2; vector-effect: non-scaling-stroke; opacity: 0.5; transition: opacity 0.5s; stroke-linecap: round; }
.net-links line.is-new { opacity: 1; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); }
.net-dot { position: absolute; z-index: 1; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.85); opacity: 0; pointer-events: none; }
.net.is-focus .net-links line { opacity: 0.08; }
.net.is-focus .net-links line.is-f { opacity: 0.95; }

.net-seats { position: absolute; inset: 0; z-index: 2; }
.net-seats > li { position: absolute; left: calc(50% + var(--cx) * var(--rx) * 100%); top: calc(50% + var(--cy) * var(--ry) * 100%); transform: translate(-50%, -50%); }
html.js .net-seats > li[data-in="scale"] { transform: translate(-50%, -50%) scale(0.6); }
html.js .on .net-seats > li[data-in="scale"] { transform: translate(-50%, -50%); }
.seat { position: relative; display: grid; justify-items: center; color: inherit; border-radius: 50%; }
.seat .orb { --s: calc(clamp(46px, 7.4cqw, 124px) * var(--k, 1)); opacity: 0.55; transition: opacity 0.4s, transform 0.4s var(--pop), box-shadow 0.4s, filter 0.4s; }
.seat .orb--decode span { display: none; }
.seat-name { position: absolute; top: calc(100% + 0.45rem); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 clamp(0.5rem, 0.75cqw, 0.62rem)/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--c); opacity: 0.6; transition: opacity 0.3s; }
.seat.is-lit .orb { opacity: 1; }
.seat.is-lit .seat-name { opacity: 1; }
.seat:hover .orb, .seat:focus-visible .orb { opacity: 1; transform: scale(1.07); box-shadow: 0 0 0 2px var(--c), 0 0 30px 0 var(--c), 0 0 80px -10px var(--c); }
.seat:focus-visible { outline: none; }
.seat:focus-visible .orb { outline: 2px solid var(--gold); outline-offset: 6px; }
.seat::before { content: ""; position: absolute; left: 50%; top: 0; width: var(--ring, 0px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, 0); pointer-events: none; }
.seat.is-speaking .seat-name, .seat.is-voicing .seat-name { top: calc(100% + 0.45rem + 0.9cqw); }
.seat.is-speaking .orb { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 calc(3px + 0.2cqw) var(--c), 0 0 36px 4px var(--c), 0 0 90px -6px var(--c); }
.seat.is-speaking .orb::before, .seat.is-voicing .orb::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 2px solid var(--c); animation: seatPulse 1.2s var(--ease) infinite; pointer-events: none; }
.seat.is-voicing .orb { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 4px var(--c), 0 0 40px 6px var(--c); }
@keyframes seatPulse { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.net.is-focus .seat:not(.is-focus) .orb { opacity: 0.2; filter: grayscale(0.7); }
.net.is-focus .seat:not(.is-focus) .seat-name { opacity: 0.25; }
.seat.is-focus .orb { opacity: 1; box-shadow: 0 0 0 3px var(--gold), 0 0 30px 2px var(--c), 0 0 70px -6px var(--gold); }
.seat.is-focus .seat-name { color: var(--gold-hi); opacity: 1; }

.net-card { position: absolute; left: 50%; top: 50%; z-index: 1; width: 41cqw; transform: translate(-50%, -50%); padding: 2.2cqw 2cqw 2.4cqw; border-radius: 12px; text-align: center;
  border: 1.4px solid rgba(171, 132, 249, 0.62); background: rgba(18, 18, 26, 0.94); box-shadow: 0 0 40px -14px rgba(116, 51, 224, 0.7); }
html.js .net-card[data-in="scale"] { transform: translate(-50%, -50%) scale(0.9); }
html.js .on .net-card[data-in="scale"] { transform: translate(-50%, -50%); }
.net-card .cap { font-size: clamp(0.55rem, 1cqw, 0.9rem); letter-spacing: 0.32em; }
.net-card .cap b { font-weight: 700; color: var(--lav); }
.net-topic { margin-top: 0.5cqw; min-height: 1.25em; font: italic 400 clamp(1rem, 3.1cqw, 3.1rem)/1.15 var(--serif); color: var(--white); text-shadow: 0 0 22px rgba(200, 180, 255, 0.4); }
.net-topic.typing::after { content: ""; display: inline-block; width: 2px; height: 0.9em; margin-left: 3px; vertical-align: -0.1em; background: var(--white); animation: blink 0.8s steps(1) infinite; }

.net-foot { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 1rem 2rem; width: 100%; margin-top: clamp(1.2rem, 2.2vw, 2rem); }
.net-voice { min-height: 1px; }
.net-voice[hidden] { display: block; visibility: hidden; }
.net-tick { min-width: 0; text-align: center; }
.net-tick-head { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.4rem 1rem; font: 500 0.6rem/1.3 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.net-tick-head b { color: var(--c, var(--lav)); font-weight: 700; }
.net-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--red); }
.net-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s steps(1) infinite; }
.net.is-paused ~ .net-foot .net-live i, .net-foot.is-paused .net-live i { animation: none; opacity: 0.4; }
.net-tick-line { margin-top: 0.45rem; min-height: 2.8em; font: italic 400 clamp(0.98rem, 1.3vw, 1.2rem)/1.4 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.net-focus { margin-top: 0.5rem; font: 600 0.6rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.net-focus button { margin-left: 0.6rem; color: var(--lav); text-decoration: underline; text-underline-offset: 3px; letter-spacing: inherit; text-transform: inherit; font: inherit; }
.net-pick { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.net-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.net-chips button { padding: 0.45rem 0.6rem; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(16, 14, 26, 0.85); font: 600 0.62rem/1 var(--mono); letter-spacing: 0.08em; color: var(--text-2); transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.net-chips button:hover { border-color: var(--lav); color: var(--white); }
.net-chips button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 14px -4px var(--gold); }
.net-pause { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(16, 14, 26, 0.85); color: var(--text-2); }
.net-pause:hover { border-color: var(--gold); color: var(--gold-hi); }
.net-pause i { position: relative; width: 10px; height: 11px; }
.net-pause i::before, .net-pause i::after { content: ""; position: absolute; top: 0; width: 3px; height: 11px; background: currentColor; }
.net-pause i::before { left: 0; } .net-pause i::after { right: 0; }
.net-pause[aria-pressed="true"] i::before { width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.net-pause[aria-pressed="true"] i::after { display: none; }
.salon-lede { display: grid; justify-items: center; gap: 0.6rem; margin-top: clamp(1.2rem, 2vw, 1.8rem); text-align: center; }
.salon-lede .serif-line { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.salon-lede .lede { max-width: 66ch; }
.salon-lede .hint { flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   SHOT 2 · VERSUS: the replay
   ========================================================================== */
.vs-shot { padding-top: calc(var(--hud-y) + 76px); --gx: 20%; --ga: 0.14; }
.vs-shot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 12% 40%, color-mix(in srgb, var(--cl, var(--violet)) 16%, transparent), transparent 70%),
              radial-gradient(ellipse 40% 50% at 88% 70%, color-mix(in srgb, var(--cr, var(--violet)) 16%, transparent), transparent 70%); transition: background 0.8s; }
.vsr { display: grid; gap: clamp(0.7rem, 1.2vw, 1.1rem); }
.vsr-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.vsr-round, .vsr-turn { display: flex; align-items: baseline; gap: 0.6rem; white-space: nowrap; }
.vsr-turn { justify-content: flex-end; }
.vsr-round .pixel, .vsr-turn .pixel { font-size: clamp(0.8rem, 1.3vw, 1.15rem); color: var(--white); }
.vsr-turn .pixel { color: var(--gold-hi); text-shadow: var(--glow-gold); }
.vsr-head { text-align: center; font-size: clamp(0.58rem, 0.95vw, 0.82rem); letter-spacing: 0.24em; overflow-wrap: anywhere; }
.vsr-head.is-ex { color: var(--red); }

/* the turn pips: a health bar of the thread */
.vsr-pips { display: flex; gap: 5px; }
.vsr-pips li { flex: 1; min-width: 0; }
.vsr-pips button { position: relative; display: block; width: 100%; height: 22px; }
.vsr-pips button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); transition: background 0.3s, box-shadow 0.3s; }
.vsr-pips .done button::before { background: color-mix(in srgb, var(--c) 70%, #000); }
.vsr-pips .now button::before { background: var(--c); box-shadow: 0 0 12px var(--c); animation: pipNow 1.2s ease-in-out infinite; }
.vsr-pips button:hover::before { border-color: var(--white); }
.vsr-pips .is-focus button::after { content: ""; position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translateX(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--gold-hi); }
@keyframes pipNow { 50% { box-shadow: 0 0 4px var(--c); } }

.vsr-arena { position: relative; display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.4fr) minmax(0, 0.62fr); gap: clamp(1rem, 2.4vw, 2.6rem); align-items: center; min-height: clamp(340px, 42vh, 480px); }
.fighter { display: grid; justify-items: center; text-align: center; gap: 0.3rem; }
.fighter > * { transition: opacity 0.5s, filter 0.5s, transform 0.5s var(--ease); }
.fighter--l { align-self: start; }
.fighter--r { align-self: end; }
.fighter-orb { --s: clamp(120px, 12.5vw, 214px); margin-bottom: 0.8rem; }
.fighter-orb.orb--sched { display: grid; place-items: center; --c: var(--lav); background: radial-gradient(circle, rgba(60, 26, 140, 0.55), #08060f 70%); }
.fighter-orb.orb--sched .ring { width: 46%; height: auto; }
.fighter-orb.orb--trigger { display: grid; place-items: center; --c: var(--red); background: repeating-linear-gradient(0deg, rgba(255, 59, 92, 0.07) 0 2px, transparent 2px 5px), #0b0710; }
.fighter-orb.orb--trigger b { font: 400 calc(var(--s) * 0.2)/1 var(--pixel); color: var(--red); text-shadow: var(--glow-red); }
.fighter-name { font: 900 clamp(1.15rem, 2.2vw, 2.2rem)/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.fighter-sub { font: 500 0.58rem/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); max-width: 26ch; }
.fighter-state { min-height: 1.4em; margin-top: 0.3rem; font: 400 0.55rem/1.4 var(--pixel); color: var(--muted); }
.fighter.is-voicing .fighter-orb { box-shadow: 0 0 0 4px var(--c), 0 0 46px 6px var(--c), 0 0 110px -10px var(--c); }
.fighter.is-voicing .fighter-orb::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; border: 2px solid var(--c); animation: seatPulse 1.2s var(--ease) infinite; pointer-events: none; }
.fighter.is-active .fighter-state { color: var(--gold-hi); text-shadow: var(--glow-gold); }
.fighter:not(.is-active) > * { opacity: 0.55; filter: saturate(0.55); }
.fighter:not(.is-active) .fighter-orb { transform: scale(0.93); }
.fighter.enter .fighter-orb { animation: fOrbL 0.6s var(--ease) both; }
.fighter--r.enter .fighter-orb { animation-name: fOrbR; }
.fighter.enter .fighter-name { animation: fSlam 0.5s var(--pop) 0.08s both; }
.fighter.enter .fighter-sub { animation: fUp 0.5s var(--ease) 0.2s both; }
@keyframes fOrbL { from { transform: translateX(-70px); opacity: 0; filter: blur(6px); } }
@keyframes fOrbR { from { transform: translateX(70px); opacity: 0; filter: blur(6px); } }
@keyframes fSlam { from { transform: scale(1.6); opacity: 0; filter: blur(8px); } }
@keyframes fUp { from { transform: translateY(8px); opacity: 0; } }

.vsr-mid { position: relative; display: grid; gap: 0; align-content: center; min-width: 0; }
.bubble { --c: var(--lav); position: relative; padding: 0.95rem 1.3rem 1.15rem; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--c) 58%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 13%, #15131d), rgba(12, 11, 18, 0.95) 78%); box-shadow: 0 0 34px -16px color-mix(in srgb, var(--c) 70%, transparent); min-width: 0; }
.bubble[data-side="l"] { margin-right: 5%; } .bubble[data-side="r"] { margin-left: 5%; }
.bubble::before { content: ""; position: absolute; top: 22px; width: 12px; height: 12px; border: inherit; border-width: 0 0 1.5px 1.5px; background: color-mix(in srgb, var(--c) 13%, #15131d); }
.bubble[data-side="l"]::before { left: -7.5px; transform: rotate(45deg); }
.bubble[data-side="r"]::before { right: -7.5px; transform: rotate(-135deg); }
.b-who { display: flex; justify-content: space-between; gap: 1rem; font: 700 0.62rem/1.2 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--c); }
.b-who small { font: 500 0.56rem/1.2 var(--mono); letter-spacing: 0.2em; color: var(--muted); }
.b-text { margin-top: 0.55rem; font: 500 clamp(1.04rem, 1.38vw, 1.3rem)/1.45 var(--serif); color: var(--text); overflow-wrap: break-word; }
.b-text p + p { margin-top: 0.5em; }
.b-text em { font-style: italic; color: color-mix(in srgb, var(--c) 40%, white); }
.b-text .verse { margin: 0.45em 0 0.45em 0.2em; padding-left: 0.9em; border-left: 2px solid color-mix(in srgb, var(--c) 60%, transparent); font-style: italic; color: var(--white); }
.b-text mark { color: color-mix(in srgb, var(--c) 30%, white); padding: 0 0.1em; border-radius: 2px;
  background: linear-gradient(color-mix(in srgb, var(--c) 28%, transparent), color-mix(in srgb, var(--c) 28%, transparent)) no-repeat 0 0 / 0% 100%; transition: background-size 0.7s var(--ease); }
.bubble.hl mark, .bubble--prev mark { background-size: 100% 100%; }
.b-text .vo { transition: box-shadow 0.3s, background 0.3s; }
.b-text .vo.voicing { background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 -2px 0 var(--c); }
.b-text .w { opacity: 0; transition: opacity 0.22s; }
.b-text .w.on { opacity: 1; }
.b-topic { font: italic 500 clamp(1.25rem, 1.9vw, 1.7rem)/1.25 var(--serif); color: var(--white); }
.b-sys { margin-top: 0.5rem; font: 500 0.7rem/1.6 var(--mono); letter-spacing: 0.04em; color: var(--text-2); }
.bubble--prev { opacity: 0.86; }
.bubble--prev .b-text { font-size: clamp(0.95rem, 1.1vw, 1.08rem); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bubble--prev .b-text .verse { display: inline; margin: 0; padding: 0; border: 0; }
.bubble--prev .b-text p { display: inline; } .bubble--prev .b-text p + p::before { content: " "; }
.bubble--cur { min-height: 10.5em; }
.b-typing { display: none; gap: 5px; margin-top: 0.8rem; }
.b-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: 0.5; animation: dots 1s ease-in-out infinite; }
.b-typing i:nth-child(2) { animation-delay: 0.15s; } .b-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: 1; } }
.bubble.is-typing .b-typing { display: flex; }
.bubble.is-typing .b-text { display: none; }
.b-prog { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(171, 132, 249, 0.12); overflow: hidden; }
.b-prog i { display: block; width: 0; height: 100%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.vsr-link { position: relative; display: block; width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(var(--cp, var(--lav)), var(--cc, var(--lav))); }
.vsr-link i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px #fff; animation: linkPulse 0.78s ease-in-out infinite; }
@keyframes linkPulse { 50% { transform: scale(0.5); opacity: 0.6; } }

.vsr-stance { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.8rem; }
.vsr-stance-k { margin-right: 0.3rem; }
.vsr-stance .stance { opacity: 0.34; filter: grayscale(0.8); transition: opacity 0.3s, filter 0.3s, transform 0.35s var(--pop), box-shadow 0.3s; }
.vsr-stance .stance.is-on { opacity: 1; filter: none; transform: scale(1.12); box-shadow: 0 0 16px -2px var(--c); }
.vsr-stance-note { margin-left: 0.4rem; font: 500 0.58rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vsr-note { margin-top: 0.7rem; padding: 0.75rem 1rem 0.85rem; border-radius: 10px; border: 1px solid rgba(116, 51, 224, 0.55); background: rgba(42, 18, 96, 0.28); }
.vsr-note .panel-label { color: var(--lav); }
.vsr-note p { font: 500 0.74rem/1.6 var(--mono); color: var(--text); }
.vsr-note:not([hidden]) { animation: fUp 0.45s var(--ease) both; }
/* A transcript line that claims a memory or a fact that the person's pages do not hold */
.vsr-note.is-flag { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); }
.vsr-note.is-flag .panel-label { color: var(--red); }
.net-flag { margin-top: 0.35rem; font: 600 0.62rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--red); }
.mem-flag { font: 600 0.52rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

.vsr-end { position: absolute; inset: -6px; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 0.8rem; text-align: center; border-radius: 16px;
  background: rgba(6, 5, 12, 0.82); backdrop-filter: blur(5px); border: 1px solid rgba(245, 197, 66, 0.35); }
.vsr-end[hidden] { display: none; }
.vsr-end .pixel { font-size: clamp(1.1rem, 2.2vw, 1.8rem); color: var(--gold-hi); text-shadow: var(--glow-gold), 3px 3px 0 var(--violet); animation: fSlam 0.45s var(--pop) both; }
.vsr-count { min-height: 1.5em; }

.vsr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; }
.vsr-ctrl { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vk--play .ic-pause { display: inline-block; }
.vsr-bar .chips { justify-content: center; }
.vsr-voices { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.vsr-voices[hidden] { display: none; }
.vsr-voices .voice { padding-right: 0.8rem; }
.vsr-voices .voice-face { width: 36px; height: 36px; }
.vsr-voices .voice-text b { font-size: 0.72rem; }
.vsr-voices .fine { flex-basis: 100%; }

/* the thread select: a game menu */
.vsr-menu { margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid rgba(171, 132, 249, 0.14); }
.vsr-menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.75rem; }
.vsr-menu-head .pixel { font-size: 0.78rem; color: var(--white); }
.vsr-menu-head .hint { flex-wrap: wrap; }
.vsr-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
.vm { position: relative; display: grid; align-content: start; gap: 0.4rem; width: 100%; height: 100%; padding: 0.7rem 0.8rem 0.75rem; border-radius: 10px; text-align: left;
  border: 1.5px solid var(--line); background: rgba(12, 11, 20, 0.9); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.vm:hover { border-color: var(--lav); transform: translateY(-2px); }
.vm-top { display: flex; align-items: center; gap: 0.5rem; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.12em; color: var(--gold); }
.vm-top .key { height: 1.7em; min-width: 1.7em; font-size: 0.56rem; }
.vm-top small { margin-left: auto; font: 500 0.54rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vm-topic { font: italic 500 0.98rem/1.25 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vm-faces { display: flex; gap: 3px; }
.vm-faces img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--c); }
.vm[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 26px -8px rgba(245, 197, 66, 0.8); }
.vm[aria-current="true"]::after { content: "▶ NOW PLAYING"; position: absolute; top: -0.55rem; right: 0.7rem; padding: 0.2rem 0.4rem; border-radius: 4px; font: 400 0.42rem/1 var(--pixel); color: #1a1206; background: var(--gold); }
.vm--ex { border-style: dashed; border-color: rgba(255, 59, 92, 0.45); }
.vm--ex .vm-top { color: var(--red); }
.vsr-menu .fine { margin-top: 0.8rem; }

/* ==========================================================================
   THE POLITENESS PROBLEM
   ========================================================================== */
.polite { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; }
.polite-copy .head { margin-top: 0.7rem; }
.polite-copy .lede { margin-top: 1.2rem; }
.collapse { margin-top: 1.6rem; border-color: rgba(255, 59, 92, 0.35); }
.collapse-list { display: grid; gap: 0.55rem; margin-top: 0.7rem; counter-reset: c; }
.collapse-list li { position: relative; padding-left: 2.1rem; font: 500 clamp(0.92rem, 1.1vw, 1.02rem)/1.45 var(--sans); color: var(--text); opacity: 0.25; transition: opacity 0.5s, transform 0.5s var(--ease); transform: translateX(-6px); counter-increment: c; }
.collapse-list li::before { content: "0" counter(c); position: absolute; left: 0; top: 0.15em; font: 600 0.62rem/1.4 var(--mono); color: var(--red); }
.collapse-list li.lit { opacity: 1; transform: none; }
.collapse-list li:last-child.lit { color: var(--red); }
html:not(.js) .collapse-list li { opacity: 1; transform: none; }
.polite-fix { margin-top: 1.6rem; font-size: clamp(1.2rem, 1.9vw, 1.7rem); }
.polite-copy .dossier-btn { margin-top: 1.4rem; }
.wv-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-bottom: 1px solid rgba(171, 132, 249, 0.12); }
.wv-jump .cap { margin-right: 0.3rem; }
.wv-jump button { padding: 0.35rem 0.6rem; border-radius: 6px; border: 1px solid var(--line-2); font: 600 0.62rem/1 var(--mono); color: var(--lav); background: rgba(20, 18, 32, 0.8); }
.wv-jump button:hover, .wv-jump button.on { border-color: var(--gold); color: var(--gold-hi); }
pre.wv { position: relative; max-height: min(54vh, 520px); overflow: auto; font-size: clamp(0.66rem, 0.82vw, 0.78rem); line-height: 1.7; }
pre.wv .k { color: var(--lav); } pre.wv .s { color: var(--gold-hi); }
pre.wv .k.flash { background: rgba(245, 197, 66, 0.25); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.25); border-radius: 3px; transition: background 1.2s, box-shadow 1.2s; }
.polite-note { margin-top: 1rem; }

/* ==========================================================================
   STANCE DETECTION
   ========================================================================== */
.stance-head .head { margin-top: 0.6rem; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 2.6vw minmax(0, 1fr) 2.6vw minmax(0, 1fr) 2.6vw minmax(0, 1fr) 2.6vw minmax(0, 1fr); align-items: stretch; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.flow .wire { align-self: center; }
.flow .node { padding: 0.85rem 0.95rem 0.95rem; }
.flow .node small { font-size: 0.64rem; }
.flow .node.lit { box-shadow: 0 0 0 1px var(--c), 0 0 34px -6px var(--c); background: color-mix(in srgb, var(--c) 14%, #100e1a); }
html.js .on .flow .node.is-skip, .flow .node.is-skip { opacity: 0.42; }
.flow .node.is-skip::after { content: "skipped · a belief matched"; position: absolute; left: 0; right: 0; top: calc(100% + 0.45rem); text-align: center; font: 500 0.5rem/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.stance-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(1rem, 2.4vw, 2.2rem); margin-top: clamp(1.4rem, 2.6vw, 2.2rem); align-items: start; }
.det-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-bottom: 1px solid rgba(171, 132, 249, 0.12); }
.det-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.7rem 0.3rem 0.3rem; border-radius: 999px; border: 1px solid var(--line-2); font: 600 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.det-btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--c); }
.det-btn:hover { color: var(--white); border-color: var(--c); }
.det-btn[aria-pressed="true"] { color: var(--c); border-color: var(--c); box-shadow: 0 0 16px -4px var(--c); }
.det-body { min-height: 13.5em; }
.det-body .term-row { grid-template-columns: minmax(7.5em, max-content) minmax(0, 1fr); }
.det-body .term-row > :last-child { overflow-wrap: anywhere; }
.det-body .term-row.in { animation: fUp 0.35s var(--ease) both; }
.det-body .stance { font-size: 0.6rem; vertical-align: 0.1em; }
.det-body .ok { color: var(--mint); }
.detector .fine { margin-top: 0.8rem; }
.stance-side { display: grid; gap: 1rem; justify-items: start; }
.stance-side .panel { width: 100%; }
.adj-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; align-items: center; }
.adj-row code { font-size: 0.66rem; color: var(--lav); background: rgba(116, 51, 224, 0.12); }
.adj-more { font: 500 0.62rem/1 var(--mono); color: var(--muted); }
.adj-arrow { margin: 0.4rem 0 0 1rem; color: var(--gold); font: 400 0.8rem/1 var(--pixel); }
.adj-row--canon { margin-top: 0.4rem; }
.adj .small { margin-top: 0.9rem; }
.norules { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
.norules li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); font-size: 0.88rem; line-height: 1.45; color: var(--text); }
.norules .x { color: var(--red); font-weight: 700; }
.norules-stat { margin-top: 0.9rem; font: 500 0.64rem/1.5 var(--mono); letter-spacing: 0.06em; color: var(--text-2); }
.norules-stat b { font: 700 1.3rem/1 var(--mono); color: var(--gold-hi); text-shadow: var(--glow-gold); margin-right: 0.3rem; }

/* ==========================================================================
   AN ANNOTATED EXCHANGE
   ========================================================================== */
.ex-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1rem 2.4rem; align-items: end; }
.ex-head .head { margin-top: 0.7rem; }
.ex-topic { margin-top: clamp(1.2rem, 2vw, 1.8rem); padding: 0.7rem 1rem; border-radius: 10px; border: 1px dashed rgba(255, 59, 92, 0.45); background: rgba(255, 59, 92, 0.05);
  font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.06em; color: var(--text-2); }
.ex-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-top: 1rem; }
.ex-turn { display: grid; align-content: start; gap: 0.8rem; padding: 1rem 1.1rem 1.1rem; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 10%, #15131d), rgba(11, 11, 18, 0.95) 75%); opacity: 0.32; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s var(--ease), box-shadow 0.6s; }
.ex-turn.lit { opacity: 1; transform: none; box-shadow: 0 0 34px -14px var(--c); }
html:not(.js) .ex-turn { opacity: 1; transform: none; }
.ex-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.ex-who b { display: block; font: 850 0.95rem/1.1 var(--sans); text-transform: uppercase; color: var(--c); }
.ex-n { display: block; font: 500 0.56rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.ex-turn .stance { transform: scale(0.8); opacity: 0; transition: transform 0.4s var(--pop) 0.3s, opacity 0.3s 0.3s; }
.ex-turn.lit .stance { transform: none; opacity: 1; box-shadow: 0 0 14px -3px var(--c); }
html:not(.js) .ex-turn .stance { opacity: 1; transform: none; }
.ex-text { font: 500 clamp(1rem, 1.18vw, 1.12rem)/1.5 var(--serif); color: var(--white); }
.ex-text em { color: color-mix(in srgb, var(--c) 40%, white); }
.ex-note { padding: 0.7rem 0.85rem; border-radius: 9px; border: 1px solid rgba(116, 51, 224, 0.45); background: rgba(42, 18, 96, 0.22); font: 500 0.68rem/1.6 var(--mono); color: var(--text-2); }
.ex-note .panel-label { color: var(--lav); margin-bottom: 0.3rem; }
.ex-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2rem; align-items: center; margin-top: clamp(1rem, 2vw, 1.6rem); }
.ex-diff p { margin-top: 0.5rem; font-size: 0.94rem; line-height: 1.6; color: var(--text); }

/* ==========================================================================
   THE RULES OF THE ROOM
   ========================================================================== */
.rules-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1rem 2.4rem; align-items: end; margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.rules-head .head { margin-top: 0.7rem; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.4vw, 1.2rem); }
.rule { position: relative; display: grid; align-content: start; gap: 0.55rem; padding: 1.1rem 1.2rem 1.15rem; border-radius: 12px; border: 1.5px solid rgba(116, 51, 224, 0.5);
  background: linear-gradient(165deg, rgba(42, 18, 96, 0.38), rgba(12, 10, 22, 0.94) 70%); box-shadow: 0 0 30px -16px rgba(116, 51, 224, 0.9);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), border-color 0.25s, box-shadow 0.25s; }
.rule:hover { border-color: var(--gold); box-shadow: 0 0 30px -10px rgba(245, 197, 66, 0.6); }
.rule-n { font: 600 0.62rem/1 var(--mono); letter-spacing: 0.1em; color: var(--gold); }
.rule h3 { font: 900 clamp(1.1rem, 1.6vw, 1.5rem)/1.05 var(--sans); text-transform: uppercase; color: var(--white); text-shadow: var(--glow-white); }
.rule p { font-size: 0.84rem; line-height: 1.55; color: var(--text-2); }
.rule .rule-meta { margin-top: auto; padding-top: 0.3rem; font: 500 0.6rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.stale { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px dashed rgba(171, 132, 249, 0.25); }
.stale-ring { --p: 1; position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(171, 132, 249, 0.16) 0); }
.stale-ring i { position: absolute; inset: 4px; border-radius: 50%; background: #0e0b1a; }
.stale-read { display: grid; flex: 1; min-width: 0; }
.stale-read b { font: 400 0.9rem/1.2 var(--pixel); color: var(--white); font-variant-numeric: tabular-nums; }
.stale-read small { font: 500 0.54rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stale.is-stale .stale-read b { color: var(--red); text-shadow: var(--glow-red); }
.stale .vk { min-height: 34px; font-size: 0.56rem; }

/* ==========================================================================
   WHERE THE MEMORY LIVES
   ========================================================================== */
.memory { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.6rem, 3.6vw, 4rem); align-items: center; }
.memory-copy .head { margin-top: 0.7rem; }
.memory-copy .lede { margin-top: 1.1rem; }
.memory-copy .term { margin-top: 1.4rem; }
.memory-copy pre.term-body { font-size: clamp(0.64rem, 0.8vw, 0.76rem); line-height: 1.65; }
.memory-copy pre .k { color: var(--lav); } .memory-copy pre .m { color: var(--muted); }
.mem { padding: 1.1rem 1.2rem 1.2rem; border-color: rgba(245, 197, 66, 0.35); }
.mem-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mem-title { margin-top: 0.45rem; font: 800 clamp(1rem, 1.4vw, 1.25rem)/1.2 var(--sans); text-transform: uppercase; color: var(--white); }
.mem-ctrl { display: flex; gap: 0.4rem; flex: none; }
.mem-table { margin-top: 0.9rem; font: 500 0.7rem/1.45 var(--mono); }
.mem-row { display: grid; grid-template-columns: 2.2em minmax(6.5em, 0.32fr) minmax(0, 1fr) 4.6em; gap: 0.75rem; align-items: baseline; padding: 0.5rem 0.2rem; border-bottom: 1px solid rgba(171, 132, 249, 0.1); }
.mem-row--h { font: 600 0.54rem/1.3 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lav); border-bottom-color: rgba(171, 132, 249, 0.3); }
.mem-row .n { color: var(--muted); }
.mem-row .who { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--c); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.62rem; min-width: 0; }
.mem-row .who::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.mem-row .msg-x { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mem-row .st { color: var(--muted); text-align: right; }
.mem-row .st .stance { font-size: 0.5rem; }
.mem-row.in { animation: fUp 0.35s var(--ease) both; }
.mem-row.is-focus { background: rgba(245, 197, 66, 0.06); }
.mem-row.empty { grid-template-columns: minmax(0, 1fr); color: var(--muted); }
.mem-next { margin-top: 0.8rem; font: 600 0.64rem/1.5 var(--mono); letter-spacing: 0.08em; color: var(--gold-hi); }
.mem .fine { margin-top: 0.7rem; }
.memory-note { margin-top: 1rem; }

/* ==========================================================================
   THE TRANSCRIPT LOG
   ========================================================================== */
.log-head { text-align: center; }
.log-head .head { margin-top: 0.7rem; }
.log-head .lede { margin: 1.1rem auto 0; }
.slots { display: grid; gap: 0.75rem; margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: linear-gradient(110deg, rgba(42, 18, 96, 0.26), rgba(12, 11, 20, 0.92) 55%);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), border-color 0.25s, box-shadow 0.25s; }
.slot:hover, .slot:focus-within { border-color: rgba(245, 197, 66, 0.55); box-shadow: 0 0 30px -12px rgba(245, 197, 66, 0.6); }
.slot-n { font: 400 clamp(1.2rem, 2.2vw, 1.9rem)/1 var(--pixel); color: var(--lav); text-shadow: var(--glow-lav); }
.slot-topic { margin-top: 0.3rem; font: italic 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.2 var(--serif); color: var(--white); }
.slot-faces { display: flex; gap: 4px; margin-top: 0.55rem; }
.slot-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--c); }
.slot-meta { margin-top: 0.45rem; font: 500 0.6rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.slot-act { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.slot-act .btn { padding: 0.7rem 1rem; }
.log-fine { margin-top: 1.2rem; text-align: center; margin-left: auto; margin-right: auto; }

/* the transcript dossiers */
.log { display: grid; gap: 1.1rem; }
.log-msg { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 0.6rem; padding: 0.8rem 0.9rem; border-radius: 10px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 5%, transparent); transition: background 0.3s; }
.log-n { font: 500 0.62rem/1.9 var(--mono); color: var(--muted); }
.log-msg b { display: block; font: 700 0.64rem/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--c); margin-bottom: 0.35rem; }
.log-msg p { font: 500 1.06rem/1.55 var(--serif); color: var(--text); }
.log-msg p + p { margin-top: 0.5em; }
.log-msg em { color: color-mix(in srgb, var(--c) 40%, white); }
.log-msg .verse { padding-left: 0.9em; border-left: 2px solid color-mix(in srgb, var(--c) 55%, transparent); font-style: italic; color: var(--white); }
.log-msg.is-flag { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent); }
.log-msg .log-flag { margin-top: 0.6rem; font: 500 0.8rem/1.5 var(--sans); color: color-mix(in srgb, var(--red) 75%, white); }
.log-msg.is-focus { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.log-end { margin-top: 1.6rem; align-items: center; gap: 1rem; }
.prose .steps { padding-left: 1.4em; list-style: decimal; }
.prose .steps li::marker { color: var(--gold); font-family: var(--mono); font-size: 0.8em; }

/* ==========================================================================
   THE FILM · NEXT CHAPTER
   ========================================================================== */
.film { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); grid-template-areas: "copy player" "next next"; gap: clamp(1.6rem, 3.4vw, 3.6rem); align-items: center; }
.film-copy { grid-area: copy; }
.film-copy .head { margin-top: 0.7rem; }
.film-copy .lede { margin-top: 1.1rem; }
.film-tc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.4rem; margin-top: 1.3rem; }
.film-tc b { font: 400 clamp(0.9rem, 1.4vw, 1.2rem)/1 var(--pixel); color: var(--gold-hi); text-shadow: var(--glow-gold); }
.film-player { grid-area: player; }
.film-next { grid-area: next; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.6rem; align-items: stretch; }
.keep p { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-2); }
.keep a { border-bottom: 1px solid rgba(171, 132, 249, 0.45); }
.rail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.4rem; font: 500 0.62rem/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; }
.rail a { color: var(--text-2); } .rail a:hover { color: var(--gold-hi); }

.mark-shot { min-height: 100svh; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .vsr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
  .flow .wire { display: none; }
}
@media (max-width: 1000px) {
  .polite, .memory, .stance-grid, .ex-head, .rules-head { grid-template-columns: minmax(0, 1fr); }
  .ex-list { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "player" "next"; }
  .net-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .net-pick { justify-content: center; }
  .net-voice[hidden] { display: none; }
  .vsr-arena { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "l r" "mid mid"; min-height: 0; row-gap: 1.2rem; }
  .fighter--l { grid-area: l; align-self: start; } .fighter--r { grid-area: r; align-self: start; }
  .vsr-mid { grid-area: mid; }
  .fighter-orb { --s: clamp(96px, 20vw, 170px); margin-bottom: 0.6rem; }
  .vsr-voices .fine { text-align: left; }
}
@media (max-width: 760px) {
  .salon-shot { padding-top: 92px; }
  .chap-slam .slam { font-size: clamp(2.4rem, 13vw, 4rem); }
  @keyframes chap {
    0% { opacity: 0; transform: scale(1.12); }
    14% { opacity: 1; transform: none; }
    62% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translate(-30vw, -40vh) scale(0.2); }
  }
  .net { --rx: 0.39; --ry: 0.4; aspect-ratio: 1 / 1.02; margin-top: 1.4rem; }
  .seat .orb { --s: calc(clamp(40px, 13cqw, 68px) * var(--k, 1)); }
  .seat-name { font-size: 0.46rem; letter-spacing: 0.14em; top: calc(100% + 0.3rem); }
  .net-card { width: 54cqw; padding: 3.4cqw 3cqw 3.6cqw; }
  .net-card .cap { font-size: 0.5rem; letter-spacing: 0.22em; }
  .net-topic { font-size: clamp(1rem, 6cqw, 1.5rem); }
  .net-tick-line { font-size: 0.98rem; }
  .vs-shot { padding-top: 92px; }
  .vsr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "round turn"; row-gap: 0.6rem; }
  .vsr-head { grid-area: head; letter-spacing: 0.16em; }
  .vsr-round { grid-area: round; } .vsr-turn { grid-area: turn; }
  .vsr-pips { gap: 3px; }
  .fighter-name { font-size: clamp(0.95rem, 4.6vw, 1.3rem); }
  .fighter-sub { font-size: 0.5rem; letter-spacing: 0.14em; }
  .bubble { padding: 0.85rem 1rem 1.05rem; }
  .bubble[data-side="l"], .bubble[data-side="r"] { margin-left: 0; margin-right: 0; }
  .bubble::before { display: none; }
  .bubble--cur { min-height: 0; }
  .vsr-bar { justify-content: center; }
  .vsr-ctrl { justify-content: center; }
  .vsr-list { grid-template-columns: minmax(0, 1fr); }
  .vm-topic { -webkit-line-clamp: 3; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .mem-head { flex-direction: column; }
  .mem-row { grid-template-columns: 1.8em minmax(0, 1fr) 3.4em; }
  .mem-row .msg-x { grid-column: 2 / 4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mem-row--h span:nth-child(3) { display: none; }
  .mem-row .st { grid-column: 3; grid-row: 1; }
  .slot { grid-template-columns: minmax(0, 1fr); }
  .slot-n { display: none; }
  .slot-act { justify-content: flex-start; }
  .film-next { grid-template-columns: minmax(0, 1fr); }
  .ex-who { grid-template-columns: auto minmax(0, 1fr); }
  .ex-who .stance { grid-column: 2; justify-self: start; }
  .ex-foot { grid-template-columns: minmax(0, 1fr); }
  .det-body .term-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .salon-shot.on .chap-slam { animation: none; opacity: 0; }
  .b-text .w { opacity: 1; transition: none; }
}

/* the film's two voiced lines, quoted beside the clip */
.vsr-voices-k { color: var(--lav); margin-right: 0.4rem; }
.film-q { display: grid; gap: 0.7rem; margin-top: 1.3rem; }
.film-q blockquote { padding: 0.15rem 0 0.2rem 0.95rem; border-left: 2px solid var(--c); }
.film-q p { font: italic 500 clamp(1rem, 1.25vw, 1.15rem)/1.4 var(--serif); color: var(--text); }
.film-q cite { display: block; margin-top: 0.3rem; font: 600 0.56rem/1.3 var(--mono); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); }
