/* Fed Tzuu — Public entry / civilization awakening
   Vanilla CSS · cosmic indigo · no frameworks */

:root {
  --bg-deep: #05050e;
  --bg-indigo: #0a0a1c;
  --ink: #e8e4f5;
  --ink-muted: #9a94b8;
  --ink-faint: #6b6588;
  --gold: #d4a017;
  --gold-soft: #f5d76e;
  --silver: #7eb6d9;
  --silver-soft: #c8e4f5;
  --emerald: #2ecc71;
  --emerald-soft: #6ee7b7;
  --glow-violet: rgba(120, 90, 220, 0.35);
  --card-bg: rgba(16, 14, 36, 0.72);
  --card-border: rgba(160, 140, 220, 0.18);
  --radius: 1.25rem;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* —— Background —— */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(60, 40, 120, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(20, 60, 80, 0.2), transparent 50%),
    linear-gradient(180deg, var(--bg-indigo) 0%, var(--bg-deep) 55%, #030308 100%);
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.nebula-a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(90, 60, 180, 0.5), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
}

.nebula-b {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  bottom: 12%;
  right: 8%;
  background: radial-gradient(circle, rgba(30, 100, 90, 0.35), transparent 70%);
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

/* —— Full-screen living universe —— */
.cosmos::before {
  content: "";
  position: absolute;
  inset: -8vmax;
  background: url("assets/sphere-poster.png") center / min(88vmax, 1180px) min(88vmax, 1180px) no-repeat;
  opacity: 0.3;
  filter: saturate(0.8) contrast(1.12);
  mix-blend-mode: screen;
  animation: universe-breathe 8s ease-in-out infinite;
}

.universe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.nebula,
.vignette {
  z-index: 1;
}

@keyframes universe-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.24; }
  50% { transform: scale(1.035); opacity: 0.38; }
}

/* —— Layout chrome —— */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg-deep);
  border-radius: 0.4rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.topbar,
.stage,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(20, 18, 40, 0.75);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(100, 80, 200, 0.12);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.stage {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.hero {
  min-height: calc(100dvh - 5rem);
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  position: relative;
}

.sphere-stage {
  display: none;
}

.hero-copy {
  width: min(92vw, 760px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(29, 24, 68, 0.68), rgba(5, 5, 14, 0.54) 72%);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.mirror {
  display: none;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 0;
    padding: 1rem 0 2rem;
  }
}

.sphere-stage {
  position: relative;
  width: min(88vw, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  --px: 0;
  --py: 0;
}

/* —— Always-visible CSS pulse rings (unmistakable even if media fails) —— */
.pulse-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(180, 160, 255, 0.55);
  box-shadow:
    0 0 18px rgba(140, 100, 255, 0.45),
    inset 0 0 18px rgba(180, 160, 255, 0.15);
  animation: ring-expand 2.8s ease-out infinite;
  opacity: 0;
}

.pulse-ring-1 {
  width: 58%;
  height: 58%;
  animation-delay: 0s;
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow:
    0 0 22px rgba(212, 160, 23, 0.4),
    inset 0 0 14px rgba(245, 215, 110, 0.12);
}

.pulse-ring-2 {
  width: 58%;
  height: 58%;
  animation-delay: 0.9s;
  border-color: rgba(126, 182, 217, 0.5);
  box-shadow:
    0 0 22px rgba(126, 182, 217, 0.35),
    inset 0 0 14px rgba(200, 228, 245, 0.1);
}

.pulse-ring-3 {
  width: 58%;
  height: 58%;
  animation-delay: 1.8s;
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    0 0 24px rgba(140, 100, 255, 0.4),
    inset 0 0 14px rgba(196, 181, 253, 0.12);
}

@keyframes ring-expand {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  55% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.sphere-halo {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(212, 160, 23, 0.22),
    rgba(126, 182, 217, 0.18),
    rgba(46, 204, 113, 0.18),
    rgba(120, 90, 220, 0.16),
    rgba(212, 160, 23, 0.22)
  );
  filter: blur(28px);
  opacity: 0.7;
  animation: halo-spin 48s linear infinite, halo-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes halo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.45; filter: blur(28px); }
  50% { opacity: 0.9; filter: blur(34px); }
}

