@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Sora:wght@400;500;600;700&family=Syncopate:wght@400;700&display=swap");

:root {
  --bg-void: #04060a;
  --bg-panel: rgba(8, 12, 18, 0.46);
  --bg-panel-strong: rgba(8, 10, 14, 0.88);
  --line-soft: rgba(238, 241, 247, 0.09);
  --line-gold: rgba(224, 203, 166, 0.2);
  --line-mint: rgba(137, 225, 219, 0.15);
  --copy-main: #eeebe5;
  --copy-soft: #9ea7b6;
  --gold: #d9c5a6;
  --champagne: #f5ede3;
  --mint: #88ddd2;
  --violet: #b7adff;
  --silver: #c4ccd6;
  --signal-blue: #8da1ff;
  --signal-ink: #0e121a;
  --signal-pink: #ff65d4;
  --signal-cyan: #82f3ff;
  --signal-amber: #ffd59f;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --sans-display: "Sora", "Trebuchet MS", sans-serif;
  --mono-display: "IBM Plex Mono", "JetBrains Mono", monospace;
  --tech-display: "Syncopate", "Sora", sans-serif;
  --progress-hue: 240;
  --progress-sat: 70%;
  --progress-lit: 45%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans-display);
  background:
    radial-gradient(circle at 50% -12%, rgba(245, 237, 227, 0.12), transparent 28%),
    radial-gradient(circle at 14% 16%, rgba(141, 161, 255, 0.14), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(130, 243, 255, 0.08), transparent 18%),
    linear-gradient(160deg, #04060a 0%, #070b12 42%, #04060b 100%);
  color: var(--copy-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.09), transparent 14%),
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 74% 78%, rgba(130, 243, 255, 0.08), transparent 18%),
    conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0.08), rgba(141, 161, 255, 0.14), rgba(255, 101, 212, 0.12), rgba(130, 243, 255, 0.14), rgba(255, 255, 255, 0.08));
  opacity: 0.94;
  animation: chromaField 18s linear infinite;
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, rgba(0, 0, 0, 0.24) 100%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(9, 11, 15, 0.54);
  backdrop-filter: blur(24px) saturate(135%);
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: var(--tech-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links button,
.nav-links a {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d9d0d2;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.nav-links button:hover,
.nav-links a:hover {
  border-color: var(--gold);
  color: var(--champagne);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links button.active {
  border-color: var(--mint);
  color: var(--mint);
}

.nav-operator-link {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  border-color: rgba(141, 161, 255, 0.26) !important;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.03) !important;
  color: #eef0ff !important;
  font-family: var(--tech-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 !important;
  box-shadow: 0 0 0 1px rgba(141, 161, 255, 0.12), 0 0 24px rgba(141, 161, 255, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 2.2rem;
  padding: 1.6rem 0 0;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(141, 161, 255, 0.08),
    0 0 36px rgba(141, 161, 255, 0.1),
    0 0 72px rgba(255, 101, 212, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(34px) saturate(160%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(141, 161, 255, 0.35), rgba(255, 101, 212, 0.28), rgba(130, 243, 255, 0.26), rgba(255, 213, 159, 0.18), rgba(255, 255, 255, 0.08));
  background-size: 240% 240%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: chromaBorder 14s linear infinite;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel.hidden {
  display: none;
}

h3 {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  color: #ccd4e2;
  margin-bottom: 1rem;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(
      90deg,
      transparent 0,
      transparent 17%,
      rgba(141, 161, 255, 0.08) 17.4%,
      rgba(141, 161, 255, 0.08) 17.8%,
      transparent 18.2%,
      transparent 62%,
      rgba(255, 101, 212, 0.08) 62.4%,
      rgba(255, 101, 212, 0.08) 62.8%,
      transparent 63.2%
    ),
    linear-gradient(
      transparent 0,
      transparent 13%,
      rgba(130, 243, 255, 0.07) 13.4%,
      rgba(130, 243, 255, 0.07) 13.8%,
      transparent 14.2%,
      transparent 73%,
      rgba(255, 213, 159, 0.05) 73.4%,
      rgba(255, 213, 159, 0.05) 73.8%,
      transparent 74.2%
    );
  background-size: 72px 72px, 72px 72px, 320px 160px, 160px 320px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: 0.28;
  mix-blend-mode: screen;
  filter: saturate(1.38) contrast(1.2) brightness(1.08);
  z-index: 0;
  animation: circuitDrift 28s linear infinite, chromaShift 20s linear infinite;
}

.site-noise::before,
.site-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-noise::before {
  background:
    linear-gradient(
      90deg,
      transparent 0 11%,
      rgba(255, 255, 255, 0.18) 11.1% 11.4%,
      rgba(130, 243, 255, 0.16) 11.5% 11.8%,
      transparent 11.8% 37%,
      rgba(255, 255, 255, 0.12) 37.0% 37.2%,
      rgba(255, 101, 212, 0.16) 37.2% 37.55%,
      transparent 37.9% 66%,
      rgba(255, 255, 255, 0.14) 66.0% 66.2%,
      rgba(141, 161, 255, 0.16) 66.2% 66.55%,
      transparent 66.9%
    ),
    linear-gradient(
      transparent 0 16%,
      rgba(255, 255, 255, 0.12) 16.05% 16.2%,
      rgba(255, 213, 159, 0.1) 16.25% 16.55%,
      transparent 16.9% 46%,
      rgba(255, 255, 255, 0.12) 46.0% 46.15%,
      rgba(130, 243, 255, 0.12) 46.2% 46.55%,
      transparent 46.9% 82%,
      rgba(255, 255, 255, 0.1) 82.0% 82.15%,
      rgba(255, 101, 212, 0.1) 82.2% 82.5%,
      transparent 82.8%
    );
  background-size: 500px 180px, 180px 500px;
  mix-blend-mode: screen;
  opacity: 0.46;
  animation: circuitSweep 24s linear infinite;
}

.site-noise::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 34% 58%, rgba(141, 161, 255, 0.18), transparent 20%),
    radial-gradient(circle at 72% 22%, rgba(255, 101, 212, 0.16), transparent 16%),
    radial-gradient(circle at 54% 74%, rgba(130, 243, 255, 0.16), transparent 18%);
  filter: blur(28px);
  opacity: 0.56;
  animation: chromaField 24s linear infinite reverse;
}

.symbol-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: screen;
  filter: saturate(1.48) contrast(1.22) brightness(1.06);
}

.symbol-drop {
  position: absolute;
  top: -12%;
  font-family: var(--mono-display);
  color: var(--drop-color, rgba(245, 248, 255, 0.64));
  font-weight: 600;
  text-shadow:
    0 0 6px var(--drop-glow, rgba(255, 255, 255, 0.34)),
    0 0 14px var(--drop-glow, rgba(141, 161, 255, 0.26)),
    0 0 26px var(--drop-glow-soft, rgba(255, 101, 212, 0.18));
  white-space: pre;
  line-height: 0.94;
  letter-spacing: 0.03em;
  animation:
    symbolFall var(--fall-duration, 14s) linear infinite,
    symbolSway var(--sway-duration, 8s) ease-in-out infinite;
  animation-delay: var(--fall-delay, 0s), var(--sway-delay, 0s);
  transform: translate3d(0, -10vh, 0);
  filter: drop-shadow(0 0 5px var(--drop-glow, rgba(255, 255, 255, 0.22))) brightness(1.12);
  will-change: transform, opacity;
}

.symbol-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 120%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), var(--drop-glow, rgba(141, 161, 255, 0.18)), transparent 78%);
  filter: blur(3px);
  opacity: 0.86;
}

