﻿/* Moonlit Archive: the original portal's content and interactions in a new visual language. */
:root,
[data-theme="columbina"] {
  color-scheme: dark;
  --p: 81% 0.075 297;
  --pc: 19% 0.03 265;
  --s: 80% 0.065 245;
  --sc: 19% 0.03 265;
  --a: 91% 0.025 285;
  --ac: 19% 0.03 265;
  --b1: 17% 0.025 265;
  --b2: 21% 0.028 265;
  --b3: 27% 0.035 265;
  --bc: 93% 0.015 280;
  --n: 23% 0.03 265;
  --nc: 93% 0.015 280;
  --sparx-pink: #c9b9ed;
  --sparx-amber: #99c5e8;
  --sparx-yellow: #e4e5f4;
  --sparx-cyan: #99c5e8;
  --sparx-purple: #a79bc9;
  --sparx-dark: #0b101d;
  --sparx-border: #c4ccef24;
  --moon-line: #c4ccef24;
  --moon-surface: #111927;
  --moon-muted: #9aa8bd;
  --moon-serif: "Cormorant Garamond", Georgia, serif;
  --moon-sans: Manrope, sans-serif;
  --moon-radius-panel: 6px;
  --moon-radius-control: 4px;
  --rounded-box: var(--moon-radius-panel);
  --rounded-btn: var(--moon-radius-control);
  --rounded-badge: var(--moon-radius-control);
}
:root {
  --moon-header-height: 64px;
}
html {
  scroll-padding-top: var(--moon-header-height);
  overflow-x: clip;
}
body {
  background: #0b101d;
  overflow-x: clip;
}
.sparxie-theme-root {
  background:
    radial-gradient(ellipse at 85% 5%, #455f8920, transparent 28%), #0b101d;
  font-family: var(--moon-sans);
  line-height: 1.7;
}
.sparxie-theme-root :is(.font-body, .font-mono, .font-heading) {
  font-family: var(--moon-sans);
}
.sparxie-grid-overlay {
  display: none;
}
.sparxie-ambient-glow {
  opacity: 0.3;
}
.sparxie-theme-root > .fixed.inset-0 > div:first-child {
  opacity: 0.025;
}
.sparxie-theme-root
  :is(div, article, aside, blockquote, form, dialog):is(
    .border,
    .border-2,
    .border-l-2,
    .border-l-4
  ):not(.rounded-full) {
  border-radius: var(--moon-radius-panel);
}
.sparxie-theme-root
  :is(
    button,
    input:not([type="range"]),
    textarea,
    select,
    .badge,
    .rounded-none,
    span.border,
    a.border
  ):not(.rounded-full):not(.btn-circle) {
  border-radius: var(--moon-radius-control);
}
.sparxie-theme-root :is(button, a):focus-visible {
  outline: 2px solid #c9b9ed;
  outline-offset: 4px;
}
.sparxie-theme-root .btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-width: 1px;
  box-shadow: none;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.sparxie-theme-root .btn-primary {
  background: #deddec;
  border-color: #deddec;
  color: #141a2a;
}
.sparxie-theme-root .btn-primary:hover {
  background: #c9b9ed;
  border-color: #c9b9ed;
}
.sparxie-theme-root .btn-primary:disabled {
  opacity: 0.35;
}
.sparxie-theme-root .btn-primary svg {
  fill: none;
}
.sparxie-theme-root .btn-outline {
  color: #c5cce0;
  border-color: #c4ccef44;
}
.sparxie-theme-root .btn-outline:hover {
  background: #c9b9ed15;
  color: #eeeafa;
}
.sparxie-theme-root .btn-primary.btn-outline {
  color: #c9b9ed;
  border-color: #c9b9ed55;
  background: transparent;
}
.sparxie-theme-root .btn-primary.btn-outline:hover {
  color: #eeeafa;
  background: #c9b9ed15;
}

/* Quiet utility bar and an editorial navigation, without removing any controls. */
.sparxie-theme-root header {
  border-bottom: 1px solid var(--moon-line);
  background: #0b101d;
  backdrop-filter: blur(20px);
}
.sparxie-theme-root header > div:first-child {
  background: transparent;
  border-color: var(--moon-line);
}
.sparxie-theme-root header .max-w-7xl {
  max-width: 1376px;
}
.sparxie-theme-root header img {
  border-radius: 50%;
}
.sparxie-theme-root header a[href="#overview"] .font-heading {
  font-family: var(--moon-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.sparxie-theme-root header a[href="#overview"] p {
  font-size: 8px;
  letter-spacing: 0.13em;
  margin-top: 1px;
}
.sparxie-theme-root header a[href="#overview"] .badge {
  background: transparent;
  border: 0;
  color: #c9b9ed;
}
.sparxie-theme-root header nav {
  gap: 2px;
}
.sparxie-theme-root header nav a {
  font-size: 11px;
  font-weight: 500;
  border: 0;
  background: transparent;
  padding: 12px 11px;
  color: #aeb8cc;
}
.sparxie-theme-root header nav a:hover {
  color: #ede9f8;
  background: #c9b9ed0a;
}
.sparxie-theme-root header nav a[aria-current="location"] {
  color: #e4dafa;
  background: #c9b9ed14;
  box-shadow: inset 0 -2px #c9b9ed;
}
[data-danmaku-bar] {
  border: 0;
  border-bottom: 1px solid var(--moon-line);
  background: #0d1421;
}
[data-danmaku-bar] [class*="border-amber-400"] {
  border-color: #c4ccef30;
  background: #172031;
  box-shadow: none;
}
[data-danmaku-bar] :is(span, div, p) {
  font-family: var(--moon-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

/* The live room opens the site. The character dossier begins chapter 01. */
#overview {
  border-top: 1px solid var(--moon-line);
  padding: 20px 32px;
  min-height: 0;
  background: linear-gradient(180deg, transparent 36%, #0b101d 68%);
}
#overview > div {
  max-width: 1264px;
  margin-inline: auto;
  padding: 0;
}
.moon-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: 24px;
  row-gap: 0;
  align-items: stretch;
  min-height: min(650px, calc(100svh - var(--moon-header-height) - 52px));
}
.moon-profile {
  grid-column: 1 !important;
  padding-block: 16px;
  z-index: 2;
  min-width: 0;
}
.moon-profile > :not(:first-child) {
  margin-top: 12px;
}
.moon-profile,
.moon-profile [class*="transition-all"] {
  transition-property:
    color, background-color, border-color, box-shadow, opacity;
}
.moon-profile > div:first-child::before {
  content: "01 /";
  color: #c9b9ed;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-right: 8px;
}
.moon-profile > div:first-child > span {
  border: 0;
  padding: 0 16px 0 0;
  background: transparent;
  color: #aabbd4;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.moon-profile > div:first-child > span:first-child {
  color: #c9b9ed;
}
#overview h1 {
  font-family: var(--moon-serif);
  font-size: clamp(64px, 6vw, 88px);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #e4e5f4;
  text-shadow: none;
}
#overview h1::before {
  content: "";
  display: block;
  width: 38px;
  height: 20px;
  margin-bottom: 10px;
  background: url("./moon-crest.svg") center / contain no-repeat;
}
#overview div:has(> h1) {
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 15px;
  row-gap: 14px;
}
#overview h1 + div {
  padding-bottom: 9px;
  opacity: 0.8;
}
#overview h1 + div img {
  height: 12px;
  width: auto;
}
#overview p.text-secondary {
  font-family: var(--moon-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 8px;
}
#overview .border-l-4:has(p) {
  border: 0;
  border-left: 1px solid #c9b9ed66;
  background: transparent;
  padding: 3px 0 3px 20px;
  border-radius: 0;
}
#overview .border-l-4:has(p) > p {
  font-size: 12px;
  line-height: 1.9;
  font-weight: 400;
  color: #b5bed1;
}
#overview .border-l-4:has(p) .font-mono {
  font-size: 9px;
}
#overview .grid-cols-3 {
  gap: 10px;
}
#overview .grid-cols-3 > div {
  background: #111927b3;
  border: 1px solid var(--moon-line);
  padding: 12px;
}
#overview .grid-cols-3 .text-slate-500 {
  color: #9aa8bd;
  font-size: 8px;
  letter-spacing: 0.08em;
}
#overview .grid-cols-3 .font-bold {
  font-weight: 500;
}
#overview .grid-cols-3 .truncate {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
#overview .backdrop-blur-sm.border {
  background: #11192799;
  border-color: var(--moon-line);
  padding: 14px;
}
#overview .backdrop-blur-sm.border .text-slate-500 {
  color: #9aa8bd;
}
#overview .moon-profile > div:has(> a[href="#skills"]) {
  padding-top: 6px;
  flex-wrap: wrap;
  gap: 12px;
}
#overview .moon-profile > div:has(> a[href="#skills"]) .btn {
  min-height: 40px;
  height: auto;
  padding: 10px 18px;
  font-size: 10px;
}
.moon-portrait {
  grid-column: 2;
  position: relative;
  margin: 0;
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}
.moon-portrait img {
  width: 116%;
  height: 110%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  position: absolute;
  left: -8%;
  top: -5%;
  z-index: 1;
  mask-image: linear-gradient(
    180deg,
    transparent,
    black 8%,
    black 76%,
    transparent 98%
  );
}
.moon-portrait-orbit {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid #c4ccef20;
  border-radius: 50%;
  box-shadow:
    0 0 0 20px #c4ccef04,
    0 0 0 42px #c4ccef04;
  background: radial-gradient(circle, #4868971c, transparent 68%);
}
.moon-portrait figcaption {
  position: absolute;
  bottom: 35px;
  right: 50px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: #9aa8bd;
  z-index: 2;
}
.moon-theatre {
  grid-column: 1 !important;
  min-width: 0;
  margin-top: 0;
}
.moon-theatre-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  grid-column: 1 / -1;
  margin: 0;
}
.moon-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #a9b7d0;
  margin-bottom: 10px;
}
.sparxie-theme-root .moon-theatre-heading h2 {
  font-family: var(--moon-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.moon-theatre-caption {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #9aa8bd;
  padding-bottom: 5px;
}
#stream-player-container {
  padding: 10px;
  border: 1px solid #c4ccef35;
  border-radius: var(--moon-radius-panel);
  background: #111927;
  box-shadow: 0 25px 65px #03071040;
  overflow: hidden;
}
#stream-player-container > div:first-of-type {
  border-bottom-color: var(--moon-line);
}
#stream-player-container > .bg-sparx-dark {
  background: #111927;
  padding: 8px 6px 12px;
}
#stream-player-container:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
#stream-player-container .bg-gradient-to-r.btn {
  background: #37334e;
  border-color: #c9b9ed55;
  box-shadow: none;
}
#stream-player-container .youtube-media {
  border-radius: 4px;
}
.moon-live-section {
  --live-accent: #c9b9ed;
  --live-glow: #c9b9ed18;
  padding: 24px 32px 36px;
  border-top: 1px solid var(--moon-line);
  background:
    radial-gradient(ellipse at 70% 20%, var(--live-glow), transparent 65%),
    #0b101d;
  transition: background-color 0.6s;
}
.moon-live-section:has([data-accent="aqua"]) {
  --live-accent: #8cddd9;
  --live-glow: #55cfc522;
}
.moon-live-section:has([data-accent="rose"]) {
  --live-accent: #eca6ce;
  --live-glow: #d26ba522;
}
.moon-live-section:has([data-accent="gold"]) {
  --live-accent: #ebd28f;
  --live-glow: #caa75022;
}
.moon-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 16px 24px;
  max-width: 1560px;
  margin-inline: auto;
  align-items: start;
}
.moon-live-section #stream-player-container {
  border-color: color-mix(in srgb, var(--live-accent) 55%, transparent);
  box-shadow: 0 0 34px var(--live-glow);
  transition-property: color, background-color, border-color, box-shadow;
}
.moon-live-section .moon-eyebrow {
  color: var(--live-accent);
}
.moon-live-section .stream-video-panel:not(.fixed) {
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
}
.stream-program {
  min-width: 0;
  padding-top: 0;
  color: #c8d0e1;
  font-size: 11px;
  line-height: 1.65;
}
.stream-scene {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--live-accent) 40%, transparent);
  border-radius: var(--moon-radius-panel);
  background: linear-gradient(135deg, var(--live-glow), #131b2a);
}
.stream-event-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--live-accent);
}
.stream-event-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.stream-scene-icon {
  color: var(--live-accent);
  font-size: 28px;
  margin-top: 12px;
  line-height: 1;
}
.stream-scene h3 {
  font-family: var(--moon-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
  margin: 12px 0 9px;
  color: #eeeafa;
  min-height: 2.2em;
}
.stream-scene p {
  color: #a9b5ca;
  font-size: 11px;
  min-height: 4.95em;
}
.stream-scene-next {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--moon-line);
  margin-top: 16px;
  padding-top: 10px;
  gap: 2px 8px;
}
.stream-scene-next > span {
  grid-column: 1 / -1;
  color: #95a3bb;
  font-size: 10px;
}
.stream-scene-next strong {
  font-weight: 500;
}
.stream-scene-next time {
  color: var(--live-accent);
  font-variant-numeric: tabular-nums;
}
.stream-schedule {
  padding-top: 18px;
}
.stream-schedule h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stream-schedule-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: var(--moon-radius-control);
}
.stream-schedule-item:hover {
  background: #c9b9ed0a;
  border-color: var(--moon-line);
}
.stream-schedule-item.is-on-air {
  background: var(--live-glow);
  border-color: var(--moon-line);
}
.stream-schedule-item small {
  display: block;
  font-size: 9px;
  color: #9aa8bd;
}
.stream-schedule-item strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
}
.stream-schedule-item.is-on-air :is(small, .stream-schedule-index) {
  color: var(--live-accent);
}
.stream-schedule-item time {
  color: #98a6bd;
  font-size: 10px;
}
.stream-countdown {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #a9b5ca;
  font-size: 10px;
}
.stream-countdown time {
  color: var(--live-accent);
  font-variant-numeric: tabular-nums;
}
.stream-schedule progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  border: 0;
  background: #c4ccef15;
  color: var(--live-accent);
}
.stream-schedule progress::-webkit-progress-bar {
  background: #c4ccef15;
}
.stream-schedule progress::-webkit-progress-value {
  background: var(--live-accent);
}
.stream-schedule progress::-moz-progress-bar {
  background: var(--live-accent);
}
.stream-loop-note {
  margin-top: 8px;
  color: #8291aa;
  font-size: 9px;
}
.stream-room-hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--moon-line);
  color: #8f9eb6;
  font-size: 10px;
}
.stream-scene-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stream-scene-sparkles span {
  position: absolute;
  left: calc(10% + var(--star) * 18%);
  top: 65%;
  color: var(--live-accent);
  animation: moon-event-spark 2.8s both;
  animation-delay: calc(var(--star) * 0.08s);
}
@keyframes moon-event-spark {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.5);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.3);
  }
}