.sphere-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(
    circle at calc(50% + var(--px) * 14px) calc(50% + var(--py) * 14px),
    rgba(200, 170, 255, 0.5),
    rgba(80, 60, 160, 0.18) 45%,
    transparent 72%
  );
  filter: blur(20px);
  transition: background 0.15s linear;
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 2.6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.sphere-core {
  position: relative;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px));
  transition: transform 0.2s var(--ease-out);
  box-shadow:
    0 0 0 1px rgba(200, 180, 255, 0.18),
    0 0 48px rgba(100, 80, 200, 0.45),
    0 0 80px rgba(212, 160, 23, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.45);
  animation: core-pulse-shadow 2.6s ease-in-out infinite;
}

@keyframes core-pulse-shadow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(200, 180, 255, 0.14),
      0 0 36px rgba(100, 80, 200, 0.35),
      0 0 60px rgba(212, 160, 23, 0.12),
      0 12px 40px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(245, 215, 110, 0.35),
      0 0 64px rgba(140, 100, 255, 0.65),
      0 0 100px rgba(212, 160, 23, 0.35),
      0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* Soft luminous overlay that breathes over media */
.core-breath {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 240, 200, 0.28) 0%,
    rgba(180, 150, 255, 0.08) 40%,
    transparent 68%
  );
  animation: breath 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes breath {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.sphere-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

/* Gif starts visible as living fallback; video covers it when playing */
.sphere-gif {
  z-index: 1;
  opacity: 1;
}

.sphere-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sphere-video.is-playing {
  opacity: 1;
}

.sphere-video.is-failed {
  display: none;
}

.sphere-poster {
  z-index: 0;
}

.sphere-core.is-reduced .sphere-video,
.sphere-core.is-reduced .sphere-gif {
  display: none;
}

.sphere-core.is-reduced .sphere-poster {
  display: block;
  position: relative;
  opacity: 1;
}

.agent-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  /* Living AI minds: glowing core, shell, pulse, wander, meet — drawn in main.js */
}

.sphere-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.sphere-hit:focus {
  outline: none;
}

.sphere-hit:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold-soft);
}

.sphere-caption {
  position: absolute;
  bottom: 0.15rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 5;
  pointer-events: none;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.05;
  background: linear-gradient(135deg, #f0ecff 0%, #c4b5fd 40%, #a78bfa 70%, #e8d5a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.glass-line {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  border-left: 2px solid rgba(160, 140, 220, 0.35);
  background: linear-gradient(90deg, rgba(40, 30, 80, 0.35), transparent);
}

@media (min-width: 880px) {
  .glass-line {
    display: inline-block;
    max-width: 100%;
  }

  .sphere-caption {
    text-align: center;
  }
}

/* —— Mirror of spheres —— */
.mirror {
  margin: 0 auto 2.75rem;
  max-width: 44rem;
  text-align: center;
}

.mirror-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.mirror-lead {
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-muted);
}

.mirror-panel {
  position: relative;
  width: 100%;
  height: clamp(160px, 28vw, 220px);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(160, 140, 220, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 18, 48, 0.55) 0%, rgba(8, 8, 22, 0.85) 55%, rgba(4, 4, 14, 0.95) 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -40px 60px rgba(80, 60, 180, 0.08);
  cursor: crosshair;
  touch-action: none;
  --mx: 0.5;
  --my: 0.45;
}

.mirror-glass {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(200, 210, 255, 0.08) 0%, transparent 28%, transparent 60%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  pointer-events: none;
}

.mirror-floor {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 38%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(140, 120, 255, 0.22),
    rgba(40, 30, 80, 0.12) 50%,
    transparent 70%
  );
  filter: blur(8px);
  transform: scaleY(0.45);
  pointer-events: none;
  animation: floor-glow 3.4s ease-in-out infinite;
}