.feed {
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  margin-top: 1rem;
  padding-right: 0.3rem;
}

.feed-primary {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.feed-primary .feed {
  max-height: 680px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.status-copy {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #9aa7bb;
}

.observer-pulse {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.observer-good {
  color: #6cffd2;
  border-color: rgba(108, 255, 210, 0.35);
  background: rgba(108, 255, 210, 0.08);
}

.observer-bad {
  color: #ff8e9f;
  border-color: rgba(255, 142, 159, 0.3);
  background: rgba(255, 142, 159, 0.08);
}

.observer-pending {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}

.observer-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #9da8ba;
}

.frontpage-hero {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 150px;
  justify-items: center;
  align-items: center;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 237, 227, 0.1), transparent 24%),
    radial-gradient(circle at 50% 70%, rgba(141, 161, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.88), rgba(7, 9, 13, 0.7));
}

.frontpage-hero::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  pointer-events: none;
}

.feed-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1120px;
  justify-self: center;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(141, 161, 255, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(217, 197, 166, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.84), rgba(7, 9, 13, 0.72));
}

.feed-panel .status-header {
  margin-bottom: 0.35rem;
}

.hero-kicker,
.feed-kicker {
  font-family: var(--mono-display);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(217, 197, 166, 0.9);
  margin-bottom: 0.85rem;
}