/* Chapters keep every table and control, with a clear archive hierarchy. */
.moon-section {
  padding: 90px 40px;
  border-top: 1px solid var(--moon-line);
  background: #0b101d;
}
.moon-section:nth-of-type(odd) {
  background: #0e1522;
}
.moon-section > div {
  max-width: 1264px;
}
.moon-section-heading {
  max-width: none;
  margin: 0 0 42px;
  text-align: left;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 60px;
  align-items: end;
}
.moon-section-heading.scroll-reveal {
  /* Keep anchor geometry fixed while the heading fades into view. */
  transform: none;
}
.moon-section-heading > div:first-child {
  grid-column: 1;
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: #a8b7cf;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.moon-section-heading > div:first-child > svg {
  display: none;
}
.moon-section-heading > div:first-child::before {
  color: #c9b9ed;
  margin-right: 10px;
}
#skills .moon-section-heading > div:first-child::before {
  content: "02 /";
}
#eidolons .moon-section-heading > div:first-child::before {
  content: "03 /";
}
#engagement .moon-section-heading > div:first-child::before {
  content: "04 /";
}
#voices .moon-section-heading > div:first-child::before {
  content: "05 /";
}
#lore .moon-section-heading > div:first-child::before {
  content: "06 /";
}
#build .moon-section-heading > div:first-child::before {
  content: "07 /";
}
#gallery .moon-section-heading > div:first-child::before {
  content: "08 /";
}
.sparxie-theme-root .moon-section-heading h2 {
  grid-column: 1;
  font-family: var(--moon-serif);
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: none;
  color: #e4e5f4;
}
.moon-section-heading > p {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 440px;
  justify-self: end;
  font-size: 12px;
  line-height: 1.9;
  color: var(--moon-muted);
  padding-bottom: 3px;
}
.moon-section .border-2 {
  border-width: 1px;
  border-radius: var(--moon-radius-panel);
}
.moon-section
  :is(
    .bg-base-100,
    .bg-base-200,
    [class~="bg-base-200/60"],
    [class~="bg-base-100/70"]
  ) {
  background-color: #111927;
}
.moon-section .border-primary {
  border-color: #c9b9ed80;
}
.moon-section :is(.border-secondary, .border-accent) {
  border-color: #99c5e855;
}
.moon-section .cursor-pointer {
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.moon-section .cursor-pointer:hover {
  background-color: #172032;
  border-color: #c9b9ed66;
}
.moon-section :is(h3, h4) {
  font-weight: 500;
}
.moon-section p {
  line-height: 1.85;
}
.moon-section .text-xs {
  font-size: 11px;
}
.moon-section .text-slate-500 {
  color: #8c9ab0;
}
#skills > div > div:nth-child(2) {
  justify-content: flex-start;
  border-bottom: 1px solid var(--moon-line);
  padding-bottom: 15px;
  gap: 8px;
}
#skills > div > div:nth-child(2) button {
  border-color: transparent;
  padding: 9px 15px;
  font-weight: 500;
  font-size: 11px;
}
#skills > div > div:nth-child(2) .bg-primary {
  background: #c9b9ed20;
  color: #e0d7f3;
  border-color: #c9b9ed44;
}
#skills .cursor-pointer {
  padding: 20px;
}
#skills .cursor-pointer.border-primary {
  background: #c9b9ed0e;
  box-shadow: inset 2px 0 #c9b9ed;
}
#skills .cursor-pointer h3 {
  font-size: 13px;
}
#skills .sticky {
  top: 145px;
}
#eidolons .cursor-pointer {
  padding: 24px;
}
#eidolons .cursor-pointer.border-primary {
  background: #c9b9ed0b;
  box-shadow: inset 0 2px #c9b9ed;
  transform: none;
}
#eidolons .cursor-pointer h3 {
  font-family: var(--moon-serif);
  font-size: 25px;
  line-height: 1.15;
  margin-block: 18px 12px;
}
#eidolons .cursor-pointer .font-heading.text-base {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
#engagement > div > .border-2 {
  background:
    radial-gradient(ellipse at 85% 30%, #4a3d6b24, transparent 65%), #111927;
  padding: 36px;
}
#voices div.border-2 {
  padding: 26px;
  background: linear-gradient(135deg, #1a2233, #111927);
}
#voices h3 {
  font-family: var(--moon-serif);
  font-size: 29px;
}
#voices .border-l-2 {
  background: transparent;
  border-left-color: #c9b9ed66;
  border-radius: 0;
  padding-left: 16px;
}
#voices .border-l-2 p {
  font-family: var(--moon-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
  color: #ced3e6;
}
#lore > div > .border-primary {
  background: #151c2d;
  border-color: var(--moon-line);
  border-left: 2px solid #c9b9ed80;
  padding: 36px;
}
#lore > div > .border-primary > p {
  font-family: var(--moon-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 900px;
}
#lore button {
  padding: 18px;
}
#lore button.border-primary {
  background: #c9b9ed12;
}
#lore .whitespace-pre-line {
  max-width: 900px;
  font-size: 14px;
  line-height: 2;
  color: #b8c3d7;
}
#build h3 {
  font-family: var(--moon-serif);
  font-size: 30px;
}
#build .border-2 {
  padding: 26px;
}
#build img[alt*="Nocturne"] {
  filter: drop-shadow(0 12px 35px #a3b2df22);
}
#gallery > div > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
#gallery .group {
  border-color: var(--moon-line);
  background: #111927;
}
#gallery .group > div:first-child {
  height: 290px;
  border-radius: 5px 5px 0 0;
  background: #121b2d;
}
#gallery .group h3 {
  font-family: var(--moon-serif);
  font-size: 26px;
  font-weight: 400;
}
.sparxie-theme-root footer {
  background: #080d17;
  border-top: 1px solid var(--moon-line);
  padding-block: 48px;
}
.sparxie-theme-root footer .font-heading {
  font-family: var(--moon-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* Media dimensions and overlays are also used by the retained playback controls. */
.youtube-media {
  position: relative;
  overflow: hidden;
}
.youtube-surface,
.youtube-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.youtube-surface {
  pointer-events: none;
}
.youtube-fallback,
.youtube-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #0b101de8;
  color: #dddaf7;
  pointer-events: auto;
  z-index: 2;
  padding: 1rem;
}
.sparxie-theme-root .cyber-player-range::-webkit-slider-runnable-track,
.sparxie-theme-root .cyber-player-range::-webkit-slider-thumb {
  border-radius: 2px;
}
.sparxie-theme-root .cyber-player-range::-moz-range-track,
.sparxie-theme-root .cyber-player-range::-moz-range-thumb {
  border-radius: 2px;
}

@media (max-width: 1279px) {
  .sparxie-theme-root header nav {
    display: none;
  }
  .sparxie-theme-root header .moon-menu-toggle {
    display: flex;
  }
  .sparxie-theme-root header .moon-mobile-menu {
    display: block;
  }
}
@media (max-width: 1179px) {
  .moon-live-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .stream-program {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stream-schedule {
    padding-top: 0;
  }
  .stream-room-hint {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}
@media (max-height: 800px) and (min-width: 1101px) {
  .moon-profile {
    padding-block: 4px;
  }
  .moon-profile > :not(:first-child) {
    margin-top: 9px;
  }
  #overview h1 {
    font-size: 70px;
  }
  #overview h1::before {
    display: none;
  }
  #overview p.text-secondary {
    font-size: 21px;
  }
  #overview .grid-cols-3 > div {
    padding: 10px;
  }
  #overview .backdrop-blur-sm.border {
    padding: 10px 12px;
  }
}
@media (max-width: 1100px) {
  #overview {
    padding-inline: 30px;
  }
  .moon-overview-grid {
    column-gap: 28px;
  }
  #overview h1 {
    font-size: 74px;
  }
  .moon-profile {
    padding-block: 20px;
  }
  .moon-portrait {
    margin-inline: 0;
  }
  .moon-section {
    padding: 72px 30px;
  }
  .moon-section-heading {
    column-gap: 35px;
  }
  #gallery .group > div:first-child {
    height: 240px;
  }
}
@media (max-width: 767px) {
  #overview {
    padding: 20px 20px 36px;
  }
  .moon-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .moon-profile {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 28px;
  }
  .moon-portrait {
    grid-column: 1;
    grid-row: 2;
    height: 320px;
    margin: 0 -20px;
    overflow: hidden;
  }
  .moon-portrait img {
    width: 100%;
    max-width: none;
    left: 0;
    top: -5%;
    margin: 0;
    mask-image: linear-gradient(180deg, black 60%, transparent 97%);
  }
  .moon-portrait-orbit {
    width: 75%;
    max-width: 370px;
    top: 40px;
    justify-self: center;
  }
  .moon-portrait figcaption {
    bottom: 27px;
    right: 22px;
    font-size: 7px;
  }
  #overview h1 {
    font-size: clamp(58px, 16vw, 76px);
  }
  #overview h1::before {
    display: none;
  }
  #overview h1 + div {
    padding-bottom: 6px;
  }
  #overview p.text-secondary {
    font-size: 23px;
  }
  .moon-profile > :not(:first-child) {
    margin-top: 16px;
  }
  .moon-theatre {
    grid-column: 1;
    margin-top: 0;
  }
  .moon-live-section {
    padding: 20px 16px 28px;
  }
  .moon-live-layout {
    gap: 20px;
  }
  .stream-program {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .stream-room-hint {
    margin-top: 0;
  }
  .moon-theatre-heading {
    align-items: flex-start;
    margin-bottom: 0;
  }
  .moon-theatre-caption {
    display: none;
  }
  .sparxie-theme-root .moon-theatre-heading h2 {
    font-size: 32px;
  }
  #stream-player-container {
    padding: 6px;
  }
  .moon-section {
    padding: 55px 20px;
  }
  .moon-section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .sparxie-theme-root .moon-section-heading h2 {
    font-size: 43px;
  }
  .moon-section-heading > p {
    max-width: 100%;
    margin-top: 16px;
    font-size: 12px;
  }
  #skills > div > div:nth-child(2) {
    gap: 6px;
  }
  #skills > div > div:nth-child(2) button {
    padding: 8px 10px;
    font-size: 10px;
  }
  #skills .sticky {
    position: static;
  }
  #engagement > div > .border-2 {
    padding: 22px;
  }
  #voices div.border-2,
  #build .border-2 {
    padding: 22px;
  }
  #lore > div > .border-primary {
    padding: 24px;
  }
  #lore > div > .border-primary > p {
    font-size: 24px;
  }
  #gallery > div > .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  #gallery .group > div:first-child {
    height: 250px;
  }
}
@media (max-width: 389px) {
  #overview {
    padding-inline: 16px;
  }
  .moon-section {
    padding-inline: 16px;
  }
  .moon-portrait {
    height: 290px;
    margin-inline: -16px;
  }
  #overview h1 {
    font-size: 63px;
  }
  #overview .grid-cols-3 > div {
    padding: 9px;
  }
  #overview .moon-profile > div:has(> a[href="#skills"]) .btn {
    padding: 12px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sparxie-theme-root *,
  .sparxie-theme-root *::before,
  .sparxie-theme-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gift dialogs use portals; nickname selection stays in its Live container. */
