/* /live, the Grand Display (WP3). Prefix: live-. PLAN.md §3.6, §9 WP3.
   Layers: .live-sky (z0: theme crossfade, light pools, beams, stars) → canvas.live-fx (z1, WP1 particles) →
   .live-stage (z2) → HUD, progress, controls, sponsor units (z3–z4).
   Choreography: each .live-seg carries --o (ms into the segment when it was rendered) and --ms (its length); every
   animation delay is calc(<beat> − var(--o)), so a late join seeks and .is-paused freezes everything.
   Only transform, opacity and filter (≤ 8px blur) animate. On /live, .gcard--stage is laid out by this sheet (the
   stage is full-bleed type on the sky, not a card); WP1's card styles still provide everything else. */

@property --live-l1 { syntax: '<color>'; inherits: true; initial-value: #7B5CFF; }
@property --live-l2 { syntax: '<color>'; inherits: true; initial-value: #FF3D8B; }
@property --live-l3 { syntax: '<color>'; inherits: true; initial-value: #3DE7FF; }

.live-body { overflow: hidden; background: var(--night-950); }
.live {
  --live-pad-x: clamp(16px, 3.2vw, 56px);
  --live-top: 0px;
  --live-glass: color-mix(in srgb, var(--night-950) 58%, transparent);
  position: fixed;
  inset: var(--live-top) 0 0 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: var(--night-950);
  font-family: var(--font-ui);
}
/* Dev only: keep the "DEV · data is wiped" bar visible above the stage. */
.dev-banner ~ #main .live { --live-top: 30px; }

/* ── Sky ───────────────────────────────────────────────────────────────────────────────────────────────── */
.live-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.live-sky__layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--live-xfade, 1200ms) linear;
}
.live-sky__layer.is-on { opacity: 1; }
.live-sky__layer.is-front { z-index: 1; }
.live-sky__lights {
  position: absolute; inset: -10%; z-index: 2;
  background:
    radial-gradient(42% 38% at 14% 104%, color-mix(in srgb, var(--live-l1) 40%, transparent), transparent 72%),
    radial-gradient(42% 38% at 86% 104%, color-mix(in srgb, var(--live-l2) 36%, transparent), transparent 72%),
    radial-gradient(55% 34% at 50% -6%, color-mix(in srgb, var(--live-l3) 22%, transparent), transparent 70%);
  transition: --live-l1 1200ms linear, --live-l2 1200ms linear, --live-l3 1200ms linear, opacity 1200ms linear;
  pointer-events: none;
}
.live[data-sky-scheme="light"] .live-sky__lights { opacity: .55; }
.live[data-sky-scheme="light"] { --live-glass: color-mix(in srgb, var(--night-900) 80%, transparent); }
/* The stage's own beams and stars are OFF over a greeting (round 13): violet and pink wedges and white specks are no part of the picture a theme paints. A theme that wants them opts in
   with one line in its sheet, `.live:has(.live-sky__layer.is-on[data-theme="<id>"]) { --live-beams: .32; --live-stars: .7; }` (set either, or only one); the overture, the act breaks and the finale
   (every view that is not a greeting or a demo's solo card) keep both, over the night sky they stand in. The beams' colours are --live-l1 and --live-l2, the theme's accents; a theme can set its own on the beams. */
.live { --live-beams: .32; --live-stars: .7; }
.live:is([data-kind="greeting"], [data-kind="solo"]) { --live-beams: 0; --live-stars: 0; }   /* (solo is the demo's and the preview's one greeting) */
.live-sky__beams { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.live-sky__beams i {
  position: absolute; bottom: -8vh; left: 6vw;
  width: 46vmax; height: 125vh;
  margin-left: -23vmax;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, color-mix(in srgb, var(--live-l1) 34%, transparent) 0%, transparent 80%);
  clip-path: polygon(47% 100%, 53% 100%, 100% 0, 0 0);
  opacity: var(--live-beams);
  transition: opacity 1200ms linear;
  filter: blur(6px);
  animation: live-sweep 12s var(--ease-io) infinite alternate;
}
.live-sky__beams i + i {
  left: auto; right: 6vw; margin-left: 0; margin-right: -23vmax;
  background: linear-gradient(to top, color-mix(in srgb, var(--live-l2) 32%, transparent) 0%, transparent 80%);
  animation-duration: 14s;
  animation-direction: alternate-reverse;
}
.live[data-sky-scheme="light"] .live-sky__beams i { opacity: calc(var(--live-beams) * .69); }
@keyframes live-sweep { from { transform: rotate(-16deg); } to { transform: rotate(12deg); } }
.live-sky__stars {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 23px 31px, #fff 50%, transparent 52%) 0 0 / 173px 151px,
    radial-gradient(1.6px 1.6px at 97px 83px, #ffffffb0 50%, transparent 52%) 0 0 / 211px 197px,
    radial-gradient(1px 1px at 141px 19px, #ffffffd0 50%, transparent 52%) 0 0 / 263px 229px,
    radial-gradient(2px 2px at 41px 121px, #ffe9b080 50%, transparent 52%) 0 0 / 307px 283px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 78%);
  opacity: var(--live-stars);
  transition: opacity 1200ms linear;
}
.live-sky__stars::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1.8px 1.8px at 61px 47px, #fff 50%, transparent 52%) 0 0 / 239px 211px,
    radial-gradient(1.4px 1.4px at 13px 101px, #fff 50%, transparent 52%) 0 0 / 331px 257px;
  animation: live-twinkle 4.2s ease-in-out infinite alternate;
}
@keyframes live-twinkle { from { opacity: .15; } to { opacity: .9; } }
.live[data-sky-scheme="light"] .live-sky__stars { opacity: 0; }

/* ── Particles (WP1 fx) ─────────────────────────────────────────────────────────────────────────────────── */
.live-fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ── Stage ─────────────────────────────────────────────────────────────────────────────────────────────── */
.live-stage { position: absolute; inset: 0; z-index: 2; }
.live-seg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(76px, 12vh, 150px) var(--live-pad-x) clamp(92px, 14vh, 160px);
  text-align: center;
  animation: live-exit 600ms var(--ease-in) calc(var(--ms, 12000ms) - 600ms - var(--o, 0ms)) forwards;
}
.live-seg--ceremony, .live-seg--intermission { animation: none; }
.live-seg.is-ssr { animation: none; } /* the SSR paint holds until the client takes over (or forever without JS) */
/* The SSR paints a segment inside its entrance (and the ?g= solo) behind a curtain: the client renders it at the
   real offset within a few hundred ms and the entrance plays, instead of a finished card flashing first. */
.live-seg.is-curtain > * { opacity: 0; }
.live-seg.is-leaving { animation: live-leave 450ms var(--ease-in) forwards; pointer-events: none; }
@keyframes live-exit { to { opacity: 0; transform: translateY(-2.5vh) scale(.985); filter: blur(6px); } }
@keyframes live-leave { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }

/* Rockets and blooms: single DOM elements; the particles themselves are on the canvas. */
.live-rocket, .live-bloom { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; }
.live-rocket {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px var(--c, #FFC94D), 0 0 22px 8px color-mix(in srgb, var(--c, #FFC94D) 45%, transparent);
  animation: live-rocket 700ms cubic-bezier(.22,.62,.35,1) calc(var(--d) - var(--o)) both;
}
.live-rocket::after {
  content: ''; position: absolute; left: 1px; top: 4px; width: 4px; height: 13vh; border-radius: 4px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c, #FFC94D) 80%, #fff), transparent);
  opacity: .75;
}
@keyframes live-rocket {
  0% { opacity: 0; transform: translate(var(--x0, var(--x)), var(--y0, 104vh)); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)); }
}
/* The bloom is a soft glow with a faint ring of thin, soft-edged sparks (the burst itself is WP1's canvas particles);
   on light skies it is smaller and fainter, so it reads as a glow, never a sunburst. */
.live-bloom {
  --bloom-k: 1;
  --bloom-peak: .5;
  --bloom-sparks: .5;
  width: calc(var(--s, 40vmin) * var(--bloom-k)); height: calc(var(--s, 40vmin) * var(--bloom-k));
  margin: calc(var(--s, 40vmin) * var(--bloom-k) / -2) 0 0 calc(var(--s, 40vmin) * var(--bloom-k) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #fff 70%, var(--c, #FFC94D)) 0%,
    color-mix(in srgb, var(--c, #FFC94D) 62%, transparent) 12%, color-mix(in srgb, var(--c, #FFC94D) 18%, transparent) 34%, transparent 60%);
  animation: live-bloom 1400ms cubic-bezier(.16,1,.3,1) calc(var(--d) - var(--o)) both;
}
.live-bloom::after {
  content: ''; position: absolute; inset: -14%; border-radius: 50%;
  background: repeating-conic-gradient(from 7deg, transparent 0deg, var(--c, #FFC94D) .4deg .7deg, transparent 1.1deg 15deg);
  mask-image: radial-gradient(circle, transparent 22%, #000 34%, #000 42%, transparent 56%);
  opacity: var(--bloom-sparks);
}
@keyframes live-bloom {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.12); }
  14% { opacity: var(--bloom-peak, .5); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.3); }
}
.live[data-sky-scheme="light"] .live-bloom { --bloom-k: .78; --bloom-peak: .3; --bloom-sparks: .22; }

/* ── Greeting (the shared card, variant stage) ─────────────────────────────────────────────────────────── */
.live .live-seg .gcard--stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(6px, 1.5vh, 22px);
  width: min(100%, 1600px); max-width: none; min-height: 0; aspect-ratio: auto;
  margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  color: var(--t-text);
  text-align: center;
  overflow: visible;
}
.live .live-seg .gcard--stage .gcard__overlays { display: none; }
/* The stage's eyebrow scale only. Its colour, pill, rules and padding are the theme's (themes.css): the ribbon on confetti
   and balloons is cta-text on cta, and a colour set here beat it by specificity (blue on blue, 1.2:1) before the merge. */
.live .live-seg .gcard__eyebrow {
  margin: 0;
  font: 700 clamp(13px, 2.5vh, 32px)/1.1 var(--font-display);
  letter-spacing: .34em; text-transform: uppercase;
}
.live .live-seg .gcard__name {
  margin: 0;
  max-width: 100%;
  font-family: var(--t-font-name);
  font-weight: var(--t-name-weight);
  font-style: var(--t-name-style);
  font-stretch: var(--t-name-stretch);
  font-size: clamp(6vh, calc(88vw / (var(--n, 6) * .62 + 1)), var(--name-max, 22vh));
  line-height: 1.02;
  letter-spacing: -.015em;
  white-space: nowrap;
  color: var(--t-text);
  text-shadow: 0 0 .32em color-mix(in srgb, var(--t-a1) 45%, transparent), 0 .04em .2em rgb(0 0 0 / .35);
  padding-block: .04em .08em;
}
.live .live-seg .gcard[data-scheme="light"] .gcard__name { text-shadow: 0 .05em 0 color-mix(in srgb, var(--t-a2) 55%, transparent); }
.live .live-seg .gcard__name[data-lines="2"],
.live .live-seg[data-name-lines="2"] .gcard__name { white-space: normal; text-wrap: balance; line-height: .98; }
/* A single word wider than the line at the 6 vh floor is scaled to one line as far as fitName() allows (28 px or 3.4 vh), and
   only then broken: with a hyphen where the script has them (the <br> and the hyphen are put in by fitName; the hyphen is generated
   content, so the name's text stays the word whole), and between any two graphemes (balanced) for the scripts that do not hyphenate. */
.live .live-seg .gcard__name.is-broken .live-word { white-space: normal; }
.live-g.is-hy::after { content: '-'; content: '-' / ''; }
/* Before the client fits the name (and without JS): --n (graphemes) and --name-max (22 / 17 / 13 vh by message
   length) on the segment feed the clamp above, so the first paint is close to what fitName() measures; anything
   still too wide wraps instead of clipping behind the HUD and controls. */
.live .live-seg.is-ssr .gcard__name { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.live-word { display: inline-block; white-space: nowrap; }
.live-g { display: inline-block; }
.live .live-seg .gcard__milestone, .live .live-seg .gcard__kicker {
  margin: 0;
  font: 650 clamp(13px, 2.6vh, 34px)/1.2 var(--font-display);
  padding: .32em 1em;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--t-a1) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--t-a1) 48%, transparent);
  color: var(--t-text);
}
.live .live-seg .gcard__milestone { text-wrap: balance; }
.live .live-seg .gcard__milestone.is-milestone {
  background: linear-gradient(120deg, #a67a1f, #c99a2e 40%, #ffe7a3 52%, #c99a2e 64%, #a67a1f);   /* the darkest stop keeps 4.9:1 under the text */
  border-color: #ffe7a3;
  color: #1a1204;
  box-shadow: 0 0 2.4vh color-mix(in srgb, #FFC94D 45%, transparent);
}
.live-age { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.2ch; }
/* the kicker (neon's LEVEL UP) keeps a plate like the card's: bare cyan text on the sun was 1.1:1 */
.live .live-seg .gcard__kicker { letter-spacing: .3em; text-transform: uppercase; color: var(--t-a2); background: color-mix(in srgb, var(--t-bg) 80%, transparent); }
.live .live-seg .gcard__message {
  margin: 0;
  max-width: 38ch;
  font: 500 var(--live-msg, 3.8vh)/1.32 var(--font-ui);
  white-space: pre-line;
  text-wrap: balance;
  color: var(--t-text);
}
.live .live-seg .gcard__message[data-len="s"] { --live-msg: clamp(18px, 5.2vh, 64px); font-family: var(--font-display); font-weight: 600; line-height: 1.18; }
.live .live-seg .gcard__message[data-len="m"] { --live-msg: clamp(16px, 3.8vh, 48px); }
.live .live-seg .gcard__message[data-len="l"] { --live-msg: clamp(14px, 2.9vh, 38px); }
/* The stage's default shadow for a dark card's message, and only a default: the stage prefix sits in :where() so this is (0,3,0), not the (0,5,0) it was, which out-ranked every theme's own
   `.gcard[data-theme="x"] .gcard__message` (0,3,0) and made 30 themes' shadows dead on /live (Alpine Lodge and Aurora wrote theirs again at the stage's specificity to get through). A theme sheet is linked
   after this file, so its own rule wins the tie; this one still beats card.css's `.gcard--stage[data-scheme="dark"] :is(.gcard__message, …)` (also (0,3,0)) because it comes later. Keep it at (0,3,0) */
:where(.live .live-seg) .gcard[data-scheme="dark"] .gcard__message { text-shadow: 0 .06em .4em rgb(0 0 0 / .45); }
.live-w { display: inline-block; max-width: 100%; }
.live .live-seg .gcard__sender {
  margin: 0;
  font: italic 400 clamp(16px, 3.2vh, 42px)/1.2 var(--font-name);
  color: var(--t-muted);
}
.live .live-seg .gcard__sender [data-f="sender"] { color: var(--t-text); }
.live .live-seg .gcard__emoji { font-size: clamp(30px, 6.5vh, 88px); line-height: 1; display: inline-block; }
.live .live-seg .gcard__seat { display: none; }

/* The birthday universe (round 3, live/universe.ts): a canvas first in .live-sky, under the theme layers. A greeting that
   arrives by a flight carries --live-shift on its segment: its entrance, sparks and beats wait for the flight. */
.live-universe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Entrance (§9 WP3): 950 eyebrow · 1050 name per grapheme (40 ms, ≤1200) · 1700 age · 1900 words (≤450) · 2400 signature + emoji */
.live-seg:not(.is-settled) .gcard__eyebrow { animation: live-track 800ms var(--ease-out) calc(950ms + var(--live-shift, 0ms) - var(--o)) both; }
.live-seg:not(.is-settled) .live-g { animation: live-rise 900ms var(--ease-spring) calc(1050ms + var(--live-shift, 0ms) + var(--i) * var(--stagger, 40ms) - var(--o)) both; }
.live-seg:not(.is-settled) .gcard__milestone,
.live-seg:not(.is-settled) .gcard__kicker { animation: live-pop 700ms var(--ease-spring) calc(1700ms + var(--live-shift, 0ms) - var(--o)) both; }
.live-seg:not(.is-settled) .live-w { animation: live-up 600ms var(--ease-out) calc(1900ms + var(--live-shift, 0ms) + var(--i) * var(--wstagger, 30ms) - var(--o)) both; }
.live-seg:not(.is-settled) .gcard__sender { animation: live-up 700ms var(--ease-out) calc(2400ms + var(--live-shift, 0ms) - var(--o)) both; }
.live-seg:not(.is-settled) .gcard__emoji { animation: live-pop 800ms var(--ease-spring) calc(2500ms + var(--live-shift, 0ms) - var(--o)) both; }
@keyframes live-track { from { opacity: 0; transform: scaleX(1.3); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes live-rise { from { opacity: 0; transform: translateY(.42em) scale(.9); filter: blur(5px); } 45% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
@keyframes live-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes live-up { from { opacity: 0; transform: translateY(.55em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes live-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Overture ──────────────────────────────────────────────────────────────────────────────────────────── */
.live-ov, .live-act, .live-fin, .live-msg { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2vh, 26px); max-width: 1500px; }
.live-ov__eyebrow, .live-fin__eyebrow, .live-msg__eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 700 clamp(12px, 2.2vh, 28px)/1 var(--font-display);
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--candle);
}
.live-ov__dot { width: .62em; height: .62em; border-radius: 50%; background: var(--party); box-shadow: 0 0 1em var(--party); }
.live-ov__date {
  font: 800 clamp(34px, 10.5vh, 150px)/1 var(--font-display);
  font-stretch: 75%;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.live-ch { display: inline; }
.live-ov__count { display: flex; flex-direction: column; align-items: center; gap: .4vh; }
.live-ov__n, .live-fin__n, .live-act__num {
  font: 800 clamp(64px, 22vh, 300px)/.9 var(--font-display);
  font-stretch: 75%;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-candle);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 3vh color-mix(in srgb, var(--party) 35%, transparent));
  padding-inline: .06em;
}
.live-ov__label { font: 700 clamp(16px, 3.6vh, 46px)/1.1 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.live-ov__window { font: 500 clamp(13px, 2.2vh, 26px)/1.3 var(--font-ui); color: var(--ink-2); }
.live-seg:not(.is-settled) .live-ov__eyebrow { animation: live-up 700ms var(--ease-out) calc(150ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-ch { animation: live-in 140ms linear calc(450ms + var(--i) * 45ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-ov__count { animation: live-pop 900ms var(--ease-spring) calc(1500ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-ov__window { animation: live-up 700ms var(--ease-out) calc(2300ms - var(--o)) both; }

/* ── Interlude ─────────────────────────────────────────────────────────────────────────────────────────── */
.live-act { gap: clamp(6px, 1.6vh, 20px); }
.live-act__kicker { font: 800 clamp(14px, 3vh, 40px)/1 var(--font-display); letter-spacing: .6em; padding-inline-start: .6em; text-transform: uppercase; color: var(--ink-2); }
.live-act__num { font-size: clamp(80px, 30vh, 380px); }
.live-act__tally { display: flex; gap: .7em; font: 700 clamp(16px, 3.4vh, 44px)/1.2 var(--font-display); }
.live-act__tally > :first-child { color: var(--candle); }
.live-act__sep { color: var(--ink-3); }
.live-act__meter { width: min(70vw, 720px); height: clamp(6px, 1vh, 12px); border-radius: var(--radius-pill); background: rgb(255 255 255 / .12); overflow: hidden; }
.live-act__meter i { display: block; height: 100%; background: var(--grad-candle); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.live-act__ad:empty { display: none; }
.live-seg:not(.is-settled) .live-act__kicker { animation: live-track 700ms var(--ease-out) calc(100ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-act__num { animation: live-pop 900ms var(--ease-spring) calc(250ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-act__tally { animation: live-up 700ms var(--ease-out) calc(650ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-act__meter i { animation: live-meter 1100ms var(--ease-out) calc(800ms - var(--o)) both; }
.live-seg:not(.is-settled) .live-act__ad { animation: live-up 700ms var(--ease-out) calc(1000ms - var(--o)) both; }
@keyframes live-meter { from { transform: scaleX(calc(var(--p, 0) - .1)); } to { transform: scaleX(var(--p, 0)); } }

/* ── Finale and quiet-day cards ────────────────────────────────────────────────────────────────────────── */
.live-fin__title { display: flex; flex-direction: column; align-items: center; gap: 1vh; font: 800 clamp(22px, 5.4vh, 72px)/1.05 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.live-fin__n { font-size: clamp(64px, 20vh, 260px); }
.live-fin__next { font: 600 clamp(16px, 3.6vh, 46px)/1.25 var(--font-display); color: var(--ink); text-wrap: balance; }
.live-fin__url, .live-msg__url {
  font: 800 clamp(16px, 3.4vh, 44px)/1.1 var(--font-display);
  letter-spacing: -.01em;
  padding: .45em 1em;
  /* Whatever it says wraps inside the pill, even a word with no break in it (the dev Worker's 38-character host was 556 px wide:
     the flex column took its width and the whole card, title and subtitle too, ran off the edge of a phone). */
  max-width: 100%; overflow-wrap: anywhere; text-align: center; text-wrap: balance;
  border-radius: var(--radius-pill);
  background: var(--candle);
  color: var(--night-900);
  box-shadow: 0 0 4vh color-mix(in srgb, var(--candle) 40%, transparent);
  text-decoration: none;                       /* the address is a link to /book: a tappable way onto a booking */
}
a.live-fin__url:hover, a.live-msg__url:hover { background: color-mix(in srgb, var(--candle) 82%, #fff); }
a.live-fin__url:focus-visible, a.live-msg__url:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.live-msg__emoji { font-size: clamp(48px, 13vh, 170px); line-height: 1; }
.live-msg__title { font: 800 clamp(26px, 7.4vh, 104px)/1.04 var(--font-display); font-stretch: 85%; letter-spacing: -.025em; text-wrap: balance; max-width: 22ch; }
.live-msg--house .live-msg__title { font: italic 400 clamp(30px, 9vh, 128px)/1.02 var(--font-name); letter-spacing: -.01em; max-width: 18ch; }
.live-msg__sub { font: 500 clamp(14px, 2.6vh, 32px)/1.3 var(--font-ui); color: var(--ink-2); max-width: 46ch; text-wrap: balance; }
.live-msg--bow .live-msg__title { font: italic 400 clamp(30px, 9vh, 128px)/1.02 var(--font-name); }
.live-seg:not(.is-settled) :is(.live-fin, .live-msg) > :nth-child(1) { animation: live-up 800ms var(--ease-out) calc(200ms - var(--o)) both; }
.live-seg:not(.is-settled) :is(.live-fin, .live-msg) > :nth-child(2) { animation: live-up 800ms var(--ease-out) calc(450ms - var(--o)) both; }
.live-seg:not(.is-settled) :is(.live-fin, .live-msg) > :nth-child(3) { animation: live-up 800ms var(--ease-out) calc(1300ms - var(--o)) both; }
.live-seg:not(.is-settled) :is(.live-fin, .live-msg) > :nth-child(4) { animation: live-pop 800ms var(--ease-spring) calc(1800ms - var(--o)) both; }

/* ── HUD ───────────────────────────────────────────────────────────────────────────────────────────────── */
.live-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: clamp(6px, 1vw, 12px);
  padding: max(14px, env(safe-area-inset-top)) var(--live-pad-x) 0;
  pointer-events: none;
}
.live-hud > * { pointer-events: auto; margin: 0; }
.live-hud__brand, .live-chip, .live-hud__date, .live-hud__act, .live-note, .live-controls {
  background: var(--live-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius-pill);
  color: var(--ink);
}
.live-hud__brand { padding: 7px 14px 8px; }
.live-hud .wordmark {
  display: inline-block;
  font: 800 22px/1 var(--font-display); font-stretch: 75%; letter-spacing: -.04em;
  color: var(--ink); text-decoration: none;
}
.live-hud .wordmark svg { height: 22px; width: auto; display: block; }
.live-hud .wordmark__dot { color: var(--candle); }
.live-chip, .live-hud__date, .live-hud__act { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font: 700 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.live-hud__date { letter-spacing: .04em; text-transform: none; font-weight: 600; color: var(--ink-2); }
.live-hud__act { margin-inline-start: auto; letter-spacing: .04em; text-transform: none; font-variant-numeric: tabular-nums; }
/* "Book a seat": the primary action of the site, one tap from the show (not in fullscreen, where the show is for the room). */
.live-hud__book {
  display: inline-flex; align-items: center; gap: .3em; min-height: 36px; padding: 0 16px;   /* gap: a flex item drops its leading space ("Book" + " a seat") */
  margin-inline-start: auto;
  border-radius: var(--radius-pill);
  background: var(--candle); color: var(--night-900);
  font: 800 13px/1 var(--font-ui); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--candle) 70%, transparent);
}
.live-hud__act:not([hidden]) + .live-hud__book { margin-inline-start: 0; }
.live-hud__brand, .live-chip, .live-hud__act, .live-hud__book { flex: none; }      /* the pills never squeeze (the wordmark was a blob at 320 px) */
.live-hud__book:hover { background: color-mix(in srgb, var(--candle) 82%, #fff); }
.live-hud__book:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.live.is-fullscreen .live-hud__book { display: none; }
.live-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--party); box-shadow: 0 0 10px var(--party); animation: live-pulse 1.8s ease-in-out infinite alternate; }
.live-chip[data-live="0"] .live-chip__dot { background: var(--ink-3); box-shadow: none; animation: none; }
.live-chip[data-held] .live-chip__dot { animation: none; opacity: .55; }
@keyframes live-pulse { from { opacity: 1; } to { opacity: .35; } }

.live-note {
  position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 52px); left: 50%; z-index: 4;
  transform: translateX(-50%);
  /* max-content: at left 50% an absolute box shrinks to fit the half it starts in, so the note broke into three lines on a phone */
  width: max-content; max-width: min(92vw, 640px);
  padding: 10px 18px;
  font: 600 14px/1.35 var(--font-ui);
  text-align: center;
}
.live-note a { color: var(--candle); }
/* a narrow portrait phone (/live?g= from "Watch now"): two short lines at most, so the note does not sit on the card's first lines */
@media (orientation: portrait) and (max-width: 400px) {
  .live-note { max-width: calc(100vw - 24px); padding: 6px 12px; font-size: 12px; line-height: 1.3; }
}

/* Progress hairline */
.live-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgb(255 255 255 / .08); pointer-events: none; }
.live-progress i { display: block; height: 100%; background: var(--grad-candle); transform-origin: 0 50%; transform: scaleX(0); animation: live-progress var(--ms, 12000ms) linear calc(0ms - var(--o, 0ms)) forwards; }
@keyframes live-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Controls ──────────────────────────────────────────────────────────────────────────────────────────── */
.live-controls {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 4;
  display: flex; align-items: center; gap: 4px;
  width: max-content; max-width: calc(100% - 16px);          /* an absolute box at left:50% has half the screen to grow into: "Back to live" wrapped */
  padding: 5px;
  transform: translateX(-50%);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
/* A hidden bar takes no pointer events: invisible, it still sat over the stage, so the first tap on a sponsor's link under it
   only revealed the bar. A tap where it was now reaches what lies there (the link, or the stage, whose tap reveals the bar). */
.live.controls-hidden .live-controls { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.live.controls-hidden .live-controls:focus-within { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.live.controls-hidden { cursor: none; }
.live-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  font: 650 15px/1 var(--font-ui);
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.live-btn:hover { background: rgb(255 255 255 / .12); }
.live-btn:active { transform: scale(.97); }
.live-btn:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }
.live-btn .icon { width: 18px; height: 18px; flex: none; }
.live-btn[data-act="pause"][data-paused], .live-btn[data-act="calm"][aria-pressed="true"] { background: var(--candle); color: var(--night-900); }
.live-btn--golive { background: var(--party); color: var(--night-950); }       /* white on the party pink is 3.3:1 */
.live-btn--golive:hover { background: color-mix(in srgb, var(--party) 85%, #fff); }
.live-btn--golive .live-chip__dot { background: var(--night-950); box-shadow: none; }
/* On a wide screen "Back to live" hangs off the bar instead of sitting in it. It appears the moment the show is paused or stepped,
   and in the flow it widened the centred bar by its own width: every button slid 60 px away from under the pointer, so the click
   that paused could not be followed in place by the click that plays. (A phone keeps it in the row: there is no room beside the
   bar, and above it the pill would cover the bottom of a long message; a finger follows a moving button.) */
@media (min-width: 768px) and (min-aspect-ratio: 4/5) and (min-height: 501px) {
  .live-btn--golive { position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; }
}
.live-btn--golive { white-space: nowrap; }
@media (max-width: 360px) { .live-btn--golive { white-space: normal; line-height: 1.05; } }       /* 320 px: two lines, or the bar would not fit */

/* ── Sponsor units (§5.4) ──────────────────────────────────────────────────────────────────────────────── */
/* z-index 5: above the controls bar (4), so a sponsor note that opens over it is never covered by it. */
.live-presenter { position: absolute; left: var(--live-pad-x); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 5; max-width: 240px; }
.live-rail { display: none; }
.live-ad { position: relative; color: var(--ink); font-family: var(--font-ui); }
.live-ad a { color: inherit; text-decoration: none; }
.live-ad__link { display: flex; flex-direction: column; gap: 6px; }
.live-ad__chip {
  align-self: flex-start;
  font: 700 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .14); color: var(--ink-2);
}
/* The §5.4 ⓘ: a disclosure button; its note shows on hover, keyboard focus or a tap (aria-expanded). */
.live-ad__info {
  position: absolute; top: 6px; right: 6px;
  display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%;
  font: italic 700 11px/1 Georgia, serif; color: var(--ink-2);
  background: transparent; border: 1px solid rgb(255 255 255 / .3); cursor: pointer;
}
.live-ad__info:hover, .live-ad__info[aria-expanded="true"] { background: rgb(255 255 255 / .14); color: var(--ink); }
.live-ad__info:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }
.live-ad__tip {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 6;
  width: min(300px, calc(100vw - 32px));
  padding: 10px 12px; border-radius: var(--radius-s);
  /* Nearly opaque: the note sits over the stage's text and must stay readable there. */
  background: color-mix(in srgb, var(--night-900) 96%, transparent);
  border: 1px solid rgb(255 255 255 / .22);
  box-shadow: 0 8px 28px rgb(0 0 0 / .45);
  font: 500 12px/1.4 var(--font-ui); color: var(--ink); text-align: start;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  pointer-events: none;
}
.live-ad__info:hover + .live-ad__tip, .live-ad__info:focus-visible + .live-ad__tip, .live-ad__info[aria-expanded="true"] + .live-ad__tip {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto;
}
/* The presenter badge sits at the left edge of the screen: its note opens to the right, never off-screen. */
.live-ad--presenter .live-ad__tip { right: auto; left: 0; }
.live-ad--presenter {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 8px 34px 8px 14px;
  background: var(--live-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--radius-m);
}
.live-ad--presenter .live-ad__link { flex-direction: column; align-items: flex-start; gap: 3px; }
.live-ad__label { font: 700 10px/1.1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
/* A sponsor logo is uploaded for a light plate (ads/media.ts: at least 480 px wide; /g and the ad units give it one), so it
   gets one here too: a dark wordmark on transparent vanished on the glass. The minimum size keeps the 1×1 dev logo visible. */
.live-ad__logo { box-sizing: content-box; background: #fff; padding: 4px 8px; border-radius: 8px; min-width: 28px; min-height: 22px; object-fit: contain; }
.live-ad--presenter .live-ad__logo { max-height: 30px; max-width: 132px; width: auto; height: auto; }
.live-ad__brand { font: 800 16px/1.1 var(--font-display); color: var(--live-brand, var(--ink)); overflow-wrap: anywhere; }
.live-ad--presenter.live-ad--house { flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 14px; }
.live-ad--house .live-ad__headline { font: 650 13px/1.25 var(--font-ui); margin: 0; }
.live-ad--house .live-ad__body { font: 500 14px/1.35 var(--font-ui); color: var(--ink-2); margin: 0; }
.live-ad--house .live-ad__cta { font: 700 12px/1.2 var(--font-ui); color: var(--candle); }
.live-ad--placeholder { padding: 10px 14px; border: 1px dashed rgb(255 255 255 / .35); border-radius: var(--radius-s); font: 600 12px/1.3 var(--font-ui); color: var(--ink-2); background: var(--live-glass); }
.live-ad--interlude {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: min(84vw, 520px); max-width: min(92vw, 760px);
  margin-top: 1vh; padding: 16px 28px 20px;
  background: color-mix(in srgb, var(--night-800) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--live-brand, var(--candle)) 45%, transparent);
  border-radius: var(--radius-l);
  text-align: center;
}
.live-ad--interlude .live-ad__chip { align-self: center; }
.live-ad--interlude .live-ad__link { align-items: center; }
.live-ad__gift { margin: 0; font: 600 clamp(13px, 2vh, 22px)/1.3 var(--font-ui); color: var(--ink-2); }
.live-ad--interlude .live-ad__brand { font-size: clamp(20px, 4vh, 48px); }
.live-ad--interlude .live-ad__logo { max-height: clamp(40px, 8vh, 96px); width: auto; }
.live-ad__tagline, .live-ad--interlude .live-ad__headline { font: 600 clamp(13px, 2.2vh, 26px)/1.3 var(--font-ui); color: var(--ink); }
.live-ad--interlude .live-ad__cta, .live-ad--rail .live-ad__cta { font: 700 14px/1 var(--font-ui); color: var(--live-brand, var(--candle)); }
.live-ad--interlude.live-ad--house .live-ad__headline { font: 700 clamp(16px, 3vh, 34px)/1.2 var(--font-display); margin: 0; color: var(--ink); }

@media (min-width: 1600px) {
  .live[data-rail]:not(.is-fullscreen) .live-rail {
    display: block;
    position: absolute; right: var(--live-pad-x); top: 50%; z-index: 5;
    width: 300px;
    transform: translateY(-50%);
  }
  /* The rail's room is kept on BOTH sides of the stage, so the greeting stays on the screen's centre line: the sky's art (the
     Neon sun, the grid's vanishing point, the Gala fan) is centred on the screen, and a stage pushed left of it by the
     rail's padding sat 180 px off its own backdrop at 1920 px. The left room is where the presenter badge lives. */
  .live[data-rail]:not(.is-fullscreen) .live-seg { padding-inline: calc(300px + 2 * var(--live-pad-x)); }
  .live-ad--rail {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px;
    background: var(--live-glass);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / .14);
    border-radius: var(--radius-m);
  }
  .live-ad--rail .live-ad__image { width: 100%; height: auto; border-radius: var(--radius-s); }
}

/* Wide screens: a short message leaves room, so the block breathes (bigger gaps, signature and emoji). */
@media (min-width: 768px) and (min-height: 600px) and (min-aspect-ratio: 4/5) {
  .live .live-seg .gcard--stage[data-len="s"] { gap: clamp(10px, 2.6vh, 40px); }
  .live .live-seg .gcard--stage[data-len="s"] .gcard__sender { font-size: clamp(18px, 3.6vh, 48px); }
  .live .live-seg .gcard--stage[data-len="s"] .gcard__emoji { font-size: clamp(36px, 8.5vh, 118px); }
}

/* ── Phones and portrait screens ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 479px) {                                               /* a phone's HUD: wordmark, LIVE, Book a seat; the act counter has no room */
  .live-hud__act { display: none; }
  .live-hud__act:not([hidden]) + .live-hud__book { margin-inline-start: auto; }
}
@media (max-width: 359px) { .live-hud__book-more { display: none; } }
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  /* The dock: what the stage must keep clear at the bottom. The controls bar floats at 62 px above the safe edge and is 56 px tall;
     the presenter badge is under it. The reserve used to be 17 vh (120 px on a 568 px screen, 126 px on a 740 px one): shorter than
     the bar, so the sponsor's card ended under it. It is the bar's top edge and a 12 px gap now, whatever the screen's height. */
  .live { --live-dock: calc(max(14px, env(safe-area-inset-bottom)) + 62px + 56px + 12px); }
  .live-seg { padding: clamp(68px, 11vh, 120px) 18px max(var(--live-dock), clamp(120px, 17vh, 170px)); }
  .live-hud { gap: 6px; }
  .live-hud__date { display: none; }
  .live-hud .wordmark { font-size: 18px; }
  .live-hud__brand { padding: 6px 11px 7px; }
  .live-chip, .live-hud__act { padding: 8px 11px; font-size: 12px; }
  /* one line (the solo note), so it stays clear of the eyebrow that starts right under the HUD on a phone */
  .live-note { padding: 7px 14px; font-size: 13px; }
  .live-controls { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); }
  .live-btn { padding: 0 12px; font-size: 14px; }
  .live-presenter { left: 16px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
  .live-ad--presenter { min-height: 44px; }
  .live-ov__date { font-size: clamp(30px, 7.5vh, 80px); }
  .live-msg__title { font-size: clamp(26px, 5.4vh, 60px); }
  .live-msg--house .live-msg__title, .live-msg--bow .live-msg__title { font-size: clamp(30px, 6.6vh, 72px); }
  .live .live-seg .gcard--stage { gap: clamp(6px, 1.2vh, 14px); }
  .live .live-seg .gcard__milestone, .live .live-seg .gcard__kicker { font-size: clamp(13px, 2vh, 20px); padding: .3em .9em; }
  .live .live-seg .gcard__kicker { letter-spacing: .16em; }
  .live .live-seg .gcard__eyebrow { letter-spacing: .22em; }
  .live .live-seg .gcard__message[data-len="s"] { --live-msg: clamp(20px, 4.2vh, 44px); }
  .live .live-seg .gcard__message[data-len="m"] { --live-msg: clamp(17px, 3.1vh, 30px); }
  .live .live-seg .gcard__message[data-len="l"] { --live-msg: clamp(15px, 2.5vh, 24px); }
}
/* The big act numeral is decoration: on a phone it gives its room to the sponsor's card, which would otherwise be scaled down to
   70 % to fit (its call to action at 10 px). A tablet held upright has the room and keeps its 30 vh. */
@media (max-width: 767px) { .live-act__num { font-size: clamp(64px, 17vh, 160px); } }
@media (max-width: 560px), (orientation: landscape) and (max-height: 500px) {
  /* Icon-only controls (narrow phones, and short landscape screens where the bar floats over the card); the labels stay as
     accessible names. "Back to live" keeps its text. */
  .live-btn:not(.live-btn--golive) { width: 46px; padding: 0; }
  .live-btn:not(.live-btn--golive) .live-btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .live-btn .icon { width: 20px; height: 20px; }
}

/* ── Short landscape screens: a phone held sideways, a browser at 200 % zoom ────────────────────────────────────────────
   The portrait stack (eyebrow, name, age, message, signature) needs more height than 390 px leaves under the HUD and above
   the controls, so the stage used to shrink it to half size (a 280-character message at 8 px). Here the card is two columns:
   the name and its labels on the left, the message and the signature on the right, the HUD is a slim bar, and the controls
   (which fade after 3 s anyway) float over the bottom edge instead of reserving room for themselves. Type stays 14 px or more. */
@media (orientation: landscape) and (max-height: 500px) {
  .live-seg { padding: 50px var(--live-pad-x) 18px; }
  .live-hud { gap: 6px; padding-top: max(8px, env(safe-area-inset-top)); }
  .live-hud__brand { padding: 4px 11px 5px; }
  .live-hud .wordmark { font-size: 16px; }
  .live-hud .wordmark svg { height: 16px; }
  .live-chip, .live-hud__act { padding: 6px 11px; font-size: 11px; }
  .live-hud__book { min-height: 30px; padding: 0 13px; font-size: 12px; }
  .live-note { top: calc(max(8px, env(safe-area-inset-top)) + 40px); padding: 6px 14px; font-size: 13px; }
  /* the bar sits on the right edge, away from the presenter's badge on the left, and above it where they meet on the narrowest
     screens (the badge used to lie over the Play button, so a tap on it was a tap on the sponsor's link) */
  .live-controls { bottom: max(8px, env(safe-area-inset-bottom)); left: auto; right: var(--live-pad-x); z-index: 6; transform: none; }
  .live.controls-hidden .live-controls { transform: translateY(14px); }
  .live.controls-hidden .live-controls:focus-within { transform: none; }
  .live-presenter { left: var(--live-pad-x); bottom: max(8px, env(safe-area-inset-bottom)); max-width: 220px; }
  /* The controls bar and the presenter badge float over the bottom edge here, and fade or hold nothing but the cards' own text, except
     on the interlude: that card is a sponsor's, with a link that must never lie under either of them. It keeps the bar's height
     clear, and its numeral (decoration) is smaller to pay for it. */
  .live-seg--interlude { padding-bottom: calc(max(8px, env(safe-area-inset-bottom)) + 56px + 8px); }
  .live-act__num { font-size: clamp(48px, 15vh, 96px); }
  .live-ad--presenter { min-height: 36px; padding: 5px 30px 5px 10px; }
  .live-ad--presenter.live-ad--house { padding-right: 10px; }
  .live-ad--house .live-ad__headline { font-size: 12px; }
  .live-ad--house .live-ad__cta { font-size: 11px; }

  /* A theme that caps its message for the one-column stage (the Daily Epic: `100% - 50cqw`) would get a column of 1 px in
     this two-column grid, one letter per line: here every message takes its own column. */
  .live .live-seg .gcard--stage[data-theme] .gcard__message { max-inline-size: 100%; }
  .live .live-seg .gcard--stage {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-content: center; align-items: center;
    column-gap: clamp(16px, 4vw, 56px); row-gap: 4px;
    width: min(100%, 1200px);
  }
  .live .live-seg .gcard--stage::before, .live .live-seg .gcard--stage::after { display: none; }
  .live .live-seg .gcard--stage > * { margin: 0; max-width: 100%; }
  .live .live-seg .gcard__eyebrow { grid-column: 1; grid-row: 1; }
  .live .live-seg .gcard__name { grid-column: 1; grid-row: 2; justify-self: center; max-width: 100%; }
  .live .live-seg .gcard__kicker { grid-column: 1; grid-row: 3; justify-self: center; }
  .live .live-seg .gcard__milestone { grid-column: 1; grid-row: 4; justify-self: center; }
  .live .live-seg .gcard__emoji { grid-column: 1; grid-row: 5; justify-self: center; font-size: clamp(26px, 8vh, 44px); }
  .live .live-seg .gcard__message { grid-column: 2; grid-row: 1 / span 4; align-self: center; max-width: 100%; }
  .live .live-seg .gcard__sender { grid-column: 2; grid-row: 5; }
  /* the message has a column to itself, so the name no longer shares its height with it: it may be as tall as a short message's */
  .live .live-seg .gcard__name { font-size: clamp(6vh, calc(44vw / (var(--n, 6) * .62 + 1)), 22vh); }
  /* sizes with the specificity to beat the per-theme rules in card.css (the sketchbook's were 12 px here): 14 px is the floor */
  .live .live-seg .gcard--stage[data-theme] .gcard__message[data-len="s"] { font-size: clamp(20px, 6.4vh, 34px); }
  .live .live-seg .gcard--stage[data-theme] .gcard__message[data-len="m"] { font-size: clamp(17px, 5.2vh, 26px); }
  .live .live-seg .gcard--stage[data-theme] .gcard__message[data-len="l"] { font-size: clamp(14px, 4vh, 20px); }
  .live .live-seg .gcard--stage[data-theme] .gcard__sender { font-size: clamp(14px, 4vh, 20px); }
  .live .live-seg .gcard--stage[data-theme] .gcard__eyebrow { font-size: clamp(11px, 3vh, 15px); letter-spacing: .2em; }
  .live .live-seg .gcard--stage[data-theme] .gcard__milestone, .live .live-seg .gcard--stage[data-theme] .gcard__kicker { font-size: clamp(12px, 3.2vh, 16px); }
  /* the house card, the call to action and the other single-column cards keep their stack; they are short */
}

/* ── Reduced motion and Calm mode (§3.6): no particles, 250 ms crossfades, no staggers or counters ─────── */
.live[data-motion="reduce"] .live-seg *,
.live[data-motion="reduce"] .live-seg *::before,
.live[data-motion="reduce"] .live-seg *::after { animation: none !important; }
.live[data-motion="reduce"] .live-rocket, .live[data-motion="reduce"] .live-bloom { display: none; }
.live[data-motion="reduce"] .live-seg:not(.is-settled) { animation: live-in 250ms linear calc(0ms - var(--o)) both, live-fade-out 250ms linear calc(var(--ms, 12000ms) - 250ms - var(--o)) forwards; }
.live[data-motion="reduce"] .live-seg.is-settled { animation: live-fade-out 250ms linear calc(var(--ms, 12000ms) - 250ms - var(--o)) forwards; }
.live[data-motion="reduce"] .live-seg:is(.live-seg--ceremony, .live-seg--intermission, .is-ssr) { animation: none; }
.live[data-motion="reduce"] .live-seg.is-leaving { animation: live-fade-out 250ms linear forwards; }
.live[data-motion="reduce"] .live-sky__beams i,
.live[data-motion="reduce"] .live-sky__stars::after,
.live[data-motion="reduce"] .live-chip__dot { animation: none; }
.live[data-motion="reduce"] .live-sky__layer { transition-duration: 250ms; }
.live[data-motion="reduce"] .live-sky__lights { transition-duration: 250ms; }
/* The progress hairline is a still, dim brand strip instead of a bar that keeps creeping across the screen. */
.live[data-motion="reduce"] .live-progress i { animation: none; transform: none; opacity: .35; }
@keyframes live-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .live-sky__beams i, .live-sky__stars::after, .live-chip__dot { animation: none; }
  .live-rocket, .live-bloom { display: none; }
  .live-progress i { animation: none; transform: none; opacity: .35; }
}

/* Paused: everything freezes where it is (CSS animations; JS beats are cleared by the stage). */
.live.is-paused *, .live.is-paused *::before, .live.is-paused *::after { animation-play-state: paused !important; }

/* Forced colours: decorative layers go (§3.6). */
@media (forced-colors: active) {
  .live-sky, .live-fx, .live-rocket, .live-bloom, .live-progress { display: none; }
  .live .live-seg .gcard__name { text-shadow: none; }
}

/* No JavaScript: today's list, readable and scrollable over the static stage. */
.live-noscript {
  position: absolute; inset: 12vh 0 0; z-index: 5;
  overflow: auto;
  padding: var(--space-6) var(--gutter);
  background: color-mix(in srgb, var(--night-900) 94%, transparent);
}
.live-noscript h2 { margin-bottom: var(--space-4); }
.live-noscript ol { display: grid; gap: var(--space-4); max-width: 760px; }
.live-noscript li { padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface); }
.live-noscript__name { font: italic 400 1.8rem/1.1 var(--font-name); }
.live-noscript__msg { white-space: pre-line; color: var(--text-2); }
.live-noscript__from { font-size: var(--step-small); color: var(--text-3); }

/* ── The booking Ticket's "Preview on the big screen" (client/book/stage-preview.ts): this sheet, loaded on demand, in a dialog ── */
.live-preview {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--night-950); color: var(--ink);
  overflow: hidden;
}
.live-preview::backdrop { background: var(--night-950); }
html:has(.live-preview[open]) { overflow: hidden; }               /* the page behind does not scroll */
.live-preview .live-hud__date { margin-inline-end: auto; }
.live-preview .live-btn:focus-visible { outline-offset: -2px; }