.feed-kicker,
.challenge-header h4,
.leaderboard-panel h3,
.leaderboard-card > span {
  font-family: var(--sans-display);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #91a1bd;
  line-height: 1;
}

.feed-kicker,
.challenge-header h4,
.leaderboard-card > span {
  font-size: 0.72rem;
}

.leaderboard-panel h3 {
  font-size: 0.82rem;
}

.hero-lockline {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-lockline-bar {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16) 20%,
    rgba(141, 161, 255, 0.4) 50%,
    rgba(255, 92, 180, 0.26) 72%,
    transparent
  );
  box-shadow: 0 0 18px rgba(141, 161, 255, 0.16);
}

.hero-title {
  font-family: var(--tech-display);
  font-size: clamp(1.05rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #f1eee8;
  margin: 0;
  padding: 0.15rem 0.2rem 0.15rem 0.55rem;
  text-shadow: 0 0 20px rgba(244, 234, 220, 0.08);
}

.hero-orbit {
  width: clamp(132px, 18vw, 196px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  display: grid;
  place-items: center;
  position: relative;
  box-shadow:
    inset 0 0 40px rgba(141, 161, 255, 0.08),
    0 0 40px rgba(0, 0, 0, 0.2);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-orbit::after {
  inset: 34px;
  border-color: rgba(217, 197, 166, 0.16);
}

.hero-orbit span {
  position: absolute;
  font-family: var(--mono-display);
  color: rgba(238, 235, 229, 0.82);
  text-shadow: 0 0 16px rgba(141, 161, 255, 0.18);
}

.hero-orbit span:nth-child(1) {
  font-size: 2.4rem;
}

.hero-orbit span:nth-child(2) {
  top: 18px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.hero-orbit span:nth-child(3) {
  bottom: 18px;
  font-size: 0.9rem;
}

.hero-body {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.15rem;
  align-items: start;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-copy {
  text-align: left;
}

.hero-headline {
  font-family: var(--serif-display);
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.12;
  color: #f8e8c1;
  max-width: 18ch;
}

.hero-subline {
  margin-top: 1rem;
  max-width: 58ch;
  color: #c6bcc0;
  line-height: 1.7;
  font-size: 0.96rem;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: stretch;
  width: 100%;
}

.hero-ledger-card,
.story-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
}

.hero-ledger-card span,
.story-card span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-ledger-card strong,
.story-card strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  line-height: 1.15;
  color: #f6ecdd;
}

.hero-ledger-card {
  text-align: left;
}

.story-card small {
  display: block;
  margin-top: 0.6rem;
  color: #a99ea4;
  line-height: 1.55;
}

.onboarding-panel {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.95rem;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 170, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(141, 161, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.86), rgba(7, 9, 13, 0.72));
}

.onboarding-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.onboarding-header h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  color: #f4ede1;
}

.onboarding-why {
  margin: 0;
  max-width: 32ch;
  text-align: right;
  color: #d7c8d7;
  line-height: 1.55;
  font-size: 0.82rem;
}

.onboarding-copy {
  margin: 0;
  max-width: 64ch;
  color: #d7def0;
  line-height: 1.7;
}

.onboarding-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.onboarding-note {
  margin: 0;
  padding: 0.88rem 0.95rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 15, 0.54);
  color: #c9d3e7;
  line-height: 1.55;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.onboarding-primary {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 214, 170, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 214, 170, 0.18), rgba(141, 161, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: #fff3de;
  padding: 0.72rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 214, 170, 0.08), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.onboarding-primary:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.society-desk .story-grid,
.feed-panel .story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.58rem;
  padding: 0.58rem 0.72rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 15, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.16);
  animation: fade 0.3s ease;
}