.moon-room-modal {
  z-index: 10000;
}
.moon-room-modal > .modal-box {
  max-height: min(96dvh, 900px);
}
.stream-actions {
  min-width: 0;
  max-width: 100%;
}
.stream-actions > .btn {
  flex-shrink: 0;
}

/* Match every chapter's opening number to chapter 01. */
:root { --moon-chapter-inset: 36px; }
#overview, .moon-section { padding-top: var(--moon-chapter-inset); }
.sparxie-theme-root #overview {
  transition-property: color, background-color, border-color;
}
.moon-profile { justify-content: flex-start; padding-block: 0; }
.moon-profile > div:first-child,
.moon-section-heading > div:first-child {
  display: flex;
  align-items: center;
  min-height: 16px;
  font-size: 9px;
  line-height: 16px;
}
@media (max-height: 800px) and (min-width: 1101px) {
  :root { --moon-chapter-inset: 24px; }
}
@media (max-width: 767px) {
  :root { --moon-chapter-inset: 20px; }
}
.stream-reactions { flex-shrink: 0; align-self: center; }
.sparxie-theme-root .stream-reactions > .btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  line-height: 1;
}
.stream-reaction-icon {
  display: block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
@media (min-width: 640px) {
  .sparxie-theme-root .stream-reactions > .btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

/* Moonlit sanctuary: a quiet, static sky and silver arches behind the room. */
.sparxie-theme-root {
  background: #0b0d19;
}
.moon-sanctuary-backdrop {
  background: url("./moonlit-sanctuary.svg") center top / cover no-repeat;
}
.moon-sanctuary-backdrop > div {
  display: none;
}
.moon-live-section {
  background: radial-gradient(ellipse at 65% 10%, var(--live-glow), transparent 70%), #10101d66;
}
#overview {
  background: linear-gradient(90deg, #0b0e1be8 10%, #14132788 65%, #15122640);
}
.moon-section {
  background: #0c1020e8;
}
.moon-section:nth-of-type(odd) {
  background: #171426e0;
}

/* Restore a readable scale without changing the chapter and card hierarchy. */
.sparxie-theme-root header nav a {
  font-size: 14px;
  padding-inline: 12px;
}
.sparxie-theme-root header .max-w-7xl {
  max-width: 1504px;
  gap: 24px;
}
.sparxie-theme-root header a[href="#overview"] p {
  font-size: 10px;
}
.sparxie-theme-root .btn,
.sparxie-theme-root .text-xs {
  font-size: 13px;
}
.moon-utility-bar {
  font-size: 12px;
  background: #0b101d;
}
.moon-utility-bar .btn {
  font-size: 12px;
}
.sparxie-theme-root .moon-mobile-menu a {
  font-size: 14px;
}
.moon-eyebrow,
.moon-theatre-caption,
.moon-section-heading > div:first-child,
.moon-profile > div:first-child,
.moon-profile > div:first-child > span,
.moon-profile > div:first-child::before,
#overview .grid-cols-3 > div > div:first-child {
  font-size: 11px;
}
.moon-section-heading > p,
#overview blockquote p,
.moon-section .cursor-pointer p {
  font-size: 14px;
}
.moon-heart-icon {
  color: var(--heart-accent, #c9b9ed) !important;
  fill: var(--heart-accent, #c9b9ed) !important;
  stroke: var(--heart-accent, #c9b9ed) !important;
}
.sparxie-theme-root .moon-voice-toggle {
  width: 160px;
  min-width: 160px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 12px;
  border: 1px solid #8995ae;
  background: transparent;
  color: #d7dced;
  flex: 0 0 160px;
  flex-wrap: nowrap;
  line-height: 1;
  box-sizing: border-box;
  animation: none;
  white-space: nowrap;
}
.sparxie-theme-root .moon-voice-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.sparxie-theme-root .moon-voice-toggle[aria-pressed="true"] {
  color: #fff;
  background: #7c3359;
  border-color: #cf799e;
}

/* Each ticker slot keeps its dimensions and position through every reaction. */
[data-danmaku-bar].moon-ticker {
  height: 48px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: #0f1122ed;
  border-bottom: 1px solid var(--moon-line);
}
.moon-ticker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  inset: 0 auto 0 0;
  width: 120px;
  border-right: 1px solid var(--moon-line);
  color: #e6e1f5;
  background: #1c1b2f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.moon-ticker-label i {
  width: 6px;
  height: 6px;
  background: #f04459;
  border-radius: 50%;
  box-shadow: 0 0 10px #f0445955;
}
.moon-ticker-lane {
  position: absolute;
  inset: 0 0 0 120px;
  overflow: hidden;
  contain: layout paint;
}
.moon-ticker-card {
  position: absolute;
  top: 9px;
  left: 0;
  width: 360px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--moon-line);
  border-radius: 4px;
  background: #14182a;
  white-space: nowrap;
  will-change: transform;
}
[data-danmaku-bar] .moon-ticker-card span {
  font-size: 13px;
  line-height: 20px;
}
.moon-ticker-user {
  color: #b6a7df;
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.moon-ticker-text {
  color: #dadcea;
  overflow: hidden;
  text-overflow: ellipsis;
}
.moon-ticker-card.is-notice {
  background: #342c27;
  border-color: #c5a76d55;
}
.moon-ticker-card.is-notice span {
  color: #e6ce98;
}
.moon-ticker-card.is-real {
  border-color: #a88ac866;
}

/* Performer details follow the actual video; guest clips retain their credits. */
.stream-program {
  font-size: 13px;
}
.stream-event-label {
  font-size: 11px;
  letter-spacing: .035em;
  line-height: 1.4;
}
.stream-replay-label {
  font-size: 9px;
  padding: 2px 5px;
  margin-left: auto;
  color: #bac0d1;
  border: 1px solid var(--moon-line);
  border-radius: 3px;
  white-space: nowrap;
}
.stream-performer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}
.stream-performer img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--moon-line);
}
.stream-performer-tag {
  font-size: 10px;
  color: var(--live-accent);
  letter-spacing: .08em;
}
.stream-performer h3 {
  font-size: 30px;
  line-height: 1;
  margin: 4px 0 5px;
  min-height: 0;
}
.stream-performer p,
.stream-scene .stream-performance-description {
  min-height: 0;
  font-size: 12px;
}
.stream-performance-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #eeeafa;
}
.stream-vocal-credit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0;
  font-size: 12px;
}
.stream-vocal-credit small {
  font-size: 9px;
  color: #a4a0bb;
  letter-spacing: .06em;
}
.stream-performance-description {
  line-height: 1.65;
}
.stream-performance-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--live-accent);
}
.stream-performance-source:hover {
  text-decoration: underline;
}
.stream-scene-next {
  margin-top: 12px;
  font-size: 12px;
}
.stream-schedule h4,
.stream-schedule-item strong {
  font-size: 12px;
}
.stream-schedule-item small,
.stream-schedule-item time,
.stream-countdown,
.stream-loop-note,
.stream-room-hint {
  font-size: 11px;
}
.stream-room-hint {
  margin-top: 10px;
  padding-top: 10px;
}