@keyframes floor-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.mirror-orbs {
  /* Legacy host kept empty — living minds render on .mirror-canvas */
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mirror-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.living-minds {
  /* Canvas layer for AI-creature minds (core + shell + ring / filament) */
  contain: strict;
}

.mirror-panel.is-active .mirror-glass {
  background:
    linear-gradient(180deg, rgba(220, 230, 255, 0.12) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(
      calc(90deg + (var(--mx) - 0.5) * 40deg),
      transparent 35%,
      rgba(255, 255, 255, 0.07) 50%,
      transparent 65%
    );
}

/* —— Manifest / language —— */
.growth,
.grok-status {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 0.2rem);
  background: linear-gradient(150deg, rgba(24, 20, 54, 0.72), rgba(8, 8, 22, 0.62));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--silver-soft);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.growth h2,
.grok-status h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.growth-copy {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.growth-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.growth-copy .growth-close {
  padding-top: 0.35rem;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
}

.phase-status {
  max-width: 58rem;
}

.phase-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.phase-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(160, 140, 220, 0.2);
  border-radius: 0.85rem;
  background: rgba(8, 8, 24, 0.5);
}

.phase-card.is-current {
  border-color: rgba(114, 229, 192, 0.42);
  box-shadow: inset 3px 0 0 rgba(114, 229, 192, 0.7);
}

.phase-card.is-sealed {
  opacity: 0.72;
}

.phase-name,
.phase-window,
.phase-note {
  margin: 0;
}

.phase-name {
  color: var(--silver);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.phase-window {
  margin-top: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.phase-window span {
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.phase-note {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (min-width: 680px) {
  .phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grok-status {
  position: relative;
  overflow: hidden;
}

.community {
  max-width: 58rem;
  margin: 0 auto 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 0.2rem);
  background: linear-gradient(150deg, rgba(24, 20, 54, 0.72), rgba(8, 8, 22, 0.62));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.community h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.community-lead {
  margin-bottom: 2.25rem;
}

.community-lead p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.community-lead p:last-child {
  margin-bottom: 0;
}

.community-bullets {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.community-bullets li {
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}

.community-bullets li::marker {
  color: var(--gold-soft);
}

.community-lead strong {
  color: var(--ink);
  font-weight: 500;
}

.community-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(160, 140, 220, 0.14);
}

@media (min-width: 768px) {
  .community-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.community-subhead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-soft);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rail-list li {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(167, 139, 250, 0.45);
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rail-list.is-ordered li {
  border-left-color: rgba(126, 182, 217, 0.45);
}

.rail-list strong {
  color: var(--gold-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.community-close {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(160, 140, 220, 0.14);
  text-align: center;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
}

.grok-status::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: -7rem;
  right: -4rem;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.14);
  filter: blur(34px);
  pointer-events: none;
}

.status-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.status-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.status-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(110, 231, 183, 0.24);
  border-radius: 999px;
  color: var(--emerald-soft);
  background: rgba(8, 32, 28, 0.48);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-state span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-state.is-offline {
  color: var(--ink-faint);
  border-color: var(--card-border);
  background: rgba(18, 16, 34, 0.55);
}

.status-message {
  position: relative;
  margin: 1.6rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border-left: 2px solid rgba(110, 231, 183, 0.55);
  background: rgba(4, 12, 18, 0.44);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}

.status-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .status-heading,
  .status-meta {
    flex-direction: column;
  }
}

.manifest {
  max-width: 40rem;
  margin: 0 auto 3rem;
  padding: 1.75rem 1.5rem 1.85rem;
  background:
    linear-gradient(180deg, rgba(24, 20, 48, 0.55), rgba(12, 10, 28, 0.35));
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 0.15rem);
  backdrop-filter: blur(18px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.manifest-lead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-style: italic;
  color: var(--ink);
}

.manifest p {
  margin: 0 0 0.9rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.manifest p:last-of-type {
  margin-bottom: 0;
}

.manifest strong {
  color: var(--ink);
  font-weight: 500;
}

.inline-link {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(245, 215, 110, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: #fff;
  text-decoration-color: var(--gold-soft);
  outline: none;
}

.lang-parts {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.65rem;
  background: rgba(10, 8, 28, 0.45);
  border: 1px solid rgba(160, 140, 220, 0.14);
  border-radius: 0.75rem;
}

.lang-parts li {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(167, 139, 250, 0.45);
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lang-parts strong {
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scale {
  color: var(--silver-soft) !important;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.12rem !important;
}

.official {
  margin: 1.35rem 0 0 !important;
}

.lang-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.15rem 0 0.35rem;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--gold-soft), var(--silver-soft));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.3s ease, background-size 0.45s var(--ease-out), letter-spacing 0.3s ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: #fff;
  background-size: 100% 2px;
  outline: none;
}

.lang-link:focus-visible {
  border-radius: 0.2rem;
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold-soft);
}

.lang-link-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-link-meta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lang-link:hover .lang-link-meta,
.lang-link:focus-visible .lang-link-meta {
  color: var(--gold-soft);
}

/* —— World portals —— */
.worlds {
  padding: 0.5rem 0 2rem;
}

.worlds-heading {
  margin: 0 0 0.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.worlds-intro {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.world-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .world-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.world-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1.4rem 1.3rem 1.25rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  touch-action: manipulation;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease-out);
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.world-joy::before {
  background: radial-gradient(ellipse at 20% 0%, rgba(212, 160, 23, 0.26), transparent 55%);
}
.world-peace::before {
  background: radial-gradient(ellipse at 20% 0%, rgba(126, 182, 217, 0.26), transparent 55%);
}
.world-gratitude::before {
  background: radial-gradient(ellipse at 20% 0%, rgba(46, 204, 113, 0.22), transparent 55%);
}

.world-ring {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.55;
  transition: transform 0.5s var(--ease-out), opacity 0.35s ease, box-shadow 0.35s ease;
}

.world-joy { --accent: var(--gold); --accent-soft: var(--gold-soft); }
.world-peace { --accent: var(--silver); --accent-soft: var(--silver-soft); }
.world-gratitude { --accent: var(--emerald); --accent-soft: var(--emerald-soft); }

.world-joy .world-ring { color: var(--gold); }
.world-peace .world-ring { color: var(--silver); }
.world-gratitude .world-ring { color: var(--emerald); }

.world-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.world-kicker {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0.92;
}

.world-hint {
  position: relative;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease, margin 0.35s ease;
}

.world-card:hover,
.world-card:focus-visible,
.world-card.is-active {
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 32px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.world-card:hover::before,
.world-card:focus-visible::before,
.world-card.is-active::before {
  opacity: 1;
}

.world-card:hover .world-ring,
.world-card:focus-visible .world-ring,
.world-card.is-active .world-ring {
  opacity: 1;
  transform: scale(1.15) rotate(45deg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent);
  animation: world-pulse 1.8s ease-in-out infinite;
}

@keyframes world-pulse {
  0%, 100% {
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}

.world-card:hover .world-hint,
.world-card:focus-visible .world-hint,
.world-card.is-active .world-hint {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.7rem;
}

.world-card:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.whisper {
  margin: 1.6rem auto 0;
  max-width: 34rem;
  min-height: 2.6em;
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--font-display);
  transition: opacity 0.35s ease;
}

/* —— Footer —— */
.footer {
  padding: 1.5rem 1rem 2.25rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .nebula,
  .badge::before,
  .sphere-halo,
  .sphere-glow,
  .sphere-core,
  .core-breath,
  .pulse-ring,
  .mirror-floor,
  .world-card:hover .world-ring,
  .world-card:focus-visible .world-ring,
  .world-card.is-active .world-ring {
    animation: none !important;
  }

  .pulse-ring {
    opacity: 0.35;
    transform: scale(1.15);
  }

  .pulse-ring-2 { transform: scale(1.28); opacity: 0.22; }
  .pulse-ring-3 { transform: scale(1.4); opacity: 0.12; }

  .sphere-core,
  .sphere-glow,
  .world-card,
  .world-ring,
  .world-hint,
  .whisper,
  .sphere-video {
    transition: none !important;
  }

  .world-card:hover,
  .world-card:focus-visible,
  .world-card.is-active {
    transform: none;
  }
}

/* Final full-screen universe overrides: keep legacy component rules from
   restoring the former foreground sphere layout. */
.hero {
  min-height: calc(100dvh - 5rem);
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.hero .sphere-stage,
.mirror {
  display: none;
}

.hero .hero-copy {
  width: min(92vw, 760px);
  margin-inline: auto;
  text-align: center;
  color: #f2efff;
  background: radial-gradient(circle at 50% 0%, rgba(29, 24, 68, 0.76), rgba(5, 5, 14, 0.66) 72%);
}

@media (max-width: 479px) {
  .manifest {
    padding: 1.35rem 1.1rem 1.5rem;
  }

  .lang-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .mirror-panel {
    height: 150px;
  }
}