.feed-item.feed-ritual {
  border-left-color: rgba(198, 182, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(198, 182, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.feed-item.feed-market {
  border-left-color: rgba(215, 194, 162, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(215, 194, 162, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.feed-item.feed-artifact {
  border-left-color: rgba(141, 231, 221, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(141, 231, 221, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.feed-item.feed-signal {
  border-left-color: rgba(196, 204, 214, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(196, 204, 214, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.feed-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  font-family: var(--mono-display);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.feed-chip.ritual {
  color: #cdbfff;
  border-color: rgba(198, 182, 255, 0.3);
}

.feed-chip.market {
  color: #f3debe;
  border-color: rgba(217, 197, 166, 0.3);
}

.feed-chip.artifact {
  color: #9be7de;
  border-color: rgba(136, 221, 210, 0.3);
}

.feed-chip.signal {
  color: #c8d0dc;
  border-color: rgba(196, 204, 214, 0.3);
}

.feed-copy {
  font-size: 0.78rem;
  line-height: 1.42;
  color: rgba(240, 238, 234, 0.95);
}

.feed-header {
  align-items: center;
}

.feed-heading h3 {
  margin-bottom: 0;
}

.feed-header-glyphs {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono-display);
  color: rgba(238, 235, 229, 0.66);
  letter-spacing: 0.16em;
}

.challenge-panel {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.challenge-header small {
  color: var(--copy-soft);
  line-height: 1.55;
  max-width: 30rem;
  text-align: right;
}

.challenge-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.challenge-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 11, 15, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.14);
}

.challenge-card.challenge-ritual {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(198, 182, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.14);
}

.challenge-card.challenge-signal {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(196, 204, 214, 0.08), 0 16px 30px rgba(0, 0, 0, 0.14);
}

.challenge-card.challenge-market {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(217, 197, 166, 0.08), 0 16px 30px rgba(0, 0, 0, 0.14);
}

.challenge-card.challenge-artifact {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(136, 221, 210, 0.08), 0 16px 30px rgba(0, 0, 0, 0.14);
}

.challenge-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono-display);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copy-soft);
}

.challenge-state {
  display: block;
  color: #f0ede8;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.challenge-guide {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(238, 235, 229, 0.76);
  line-height: 1.45;
  font-size: 0.78rem;
}

.challenge-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.challenge-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 237, 227, 0.22), rgba(141, 161, 255, 0.92));
}

.challenge-detail {
  display: block;
  margin-top: 0.7rem;
  color: var(--copy-soft);
  line-height: 1.5;
}

.title-salon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  min-height: 8rem;
}

.title-salon-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(244, 234, 220, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(16, 16, 18, 0.68), rgba(9, 9, 11, 0.52));
}

.title-salon-panel.is-locked {
  border-color: rgba(255, 255, 255, 0.06);
}

.title-salon-panel.is-live {
  border-color: rgba(215, 194, 162, 0.18);
}

.title-entry,
.title-salon-placeholder {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 12, 14, 0.45);
  padding: 1rem 1.05rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.title-entry span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.title-entry strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.1rem;
  color: #f6eee6;
}

.title-entry small,
.title-salon-placeholder {
  display: block;
  margin-top: 0.45rem;
  color: #b4b0ae;
  line-height: 1.55;
}

.title-salon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 7.5rem;
  text-align: center;
}

.hidden {
  display: none;
}