/* The opening screen fills the available height, including its utility/ticker.
   Returning via Live fits beneath the sticky header after those bars scroll out. */
@media (min-width: 1180px) and (min-height: 680px) {
  .moon-live-section {
    min-height: calc(100dvh - var(--moon-opening-height, 150px));
    padding-block: 20px 24px;
  }
  html[data-live-focused] .moon-live-section {
    min-height: calc(100dvh - var(--moon-header-height, 65px));
  }
  .moon-live-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
  }
  .moon-theatre { align-self: start; }
  .stream-content-row {
    flex: 0 0 auto;
  }
  .stream-content-row > div {
    min-height: 0;
  }
  .stream-content-row > div:last-child:not(.stream-media-column) {
    min-height: 0;
  }
  .moon-live-section .stream-video-panel:not(.fixed) {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .stream-program {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
  }
  .stream-scene {
    flex-shrink: 0;
    padding: 16px;
  }
  .stream-scene .stream-performance-description {
    display: none;
  }
  .stream-schedule {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    padding-top: 0;
  }
  .stream-schedule-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }
  .stream-schedule > :not(.stream-schedule-list) {
    flex-shrink: 0;
  }
  .stream-schedule-item {
    padding-block: 7px;
  }
  .stream-program .stream-room-hint {
    display: none;
  }
  .stream-performer {
    margin-block: 12px 10px;
  }
  .stream-vocal-credit {
    margin-block: 8px;
  }
}
@media (max-width: 767px) {
  .moon-sanctuary-backdrop { background-position: 72% top; }
  .moon-ticker-label { width: 96px; font-size: 11px; }
  .moon-ticker-lane { left: 96px; }
  .moon-ticker-card { width: 290px; }
  .sparxie-theme-root header .max-w-7xl { gap: 12px; }
  .sparxie-theme-root header a[href="#overview"] .font-heading { font-size: 21px; }
  .sparxie-theme-root header a[href="#overview"] p { font-size: 8px; }
  .moon-live-section { padding-block: 20px 28px; }
  .stream-performer h3 { font-size: 28px; }
}

