/* Together — shared theme
   Direction: warm, ceremonial, unhurried. World: invitation card stock, marigold, brass, kumkum.
   Quiet warm-neutral chrome, one accent per theme, richness kept for the live stage and blessing cards.
   Signature: a thin brass rule (under the couple's names, on the left edge of blessing cards). */
:root {
  --bg: #f7f4ee; --surface: #fdfbf7; --raised: #efe9df; --deep: #ece5d9;
  --text: #1f1b16; --text-2: #5e554a; --muted: #6b6256;
  --line: rgba(31, 27, 22, .09); --line-control: rgba(31, 27, 22, .16); --line-input: rgba(31, 27, 22, .5);
  --accent: #9b2c2c; --accent-ink: #fff; --accent-soft: rgba(155, 44, 44, .07);
  --brass: #b08236;
  --ok: #1b6c3d; --warn: #8a5a00; --bad: #b42318;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Noto Serif Devanagari", "Noto Serif Telugu", "Noto Serif Tamil", "Noto Serif Kannada", "Noto Serif Malayalam", "Noto Serif Bengali", "Noto Serif Gujarati", "Noto Serif Gurmukhi", "Noto Naskh Arabic", Georgia, serif;
  --r-control: 8px; --r-card: 14px; --r-panel: 16px;
}
[data-theme="rose"] { --accent: #983656; --accent-soft: rgba(152, 54, 86, .07); }
[data-theme="ivory"] { --accent: #3d5c44; --accent-soft: rgba(61, 92, 68, .08); }
/* Production + venue screens: dark warm ramp, depth from surface steps */
.dark-stage {
  --bg: #161513; --surface: #1c1a18; --raised: #262421; --deep: #12110f;
  --text: #efe9de; --text-2: #aaa398; --muted: #9a948a;
  --line: rgba(239, 233, 222, .09); --line-control: rgba(239, 233, 222, .18); --line-input: rgba(239, 233, 222, .4);
  --accent-soft: rgba(239, 233, 222, .06);
  --ok: #4cc38a; --warn: #e0a84a; --bad: #f0686c;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/22px var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--text); }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 28px; }
h3 { font-size: 16px; line-height: 24px; }
h4 { font-size: 13px; line-height: 20px; color: var(--text-2); }
.names { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1.04; letter-spacing: -.02em; color: var(--text); }
.names .amp { color: var(--brass); padding: 0 .08em; }
.serif { font-family: var(--serif); font-weight: 400; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; }
p + p { margin-top: 8px; }
.muted { color: var(--muted); }
.secondary { color: var(--text-2); }
.small { font-size: 13px; line-height: 20px; }
.center { text-align: center; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.spread { justify-content: space-between; }
.stack-4 > * + * { margin-top: 4px; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

/* Icons — lucide, one size, one stroke, colour of their text role */
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-18 { width: 18px; height: 18px; vertical-align: -4px; }
.i-20 { width: 20px; height: 20px; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.narrow { max-width: 560px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head p { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid > *, .col > *, .dash > *, .prod > * { min-width: 0; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 640px) { .wrap { padding: 16px 16px 48px; } .card { padding: 16px; } }

/* Buttons — control radius, named transitions only */
button, .btn {
  font: 500 14px/20px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line-control);
  height: 36px; padding: 0 16px; border-radius: var(--r-control); cursor: pointer; text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
button:hover, .btn:hover { background: var(--raised); }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.dark-stage .btn-primary { background: var(--text); color: var(--deep); }
.dark-stage .btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn-danger { color: var(--bad); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-icon { width: 32px; padding: 0; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Forms */
input, textarea, select {
  font: 400 15px/22px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line-input);
  border-radius: var(--r-control); padding: 8px 12px; width: 100%; transition: border-color 150ms var(--ease);
}
input, select { height: 40px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { font-weight: 500; font-size: 14px; display: block; margin-bottom: 6px; }
label .muted { font-weight: 400; }
.field + .field { margin-top: 16px; }
.hint { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-child { border-top: 0; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check b { font-weight: 500; display: block; }
.check span span { color: var(--muted); font-size: 13px; }

/* Status — dot + text, no glowing pills */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.ok::before { background: var(--ok); }
.status.warn::before { background: var(--warn); }
.status.bad::before { background: var(--bad); }
.status.live::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dark-stage .status.live::before { background: #f0686c; box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--raised); color: var(--text-2); }
.tag.accent { background: var(--accent); color: var(--accent-ink); }
.tag.on-video { position: absolute; background: rgba(18, 17, 15, .72); color: #fff; }
.tag.on-video.accent { background: var(--accent); }
.dark-stage .tag.on-video.accent { background: #b42318; }

/* Hero / invitation */
.hero { text-align: center; padding: 64px 24px 40px; }
.hero .eyebrow { font-size: 14px; color: var(--text-2); }
.hero .names { margin-top: 12px; }
.rule { width: 48px; height: 1px; background: var(--brass); margin: 24px auto; border: 0; }
.hero .meta { color: var(--text-2); font-size: 15px; }
.hero .meta + .meta { margin-top: 4px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .hero { padding: 48px 16px 32px; } }

.countdown { display: flex; gap: 8px; justify-content: center; }
.countdown div { background: var(--raised); border-radius: var(--r-control); padding: 12px 8px; min-width: 72px; text-align: center; }
.countdown b { font-size: 28px; line-height: 1; font-weight: 500; display: block; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; line-height: 16px; color: var(--text-2); display: block; margin-top: 6px; }

/* Video stage — the main moment */
.stage { position: relative; background: #12110f; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16/9; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #12110f; display: block; }
.stage .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #d8cfc2; padding: 24px; }
.stage .placeholder p:first-child { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: #efe9de; }
.stage .placeholder p + p { margin-top: 8px; font-size: 14px; color: #aaa398; }
.stage .tag.on-video { left: 12px; top: 12px; }
.stage .pip { position: absolute; right: 12px; bottom: 12px; width: 26%; min-width: 120px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.4); background: #000; }
.stage .pip video { object-fit: cover; }
.vlabel { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 12px; font-weight: 500; background: rgba(18, 17, 15, .72); padding: 2px 8px; border-radius: 6px; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 0; flex-wrap: wrap; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { position: relative; aspect-ratio: 16/9; background: #12110f; border-radius: 10px; overflow: hidden; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .tag.on-video { left: 8px; top: 8px; }
.tile .tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.tile .tools button { height: 28px; padding: 0 8px; font-size: 12px; background: rgba(18, 17, 15, .72); color: #fff; border-color: transparent; }
.tile .tools button:hover { background: rgba(18, 17, 15, .9); }
.mirror { transform: scaleX(-1); }

/* Reactions */
.react-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.react-bar button { height: 36px; padding: 0 12px; color: var(--text-2); }
.react-bar button:hover { color: var(--accent); }
.float-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.float-r { position: absolute; bottom: 24px; color: var(--accent); opacity: 0; animation: rise 2.4s var(--ease) forwards; }
.float-r .i { width: 22px; height: 22px; stroke-width: 1.75; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-40vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .float-r { display: none; } }

/* Lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); }
.item .who { font-weight: 500; }
.meta { font-size: 13px; line-height: 20px; color: var(--muted); }
.scroll { max-height: 440px; overflow: auto; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--line); }
.rowline:first-child { border-top: 0; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* Blessings — second moment, set like an invitation card with the brass rule */
.blessing-card { border-left: 2px solid var(--brass); padding: 4px 0 4px 16px; }
.blessing-card + .blessing-card { margin-top: 16px; }
.blessing-card q, .quote { font-family: var(--serif); font-size: 20px; line-height: 28px; color: var(--text); quotes: "\201C" "\201D"; display: block; }
.blessing-card .meta { margin-top: 4px; }
.featured { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.featured .eyebrow { font-size: 13px; color: var(--text-2); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.featured .blessing-card q { font-size: 28px; line-height: 36px; }
@media (max-width: 640px) { .featured { padding: 20px; } .featured .blessing-card q { font-size: 22px; line-height: 30px; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 6px 0 6px 24px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-input); background: var(--surface); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: -4px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--muted); }
.timeline li.done::before { background: var(--muted); border-color: var(--muted); }
.timeline li.current { color: var(--text); font-weight: 500; }
.timeline li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Toasts / banners */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: #1f1b16; color: #efe9de; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-float); font-size: 14px; animation: toastIn 220ms var(--ease); }
.toast .i { margin-top: 3px; color: #c9b99f; }
.toast b { display: block; font-weight: 500; font-size: 13px; color: #c9b99f; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.banner .i { margin-top: 3px; color: var(--text-2); }
.banner b { color: var(--text); font-weight: 500; }
.banner.announce { border-left: 2px solid var(--accent); }
.conn-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 55; width: auto; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; border-radius: 0; background: none; height: 40px; padding: 0 12px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); background: none; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery > .empty { grid-column: 1 / -1; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--raised); }
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery figcaption { font-size: 13px; line-height: 20px; padding: 8px; color: var(--text-2); }
.gallery figcaption b { font-weight: 500; color: var(--text); }

/* Device check */
.meter { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 80ms linear; }
.preview { aspect-ratio: 16/9; background: #12110f; border-radius: 10px; overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; }

/* Family photo countdown */
.overlay { position: fixed; inset: 0; background: rgba(18, 17, 15, .82); z-index: 70; display: grid; place-items: center; color: #efe9de; text-align: center; padding: 24px; }
.overlay .big { font-family: var(--serif); font-size: clamp(96px, 20vw, 176px); line-height: 1; font-variant-numeric: tabular-nums; margin: 16px 0; }
.overlay p { color: #c9b99f; }
.offer { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 75; display: flex; gap: 12px; align-items: center; background: #1f1b16; color: #efe9de; padding: 8px 8px 8px 16px; border-radius: 12px; box-shadow: var(--shadow-float); font-size: 14px; }
.offer button { background: transparent; color: #efe9de; border-color: rgba(239,233,222,.24); }
.offer button.btn-primary { background: #efe9de; color: #1f1b16; border-color: transparent; }

/* App chrome (coordinator / production / organizer) */
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 24px; min-height: 56px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.topbar .brand { font-size: 16px; font-weight: 600; color: var(--text); }
.topbar .ctx { color: var(--text-2); font-size: 14px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .label { font-size: 13px; line-height: 20px; color: var(--text-2); }
.stat .value { font-size: 24px; line-height: 32px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .status { margin-top: 8px; }
.kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; line-height: 18px; color: var(--text-2); background: var(--raised); padding: 6px 8px; border-radius: 6px; word-break: break-all; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ------------------------------------------------------------------ mobile and touch */
@media (max-width: 640px) {
  /* 16px stops iOS from zooming into fields */
  input, textarea, select { font-size: 16px; }
  h1 { font-size: 24px; }
  .topbar { padding: 8px 16px; gap: 8px 12px; min-height: 52px; }
  .topbar .ctx { display: none; }
  .topbar > * { min-width: 0; }
  .topbar .grow { display: none; }
  .topbar .tools-row { flex: 1 1 100%; min-width: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .topbar .tools-row > * { flex: none; }
  #phaseBtns { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; }
  .tiles { grid-template-columns: 1fr; }
  .rowline { flex-wrap: wrap; }
  .rowline .actions { width: 100%; justify-content: flex-start; }
  .countdown div { min-width: 64px; padding: 12px 6px; }
  .countdown b { font-size: 24px; }
  .card-head p { width: 100%; }
  .react-bar { flex-wrap: nowrap; overflow-x: auto; }
  .react-bar button span { display: none; }
  .react-bar button { width: 44px; padding: 0; flex: none; }
  .stage-bar .btn-ghost span { display: none; }
  .hide-sm { display: none !important; }
}
@media (pointer: coarse) {
  button, .btn { min-height: 40px; }
  .btn-sm { min-height: 40px; }
  .btn-icon { width: 40px; }
  .check input { width: 22px; height: 22px; }
}
/* Phones: keep the live video in view while scrolling to write a blessing */
@media (max-width: 899px) {
  .sticky-stage { position: sticky; top: 0; z-index: 25; margin: 0 -16px; padding: 8px 16px; background: var(--bg); }
  .sticky-stage .card { padding: 8px; }
}
.conn-banner, .offer, .self { margin-bottom: env(safe-area-inset-bottom); }
.qr { width: 200px; height: 200px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: block; }
.shared-on { color: var(--ok); }

/* ------------------------------------------------------------------ splash (server-rendered, names in first paint) */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--text); text-align: center; transition: opacity 360ms var(--ease), visibility 0s linear 360ms; }
.splash.splash-dark { --bg: #161513; --text: #efe9de; --text-2: #aaa398; --muted: #9a948a; background: #161513; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-inner { width: min(560px, 100%); }
.splash-mono { position: relative; width: 112px; height: 112px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; gap: 2px; font-family: var(--serif); color: var(--text); }
.splash-mono .m-a, .splash-mono .m-b { font-size: 40px; line-height: 1; }
.splash-mono .m-amp { font-size: 22px; color: var(--brass); margin: 0 2px; transform: translateY(2px); }
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash-ring circle { fill: none; stroke: var(--brass); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring-draw 1400ms var(--ease) 120ms forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.splash-eyebrow { font-size: 14px; color: var(--text-2); }
.splash-names { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 12px 0 0; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.splash-names .amp { color: var(--brass); padding: 0 .06em; }
.splash-names.sz-l { font-size: clamp(44px, 11vw, 72px); }
.splash-names.sz-m { font-size: clamp(36px, 8.5vw, 56px); }
.splash-names.sz-s { font-size: clamp(30px, 7vw, 44px); letter-spacing: -.01em; }
.splash-names.sz-xs { font-size: clamp(26px, 6vw, 36px); letter-spacing: 0; }
.splash-when { margin-top: 16px; color: var(--text-2); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.splash-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.splash-dark .splash-live { background: #f0686c; box-shadow: none; }
.splash-inner > .splash-eyebrow, .splash-names, .splash-when { opacity: 0; transform: translateY(8px); animation: rise-in 600ms var(--ease) forwards; }
.splash-names { animation-delay: 120ms; }
.splash-when { animation-delay: 240ms; }
@keyframes rise-in { to { opacity: 1; transform: none; } }
/* Loader: a thin brass line, the same everywhere something is loading */
.loader, .splash-loader { position: relative; width: 120px; height: 2px; margin: 32px auto 0; background: var(--line); border-radius: 1px; overflow: hidden; }
.loader > i, .splash-loader > i { position: absolute; top: 0; bottom: 0; width: 40%; background: var(--brass); border-radius: 1px; animation: loader-slide 1300ms var(--ease) infinite; }
@keyframes loader-slide { 0% { left: -40%; } 100% { left: 100%; } }
.loader.inline { margin: 12px 0 0; }
.dark-stage .loader, .stage .loader { background: rgba(239, 233, 222, .14); }
.splash-status { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 20px; }
.splash-help { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.splash.offline .splash-loader > i { animation: none; left: 0; width: 100%; opacity: .25; }
.splash.done .splash-loader > i { animation: none; left: 0; width: 100%; transition: width 200ms; }
/* Returning in the same session: no ceremony, just a quick fade */
.splash.splash-quick .splash-ring circle { animation: none; stroke-dashoffset: 0; }
.splash.splash-quick .splash-eyebrow, .splash.splash-quick .splash-names, .splash.splash-quick .splash-when { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .splash-ring circle { animation: none; stroke-dashoffset: 0; }
  .splash-eyebrow, .splash-names, .splash-when { animation: none !important; opacity: 1 !important; transform: none !important; }
  .loader > i, .splash-loader > i { animation: none; left: 30%; width: 40%; opacity: .6; }
  .splash { transition: none; }
}
@media (max-height: 560px) { .splash-mono { width: 80px; height: 80px; margin-bottom: 16px; } .splash-mono .m-a, .splash-mono .m-b { font-size: 28px; } .splash-loader { margin-top: 20px; } }