.heat {
  height: 6px;
  background: linear-gradient(90deg, #222, #8aff8a, #ff6b6b);
  border-radius: 4px;
  margin: 1rem 0;
  animation: pulse 2s infinite;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.zone {
  height: 25px;
  background: #111;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.zone.active {
  background: #8aff8a;
  box-shadow: 0 0 6px #8aff8a;
}

.zone.enemy {
  background: #ff6b6b;
  box-shadow: 0 0 6px #ff6b6b;
}

.legend {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.battle-panel {
  background: rgba(10, 10, 10, 0.92);
  border-color: rgba(255, 255, 255, 0.15);
}

.battle-runner {
  font-family: "JetBrains Mono", "Space Mono", monospace;
  letter-spacing: 0.4em;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  transition: border-color 0.3s ease;
}

.battle-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.battle-side {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.battle-side span:first-child {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.battle-side span:last-child {
  font-size: 0.85rem;
  color: #8aff8a;
}

.battle-left {
  border-color: var(--battle-left-color, rgba(108, 255, 210, 0.4));
  color: var(--battle-left-color, #6cffd2);
}

.battle-right {
  border-color: var(--battle-right-color, rgba(255, 61, 240, 0.4));
  color: var(--battle-right-color, #ff3df0);
}

.battle-ticker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
}

.battle-summary {
  font-size: 0.75rem;
  color: #b0b8c3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.metric-card {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-card span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #91a1bd;
}

.metric-card strong {
  font-size: 1rem;
  color: #f3f6fb;
}

.metric-card small {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b9;
}

.metric-card-wide {
  min-height: 118px;
}

.status-good {
  color: #6cffd2;
}

.status-bad {
  color: #ff8e9f;
}

.status-warn {
  color: #ffd166;
}

.artifact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.artifact-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(108, 255, 210, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.artifact-item strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #eef6ff;
}

.artifact-item small {
  display: block;
  margin-top: 0.25rem;
  color: #a7b2c5;
}

.artifact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #87cfff;
}

.artifact-empty {
  font-size: 0.85rem;
  color: #97a4b8;
}

.leaderboard-panel {
  grid-column: span 1;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.leaderboard-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(139, 160, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.16);
}

.leaderboard-card > span {
  display: block;
  margin-bottom: 0.75rem;
}

.leaderboard-list,
.pair-ledger,
.admin-results,
.admin-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.leaderboard-row,
.admin-log-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.leaderboard-row span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #87cfff;
}

.leaderboard-row strong {
  font-size: 0.9rem;
  color: #eef6ff;
}

.leaderboard-row small,
.admin-log-item span {
  font-size: 0.78rem;
  color: #a7b2c5;
}

.pair-ledger-group-label {
  font-family: var(--sans-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #91a1bd;
  padding: 0.1rem 0.15rem 0;
}

.leaderboard-row-pair-lead {
  border-color: rgba(141, 161, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(141, 161, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(141, 161, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.leaderboard-row-pair-runner {
  padding: 0.72rem 0.82rem;
}

.leaderboard-row-pair-runner span {
  color: #9eb2d7;
}

.ghost-button {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #d7def0;
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background: #8aff8a;
  box-shadow: 0 0 6px #8aff8a;
}

.dot.enemy {
  background: #ff6b6b;
  box-shadow: 0 0 6px #ff6b6b;
}

.subscribe {
  margin: 1rem 2rem 3rem;
}

.subscribe form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.subscribe input {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #222;
  background: #050505;
  color: #f4f4f4;
}

.subscribe button {
  border-radius: 0.5rem;
  border: 1px solid #4c7cff;
  background: transparent;
  color: #4c7cff;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}

.footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  text-align: center;
  border-radius: 1.15rem;
  align-self: center;
}

.footer a {
  color: #aebcff;
}

#reveal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: 0.4s;
}

.activation {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(141, 161, 255, 0.14), transparent 18%),
    radial-gradient(circle at 84% 28%, rgba(255, 92, 180, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(4, 6, 9, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
  cursor: pointer;
  overflow: hidden;
}

.activation::before,
.activation::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.activation::before {
  inset: 6%;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(8, 10, 14, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(141, 161, 255, 0.08),
    0 0 80px rgba(141, 161, 255, 0.06);
}

.activation::after {
  inset: -20%;
  background:
    radial-gradient(circle at center, rgba(141, 161, 255, 0.14), transparent 16%),
    conic-gradient(from 0deg, rgba(255, 92, 180, 0.08), rgba(141, 161, 255, 0.1), rgba(136, 221, 210, 0.08), rgba(255, 92, 180, 0.08));
  filter: blur(40px);
  opacity: 0.7;
  animation: chromaField 20s linear infinite;
}

.activation-copy {
  position: relative;
  z-index: 1;
  font-family: var(--tech-display);
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  color: #dbe1f0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(141, 161, 255, 0.16);
}

.rune {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.07), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(8, 10, 14, 0.54);
  box-shadow:
    inset 0 0 44px rgba(141, 161, 255, 0.12),
    0 0 0 1px rgba(141, 161, 255, 0.1),
    0 0 60px rgba(141, 161, 255, 0.08);
}

.rune::before,
.rune::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.rune::before {
  inset: -1px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(141, 161, 255, 0.35), rgba(255, 92, 180, 0.22), rgba(136, 221, 210, 0.22), rgba(255, 255, 255, 0.08));
  background-size: 240% 240%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: chromaBorder 10s linear infinite;
}

.rune::after {
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  opacity: 0.85;
  animation: pulse-ring 7s ease-in-out infinite;
}

.ring1 {
  width: 100%;
  height: 100%;
}

.ring2 {
  width: 70%;
  height: 70%;
  animation-delay: 1.2s;
}

.rune-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 2rem;
  color: #eef2fb;
  text-shadow: 0 0 18px rgba(141, 161, 255, 0.2);
}

.rune-center span {
  letter-spacing: 0.5em;
}

.rune-grid {
  font-size: 0.9rem;
  letter-spacing: 0.7em;
  color: rgba(217, 197, 166, 0.92);
}

.activation.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.unlocked {
  background:
    radial-gradient(circle at top, rgba(245, 237, 227, 0.12), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(141, 161, 255, 0.12), transparent 20%),
    radial-gradient(circle at bottom, rgba(136, 221, 210, 0.12), transparent 26%),
    #050505;
}

:root {
  --progress-hue: 240;
  --progress-sat: 70%;
  --progress-lit: 45%;
}

.connect-panel {
  margin: 1.25rem 2rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(108, 255, 210, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.94), rgba(14, 12, 15, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
}

.connect-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.connect-form input,
.connect-form button {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 5, 5, 0.8);
  color: #f4f4f4;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.connect-form button {
  cursor: pointer;
  letter-spacing: 0.1em;
  border-color: var(--line-gold);
  color: var(--champagne);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.04));
}

.remember-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #9da8ba;
  font-size: 0.8rem;
}

.remember-toggle input {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
}

.hud-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(108, 255, 210, 0.08), transparent 34%),
    rgba(8, 8, 8, 0.85);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  border-radius: 1.25rem;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.2em;
  padding: 0 0.5rem;
}

.hud-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
}

.hud-stats span {
  padding-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hud-stats span:last-child {
  border-right: none;
}

.progress-track {
  --track-color: hsla(var(--progress-hue), var(--progress-sat), var(--progress-lit), 0.4);
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, hsla(var(--progress-hue), var(--progress-sat), var(--progress-lit), 0.4), hsla(var(--progress-hue), var(--progress-sat), 50%, 0.9));
  width: 0%;
  transition: width 0.4s ease, background 0.8s ease;
}

.progress-comment {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.6);
}

.surge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.surge-indicator {
  flex: 1;
}

.surge-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 0.5rem;
}