/* Normal broadcast and timed guest events retain the same room geometry. */
html { scrollbar-gutter: stable; }
.stream-media-column { width: 100%; }
@media (min-width: 768px) {
  .stream-content-row { --chat-width: 285px; --chat-gap: 6px; gap: var(--chat-gap); }
  .stream-content-row .stream-media-column { flex: 0 0 auto; width: calc(100% - var(--chat-width) - var(--chat-gap)); }
  .stream-content-row > div:last-child:not(.stream-media-column) { width: var(--chat-width); flex: 0 0 var(--chat-width); }
  .stream-content-row[data-chat-visible="false"] { justify-content: center; }
}
@media (min-width: 1024px) { .stream-content-row { --chat-width: 300px; } }
@media (min-width: 1280px) { .stream-content-row { --chat-width: 310px; } }
.youtube-audio-resume { position: absolute; z-index: 30; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; border: 1px solid #c9b9ed; border-radius: 6px; background: #0b101df0; color: #f4edff; font-size: 14px; cursor: pointer; }
.ticker-radio-icon { width: 15px; height: 15px; color: #d997bb; animation: pulse 2s ease-in-out infinite; }
.ticker-event-icon { width: 15px; height: 15px; animation: spin 1s linear infinite; }
.moon-ticker-card[data-role="fan"] { border-color: #869fd680; }
.moon-ticker-card[data-role="viewer"] { border-color: #81c9c8b0; }
.moon-ticker-card[data-role="dev"] { border-color: #e6bb67b0; background: linear-gradient(100deg, #302b244d, #111725); }
.moon-ticker-card[data-role="credits"] { border-color: #b394dcb0; background: linear-gradient(100deg, #3628404d, #111725); }
.moon-ticker-card[data-role="notice"] { border-color: var(--stage-color, #d898b9); }
.moon-ticker-card[data-role="dev"] .moon-ticker-user { color: #e6bb67; }
.moon-ticker-card[data-role="credits"] .moon-ticker-user { color: #c9b0ea; }
:root { --heart-accent: #c9b9ed; }
:root[data-performance] { --heart-accent: var(--stage-color); }
.sparxie-theme-root button:has(.moon-heart-icon) { background: color-mix(in srgb, var(--heart-accent) 17%, #111725); border-color: color-mix(in srgb, var(--heart-accent) 65%, #111725); color: #f1edf8; }
.sparxie-theme-root button:has(.moon-heart-icon):hover { background: color-mix(in srgb, var(--heart-accent) 30%, #111725); }
.performance-status time { flex-shrink: 0; padding-left: 8px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.moon-theatre-heading { min-height: 14px; gap: 0; }
.moon-theatre-heading .moon-eyebrow { margin: 0; line-height: 14px; }
.moon-live-layout { row-gap: 12px; }
.stream-normal-description { min-height: 0 !important; font-size: 13px !important; }
.stream-program[data-mode="normal"] .stream-scene h3 { min-height: 0; }
.moon-room-modal-contained { z-index: 80; border-radius: inherit; }
.moon-room-modal-contained > .modal-box { max-height: 96%; }

:root[data-performance] { --stage-color: #f09aca; --stage-second: #a3e5ff; --stage-wash: #c6388d; }
:root[data-performance="robin"] { --stage-color: #9be6f5; --stage-second: #cbacff; --stage-wash: #478fdb; }
html.performance-page-locked,
html.performance-page-locked body { overflow-y: hidden; }
[data-performance] header { border-color: color-mix(in srgb, var(--stage-color) 45%, transparent); box-shadow: 0 4px 28px color-mix(in srgb, var(--stage-wash) 22%, transparent); }
[data-performance] .moon-sanctuary-backdrop { filter: saturate(1.5); }
[data-performance] #live { --live-accent: var(--stage-color); --live-glow: color-mix(in srgb, var(--stage-wash) 24%, transparent); }
[data-performance] #stream-player-container { border-color: var(--stage-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--stage-color) 15%, transparent), 0 0 42px color-mix(in srgb, var(--stage-wash) 35%, transparent); }
[data-performance] .moon-theatre::before,
[data-performance] .moon-theatre::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--stage-color); border-radius: 9px; pointer-events: none; animation: stage-ring 2.8s ease-out infinite; }
[data-performance] .moon-theatre::after { border-color: var(--stage-second); animation-delay: 1.4s; }
[data-performance] .stream-video-panel { border-color: color-mix(in srgb, var(--stage-color) 65%, transparent); }
[data-performance] .moon-ticker { border-block: 1px solid color-mix(in srgb, var(--stage-color) 55%, transparent); background: color-mix(in srgb, var(--stage-wash) 16%, #101522); box-shadow: 0 0 25px color-mix(in srgb, var(--stage-wash) 20%, transparent); }
[data-performance] .moon-ticker-label { color: var(--stage-color); }
[data-performance] .moon-ticker-card.is-notice { color: var(--stage-color); border-color: color-mix(in srgb, var(--stage-color) 55%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--stage-wash) 25%, #121424), #141b2c); }
[data-performance] .stream-scene { background: linear-gradient(135deg, color-mix(in srgb, var(--stage-wash) 24%, #171726), #111927); }
.performance-ambience { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.performance-spotlight { position: absolute; top: -30vh; width: 70vw; height: 150vh; filter: blur(18px); opacity: .3; transform-origin: 50% 0; background: conic-gradient(from 165deg at 50% 0, transparent, color-mix(in srgb, var(--stage-color) 55%, transparent) 13deg, transparent 28deg); animation: stage-beam 8s ease-in-out infinite alternate; }
.beam-left { left: -15vw; }
.beam-right { right: -20vw; animation-delay: -4s; background: conic-gradient(from 165deg at 50% 0, transparent, color-mix(in srgb, var(--stage-second) 60%, transparent) 13deg, transparent 28deg); }
.performance-particle { position: absolute; left: calc(var(--particle) * 6.4%); bottom: -5%; font-size: 16px; color: var(--stage-color); opacity: 0; text-shadow: 0 0 14px currentColor; animation: stage-particle 8s linear infinite; animation-delay: calc(var(--particle) * -.6s); }
.performance-transition { position: fixed; inset: 0; z-index: 35; overflow: hidden; pointer-events: none; color: var(--stage-color, #c9b9ed); }
.performance-transition > div { position: absolute; left: 48%; top: 48%; }
.performance-transition > div:first-child { width: 120vmax; height: 120vmax; background: radial-gradient(circle, color-mix(in srgb, var(--stage-wash, #8565b3) 38%, transparent), transparent 65%); }
.performance-shockwave { width: 120vmax; height: 120vmax; border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 0 28px currentColor; }
.performance-status { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); padding: 8px 16px; background: #020617f2; border: 2px solid var(--stage-color); border-radius: 4px; font-size: 12px; line-height: 18px; color: var(--stage-color); box-shadow: 0 0 25px color-mix(in srgb, var(--stage-color) 45%, transparent); pointer-events: none; animation: pulse 2s infinite; }
.performance-status svg { flex-shrink: 0; animation: spin 1s linear infinite; }
.performance-status span { white-space: normal; }
.performance-chat-banner { position: relative; flex-shrink: 0; display: flex; gap: 9px; align-items: center; padding: 9px; border-block: 1px solid color-mix(in srgb, var(--stage-color) 50%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--stage-wash) 26%, #121522), #141b28); animation: slideDownBanner .4s ease-out; }
.performance-chat-banner > img:first-child { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; border: 1px solid var(--stage-color); animation: stage-bob 3s ease-in-out infinite; }
.performance-chat-banner > div { min-width: 0; display: grid; }
.performance-chat-banner small { font-size: 8px; letter-spacing: .06em; color: var(--stage-color); }
.performance-chat-banner strong { font-size: 13px; line-height: 1.4; color: #f7efff; }
.performance-chat-banner span { font-size: 10px; line-height: 1.5; color: #c7cbde; }
.performance-chat-notes { margin-left: auto; flex-shrink: 0; }
.performance-sticker { position: absolute; left: 16px; bottom: 60px; z-index: 18; width: 76px; height: 96px; pointer-events: none; animation: stage-bob 3.6s ease-in-out infinite; }
.performance-sticker-portrait { position: absolute; inset: 12px 0 auto; width: 66px; height: 66px; object-fit: cover; border: 2px solid var(--stage-color); border-radius: 50%; box-shadow: 0 0 18px color-mix(in srgb, var(--stage-wash) 60%, transparent); }
.performance-sticker-notes { position: absolute; top: -12px; right: -24px; width: 54px; height: 60px; }
.performance-sticker span { position: absolute; bottom: 0; left: 0; padding: 0 7px; border-radius: 3px; background: #111522da; color: var(--stage-color); font-size: 10px; }
@keyframes stage-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.moon-media-footer { position:relative; z-index:10; padding:32px 24px; border-top:1px solid var(--moon-border, #343448); background:#0b101d; color:#a9b3c7; font-size:13px; }
.moon-footer-inner { max-width:1440px; margin:auto; }
.moon-footer-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.moon-footer-heading strong { color:#e9dff4; letter-spacing:.18em; }
.moon-footer-heading p { margin:8px 0; }
.moon-footer-notes { border-top:1px solid #303346; margin-top:18px; padding-top:15px; line-height:1.8; }
.moon-footer-notes p { margin:3px 0; }
.moon-media-footer button { padding:9px 13px; border:1px solid #55506a; border-radius:5px; color:#e0cbe9; cursor:pointer; }
.moon-media-footer button:hover { background:#29253b; }
.moon-media-footer .moon-sources-button { margin-top:18px; }
.moon-sources-dialog { width:min(680px,100%); max-height:85dvh; display:flex; flex-direction:column; border:1px solid #716180; border-radius:7px; background:#111625; color:#d9d4e5; padding:22px; }
.moon-sources-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:16px; border-bottom:1px solid #343448; }
.moon-sources-heading h2 { margin:0; font-size:18px; }
.moon-sources-heading button { flex-shrink:0; padding:7px 10px; border:1px solid #55506a; border-radius:5px; }
.moon-sources-list { overflow-y:auto; overscroll-behavior:contain; padding-right:8px; }
.moon-source-item { padding:14px 0; border-bottom:1px solid #303346; display:grid; gap:5px; line-height:1.6; }
.moon-source-item a { color:#b6d7ee; font-size:14px; }
.moon-source-item a:hover { text-decoration:underline; }
.moon-source-item span, .moon-source-item small { font-size:12px; color:#b0b5c7; }
@media (max-width:639px) { .moon-footer-heading { align-items:flex-start; flex-direction:column; gap:8px; } .moon-sources-dialog { padding:16px; } }
@keyframes stage-beam { from { transform: rotate(-18deg); opacity: .15; } to { transform: rotate(22deg); opacity: .4; } }
@keyframes stage-particle { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15%, 75% { opacity: .6; } 100% { transform: translateY(-105vh) rotate(70deg); opacity: 0; } }
@keyframes stage-ring { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.035, 1.05); opacity: 0; } }
@media (max-width: 639px) {
  .performance-status { bottom: 16px; font-size: 11px; }
  #stream-player-container > .bg-sparx-dark > div:first-child { flex-basis: 100%; }
  #stream-player-container > .bg-sparx-dark > div:last-child { width: 100%; justify-content: space-between; }
  #stream-player-container > .bg-sparx-dark a { min-width: 0; }
}
@media (max-width: 767px) {
  .performance-sticker { transform-origin: left bottom; scale: .7; left: 8px; bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .performance-ambience, .performance-transition { display: none; }
  .performance-sticker, .performance-chat-banner > img, [data-performance] .moon-theatre::before, [data-performance] .moon-theatre::after { animation: none; }
  .performance-chat-notes, .performance-sticker-notes { display: none; }
}
