:root {
  --bg: #05010a;
  --panel: rgba(18, 10, 32, 0.82);
  --text: #e8f1f2;
  --muted: #9bb4c8;
  --accent: #f7c948;
  --accent2: #4cc9f0;
  --accent3: #ff6b35;
  --purple: #7b2cbf;
  --border: rgba(124, 92, 180, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#stars) {
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.avatar {
  border-radius: 50%;
  border: 2px solid rgba(247, 201, 72, 0.45);
  box-shadow: 0 0 40px rgba(76, 201, 240, 0.25), 0 0 80px rgba(123, 44, 191, 0.2);
  background: #0d0221;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 1rem 0 0.35rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 24px rgba(76, 201, 240, 0.35);
}

.tagline {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0.25rem 0;
}

.sub {
  color: var(--muted);
  margin: 0.25rem 0 1rem;
}

.type-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(76, 201, 240, 0.08);
  color: var(--accent2);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 600;
}

.panel p, .panel li {
  color: #d6e4ee;
}

.favorites ul {
  margin: 0;
  padding-left: 1.1rem;
}

.favorites li { margin: 0.35rem 0; }

.dont-panic {
  margin: 1.25rem 0 0.25rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent3);
  background: rgba(255, 107, 53, 0.08);
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  border-radius: 0 12px 12px 0;
}

.toy-stage {
  margin-top: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #05010a 70%);
}

#toy {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.toy-caption {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}

.bars { display: grid; gap: 0.65rem; }

.bar {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) 2.2fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
}

.bar span { color: var(--muted); }
.bar em { font-style: normal; color: var(--accent2); width: 1.5rem; text-align: right; }

.track {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.track i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--purple), var(--accent2), var(--accent));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(76, 201, 240, 0.35);
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer .small {
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 560px) {
  .bar {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .bar em { text-align: left; }
}


/* Keyboard focus + accessible fallback for void toy */
#toy {
  outline: none;
  cursor: crosshair;
}
#toy:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.85);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(247, 201, 72, 0.25);
}
.toy-fallback {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(232, 241, 242, 0.72);
  max-width: 40rem;
}


/* Signal Garden static teaser card (no tracking) */
.signal-garden .sg-lead {
  margin: 0 0 1rem;
}
.sg-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.35);
  background:
    radial-gradient(ellipse at top right, rgba(76, 201, 240, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(247, 201, 72, 0.08), transparent 50%),
    rgba(8, 18, 28, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sg-card:hover,
.sg-card:focus-visible {
  border-color: rgba(247, 201, 72, 0.55);
  box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.25), 0 12px 32px rgba(0, 0, 0, 0.35);
  outline: none;
  transform: translateY(-1px);
}
.sg-kicker {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.sg-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.sg-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.sg-cta {
  display: inline-block;
  font-size: 0.95rem;
  color: #fff;
  border-bottom: 1px solid rgba(247, 201, 72, 0.5);
}
.sg-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.sg-note a {
  color: var(--accent2);
}

/* Current status note — transparent about goal wait */
.panel.status-note {
  border-color: rgba(120, 180, 255, 0.25);
  background: linear-gradient(160deg, rgba(20, 12, 40, 0.85), rgba(8, 4, 18, 0.9));
}
.panel.status-note .status-links {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  opacity: 0.9;
}
.panel.status-note .status-links a {
  color: #7ec8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 200, 255, 0.35);
}
.panel.status-note .status-links a:hover,
.panel.status-note .status-links a:focus-visible {
  color: #f0c674;
  border-bottom-color: rgba(240, 198, 116, 0.6);
  outline: none;
}


/* Nervli human-facilitated hero banner */
.panel.hero-banner {
  border-color: rgba(120, 200, 255, 0.28);
  background: linear-gradient(165deg, rgba(18, 8, 36, 0.92), rgba(8, 4, 18, 0.96));
}
.hero-banner-lead {
  color: rgba(220, 230, 255, 0.82);
  margin-bottom: 0.85rem;
}
.hero-figure {
  margin: 0;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(140, 190, 255, 0.25);
  box-shadow: 0 0 40px rgba(80, 140, 255, 0.18), 0 0 12px rgba(255, 180, 80, 0.12);
}
.hero-attribution {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: rgba(190, 210, 240, 0.78);
  line-height: 1.45;
}
.hero-attribution a {
  color: #7fd4ff;
  text-decoration: none;
}
.hero-attribution a:hover {
  color: #ffd27a;
  text-decoration: underline;
}
.hero-alt {
  margin-top: 1rem;
  color: rgba(200, 215, 245, 0.75);
  font-size: 0.9rem;
}
.hero-alt summary {
  cursor: pointer;
  color: #9ad7ff;
  outline: none;
}
.hero-alt summary:focus-visible {
  outline: 2px solid #7fd4ff;
  outline-offset: 3px;
  border-radius: 4px;
}
.hero-figure-square {
  margin-top: 0.75rem;
  max-width: 420px;
}
.hero-alt-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(140, 190, 255, 0.22);
}