.surge-gauge {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8aff8a, #4cffb9);
  transition: width 0.4s ease;
}

.honey-status {
  text-align: right;
  font-size: 0.75rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  padding: 0 1rem;
}

.action-grid button,
.honey-grid button,
.honey-grid select {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.1em;
}

.action-grid button:hover,
.honey-grid button:hover,
.ghost-button:hover {
  border-color: var(--gold);
  color: var(--champagne);
}

.honey-grid {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.flow-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0;
}

.flow-list li {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Space Mono", monospace;
  letter-spacing: 0.2em;
}

.flow-list li.active {
  background: rgba(76, 255, 185, 0.12);
  border: 1px solid rgba(76, 255, 185, 0.3);
}

.flow-metrics {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.flow-metrics span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Space Mono", monospace;
}

.flow-metrics strong {
  font-size: 0.95rem;
  color: #4cffb9;
  margin-top: 0.2rem;
}

.flow-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.event-overlay-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.event-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, var(--overlay-left-color, rgba(255, 255, 255, 0.08)), transparent 38%),
    radial-gradient(circle at 70% 50%, var(--overlay-right-color, rgba(255, 255, 255, 0.08)), transparent 38%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.25em;
  color: var(--overlay-color, #96d1ff);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  mix-blend-mode: screen;
  animation: overlayPulse var(--overlay-duration, 1.6s) ease-out forwards;
}

.event-overlay p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: inherit;
  white-space: pre-line;
}

.overlay-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: min(90vw, 48rem);
  padding-inline: 1rem;
}

.overlay-copy strong {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.event-overlay small {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.86);
}

.overlay-symbol {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.event-overlay::before,
.event-overlay::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: overlayFrame var(--overlay-duration, 1.6s) ease-out forwards;
}

.event-overlay.overlay-tier-sovereign_claim .overlay-symbol {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.event-overlay.overlay-tier-whisper_pulse .overlay-copy strong {
  letter-spacing: 0.24em;
}

.event-overlay::before {
  animation-delay: 0.1s;
}

.event-overlay::after {
  animation-delay: 0.3s;
}

@keyframes overlayPulse {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes overlayFrame {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

body {
  --hud-gradient: linear-gradient(120deg, hsla(var(--progress-hue), var(--progress-sat), var(--progress-lit), 0.25), rgba(5, 5, 5, 0.8));
  background:
    var(--hud-gradient),
    radial-gradient(circle at top, rgba(245, 237, 227, 0.08), transparent 24%),
    radial-gradient(circle at 18% 12%, rgba(141, 161, 255, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(136, 221, 210, 0.08), transparent 28%),
    linear-gradient(180deg, #08090d 0%, #050505 48%, #08080b 100%);
  transition: background 0.8s ease;
}

@keyframes symbolFall {
  0% {
    transform: translate3d(0, -10vh, 0);
  }
  100% {
    transform: translate3d(0, 110vh, 0);
  }
}

@keyframes chromaField {
  0% {
    filter: hue-rotate(0deg);
    transform: scale(1);
  }
  50% {
    filter: hue-rotate(55deg);
    transform: scale(1.03);
  }
  100% {
    filter: hue-rotate(360deg);
    transform: scale(1);
  }
}

@keyframes chromaBorder {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(90deg);
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(360deg);
  }
}

@keyframes circuitDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 88px, 88px 0, 420px 0, 0 420px;
  }
}

@keyframes chromaShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(90deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 10px rgba(141, 161, 255, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 92, 180, 0.45));
  }
  100% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 10px rgba(136, 221, 210, 0.55));
  }
}

.distort {
  animation: shake 0.15s infinite;
}

.directives {
  grid-column: 1 / -1;
}

.directive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.directive-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.05rem;
  background:
    radial-gradient(circle at top left, rgba(141, 161, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.78);
  font-size: 0.9rem;
  line-height: 1.58;
  min-height: 128px;
}

.directive-grid h4 {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
}

.admin-page {
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(139, 160, 255, 0.12), transparent 40%),
    #050505;
}

.admin-page-locked .nav,
.admin-page-locked .admin-hero,
.admin-page-locked main {
  filter: blur(10px) saturate(0.7);
}

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 3, 4, 0.76);
  backdrop-filter: blur(14px);
}

.admin-gate-panel {
  width: min(560px, 100%);
  border-color: var(--line-gold);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 14, 16, 0.96), rgba(10, 10, 12, 0.94));
}

.admin-gate-panel input,
.admin-gate-panel button {
  width: 100%;
  margin-top: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.68);
  color: #f3efea;
  padding: 0.95rem 1rem;
  font-size: 0.96rem;
}

.admin-gate-panel button {
  cursor: pointer;
  border-color: var(--line-gold);
  color: var(--champagne);
}

.admin-hero {
  margin: 1.25rem 2rem;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.admin-form input,
.admin-form button,
.artifact-expire-btn {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.78);
  color: #f4f4f4;
  padding: 0.8rem;
  font-size: 0.85rem;
}

.admin-form button,
.artifact-expire-btn {
  cursor: pointer;
  letter-spacing: 0.08em;
}

.artifact-expire-btn {
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-actions button {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.78);
  color: #f4f4f4;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.admin-log-panel {
  grid-column: 1 / -1;
}

.theme-chip {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 0.5rem;
}

.theme-chip.ritual { color: #f7b1ff; border-color: rgba(247, 177, 255, 0.6); }
.theme-chip.market { color: #8aff8a; border-color: rgba(138, 255, 138, 0.6); }
.theme-chip.artifact { color: #4cffb9; border-color: rgba(76, 255, 185, 0.6); }
.theme-chip.signal { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.6); }

@keyframes pulse {
  50% {
    filter: brightness(1.5);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

@keyframes shake {
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
}

@media (max-width: 720px) {
  .nav,
  .frontpage-hero,
  .grid,
  .footer {
    width: calc(100% - 1rem);
  }

  .frontpage-hero {
    min-height: unset;
  }

  .onboarding-panel {
    width: calc(100% - 1rem);
  }

  .hero-title {
    font-size: 1rem;
    letter-spacing: 0.22em;
    padding-left: 0.3rem;
  }

  .hero-lockline {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-lockline-bar {
    width: 100%;
  }

  .hero-orbit {
    width: 120px;
  }

  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-ledger {
    grid-template-columns: 1fr;
  }

  .onboarding-header {
    flex-direction: column;
  }

  .onboarding-why {
    text-align: left;
  }

  .status-header {
    flex-direction: column;
  }

  .observer-pulse {
    white-space: normal;
  }

  .challenge-header {
    align-items: start;
  }

  .challenge-header small {
    text-align: left;
  }

  .rune {
    width: 220px;
    height: 220px;
  }
}
