/* ============================================================
   agents.game — CHAPTER 1: THE SIGNAL
   Game-style redesign v4.0 — HUD / arena aesthetic
   ============================================================ */

:root {
  --bg: #05060b;
  --bg-2: #090b13;
  --bg-3: #0d1019;
  --panel: rgba(13, 16, 26, 0.72);
  --panel-solid: #0d1019;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  --text: #e8ecf4;
  --text-2: #9aa3b5;
  --muted: #5d6575;

  --emerald: #00ff9d;
  --emerald-dim: rgba(0, 255, 157, 0.12);
  --emerald-glow: rgba(0, 255, 157, 0.35);
  --gold: #ffc94d;
  --gold-dim: rgba(255, 201, 77, 0.12);
  --purple: #a78bfa;
  --purple-deep: #7c3aed;
  --purple-dim: rgba(139, 92, 246, 0.14);
  --red: #ff4d5e;
  --red-dim: rgba(255, 77, 94, 0.12);
  --cyan: #22d3ee;

  --font-display: "Chakra Petch", "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--emerald); color: #04110b; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- SHARED ---------- */
.section { position: relative; padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: 7px 14px;
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-left: 3px solid var(--emerald);
  background: var(--emerald-dim);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  margin-bottom: 22px;
}
.section__tag--gold { color: var(--gold); border-color: rgba(255, 201, 77, 0.3); border-left-color: var(--gold); background: var(--gold-dim); }
.section__tag--purple { color: var(--purple); border-color: rgba(167, 139, 250, 0.3); border-left-color: var(--purple); background: var(--purple-dim); }
.section__tag--red { color: var(--red); border-color: rgba(255, 77, 94, 0.3); border-left-color: var(--red); background: var(--red-dim); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section__desc { color: var(--text-2); max-width: 640px; margin-top: 18px; font-size: 1.05rem; }
.section__head { margin-bottom: 56px; }

.grad-emerald {
  background: linear-gradient(92deg, #00ff9d 10%, #22d3ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(92deg, #ffc94d, #ff9e4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-purple {
  background: linear-gradient(92deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-red {
  background: linear-gradient(92deg, #ff4d5e, #ffc94d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal on scroll (script.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* Corner-bracket HUD frame */
.hud { position: relative; }
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--emerald); border-left: 2px solid var(--emerald); }
.hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--emerald); border-right: 2px solid var(--emerald); }
.hud--purple::before { border-color: var(--purple); }
.hud--purple::after { border-color: var(--purple); }
.hud--gold::before { border-color: var(--gold); }
.hud--gold::after { border-color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn--primary {
  background: linear-gradient(135deg, #00ff9d, #00d9ff);
  color: #04110b;
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(0, 255, 157, 0.5), inset 0 0 0 1px rgba(255,255,255,0.35); }
.btn--ghost {
  background: rgba(0, 255, 157, 0.06);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.4);
}
.btn--ghost:hover { background: rgba(0, 255, 157, 0.14); box-shadow: inset 0 0 0 1px var(--emerald), 0 0 24px rgba(0,255,157,0.18); }
.btn--gold { background: linear-gradient(135deg, #ffc94d, #ff9e4d); color: #1a1002; box-shadow: 0 0 24px rgba(255, 201, 77, 0.3); }
.btn--gold:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.8rem; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1300px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__logo-bracket { color: var(--emerald); font-weight: 600; }
.nav__logo-dot { color: var(--emerald); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--emerald);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__link--accent {
  color: var(--gold);
  border: 1px solid rgba(255, 201, 77, 0.4);
  background: var(--gold-dim);
  padding: 8px 16px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.nav__link--accent:hover { color: #1a1002; background: var(--gold); }
.nav__link--accent::after { display: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; z-index: 110; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: all 0.3s; }
.nav__toggle span:nth-child(1) { top: 4px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 18px; }
.nav__toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: rgba(5, 6, 11, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__glow--1 { width: 560px; height: 560px; background: rgba(0, 255, 157, 0.09); top: -160px; left: -140px; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 640px; height: 640px; background: rgba(124, 58, 237, 0.16); bottom: -220px; right: -160px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.hero__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.16) 3px 4px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
  background: var(--emerald-dim);
  padding: 9px 16px;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-shadow: 0 0 60px rgba(0, 255, 157, 0.12);
}
.hero__subtitle {
  color: var(--text-2);
  font-size: 1.12rem;
  max-width: 560px;
  margin-top: 24px;
}
.hero__subtitle strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Countdown */
.countdown {
  margin-top: 44px;
  display: inline-flex;
  align-items: stretch;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 19, 0.8);
}
.countdown__cell {
  min-width: 88px;
  padding: 14px 18px;
  text-align: center;
  background: rgba(13, 16, 25, 0.9);
}
.countdown__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.45);
}
.countdown__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}
.countdown__caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 12px;
}

/* Hero portrait — Agent Nil target card */
.hero__portrait { position: relative; }
.hero__portrait-frame {
  position: relative;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: var(--panel);
  padding: 14px;
  transform: rotate(1.2deg);
  transition: transform 0.4s var(--ease);
}
.hero__portrait-frame:hover { transform: rotate(0deg) scale(1.01); }
.hero__portrait-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.hero__portrait-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait-img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,11,0.25), transparent 30%, transparent 62%, rgba(5,6,11,0.55)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(5, 6, 11, 0.22) 3px 4px);
  pointer-events: none;
}
.hero__portrait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  padding-bottom: 12px;
}
.hero__portrait-header .live { color: var(--red); display: inline-flex; align-items: center; gap: 7px; }
.hero__portrait-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-top: 12px;
}
.hero__portrait-footer strong { color: var(--gold); }
.hero__portrait-chip {
  position: absolute;
  top: -16px; right: -14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #1a1002;
  background: var(--gold);
  padding: 7px 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 30px rgba(255, 201, 77, 0.4);
}
.hero__portrait-watermark {
  position: absolute;
  bottom: -34px; left: -20px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 139, 250, 0.22);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Hero stats strip */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 19, 0.72);
  backdrop-filter: blur(8px);
}
.hero__stat {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
  position: relative;
}
.hero__stat:last-child { border-right: 0; }
.hero__stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 2px;
  background: var(--emerald);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero__stat:nth-child(2) .stat__value { color: var(--gold); }
.hero__stat:nth-child(3) .stat__value { color: var(--emerald); }
.hero__stat:nth-child(4) .stat__value { color: var(--purple); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 960px) {
  .hero__content { grid-template-columns: 1fr; gap: 56px; }
  .hero__portrait { max-width: 440px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(2) { border-right: 0; }
  .hero__stat:nth-child(3), .hero__stat:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .countdown__cell { min-width: 0; padding: 12px 6px; }
  .countdown__num { font-size: 1.45rem; }
  .hero__title { font-size: clamp(2.1rem, 11vw, 2.6rem); }
  .hero__actions .btn { width: 100%; }
  .supply { gap: 12px; }
  .supply__block { min-width: 130px; padding: 18px 20px; }
  .supply__num { font-size: 2rem; }
  .supply__op { font-size: 1.4rem; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__seq { display: flex; align-items: center; padding: 13px 0; }
.ticker__item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0 30px;
  white-space: nowrap;
}
.ticker__item em { font-style: normal; color: var(--emerald); }
.ticker__item em.g { color: var(--gold); }
.ticker__item em.p { color: var(--purple); }
.ticker__item em.r { color: var(--red); }
.ticker__sep { color: var(--emerald); font-size: 9px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   THE SIGNAL — narrative
   ============================================================ */
.signal { position: relative; overflow: hidden; }
.signal::before {
  content: "";
  position: absolute;
  top: -120px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.07), transparent 65%);
  pointer-events: none;
}
.signal__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.signal__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text);
  position: sticky;
  top: 120px;
}
.signal__quote em {
  font-style: normal;
  color: var(--emerald);
}
.signal__quote-source {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.signal__body p { color: var(--text-2); margin-bottom: 20px; font-size: 1.04rem; }
.signal__body p strong { color: var(--text); }
.signal__body p em { color: var(--emerald); font-style: normal; }

.eras { display: grid; gap: 12px; margin-top: 36px; }
.era {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 22px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.era:hover { border-color: var(--line-strong); transform: translateX(6px); }
.era__year {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald);
}
.era--crack .era__year { color: var(--red); }
.era--postbtc .era__year { color: var(--purple); }
.era__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
}
.era__desc { color: var(--text-2); font-size: 0.92rem; margin-top: 3px; }
.era__chip {
  position: absolute;
  top: -9px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.era--signal .era__chip { color: var(--emerald); border-color: rgba(0,255,157,0.4); }
.era--crack .era__chip { color: var(--red); border-color: rgba(255,77,94,0.4); }
.era--postbtc .era__chip { color: var(--purple); border-color: rgba(167,139,250,0.4); }

@media (max-width: 960px) {
  .signal__grid { grid-template-columns: 1fr; gap: 44px; }
  .signal__quote { position: static; }
}

/* ============================================================
   AGENT NIL
   ============================================================ */
.nil { position: relative; overflow: hidden; }
.nil::before, .nil::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.nil::before { width: 620px; height: 620px; background: rgba(124, 58, 237, 0.14); top: -200px; left: -200px; }
.nil::after { width: 460px; height: 460px; background: rgba(167, 139, 250, 0.07); bottom: -160px; right: -120px; }

.nil__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.nil__figure { position: relative; max-width: 430px; }
.nil__frame {
  position: relative;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: var(--panel);
  padding: 12px;
}
.nil__img { position: relative; overflow: hidden; aspect-ratio: 1; }
.nil__img img { width: 100%; height: 100%; object-fit: cover; }
.nil__img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 55%, rgba(5, 6, 11, 0.5)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(5, 6, 11, 0.18) 3px 4px);
  pointer-events: none;
}
.nil__frame-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 10px 2px 10px;
}
.nil__sig {
  position: absolute;
  right: -14px; bottom: -42px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--purple);
  opacity: 0.9;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
  pointer-events: none;
}

.nil__title { margin-bottom: 18px; }
.nil__lede { color: var(--text-2); font-size: 1.06rem; margin-bottom: 26px; max-width: 620px; }
.nil__lede strong { color: var(--text); }

.nil__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 30px; }
.nil__fact { background: var(--bg-2); padding: 16px 20px; }
.nil__fact-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nil__fact-v { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin-top: 5px; }
.nil__fact-v--burn { color: var(--red); }
.nil__fact-v--purple { color: var(--purple); }

.nil__quote {
  border-left: 3px solid var(--purple);
  background: var(--purple-dim);
  padding: 22px 26px;
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 30px;
}
.nil__quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
}

/* Chronicle excerpt */
.chronicle {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 30px;
}
.chronicle__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.07);
}
.chronicle__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.chronicle__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.chronicle__body { padding: 20px 22px; color: var(--text-2); font-size: 0.97rem; }
.chronicle__body p { margin-bottom: 14px; }
.chronicle__body p:last-child { margin-bottom: 0; }
.chronicle__body em { color: var(--purple); font-style: normal; }
.chronicle__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  width: 100%;
  transition: background 0.2s;
}
.chronicle__link:hover { background: var(--purple-dim); }

@media (max-width: 960px) {
  .nil__grid { grid-template-columns: 1fr; gap: 56px; }
  .nil__facts { grid-template-columns: 1fr; }
}

/* ============================================================
   THE 128 — Signal Agents collection
   ============================================================ */
.supply {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}
.supply__block {
  text-align: center;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 26px 38px;
  min-width: 190px;
  position: relative;
}
.supply__block::before {
  content: "";
  position: absolute;
  top: -1px; left: 20px;
  width: 34px; height: 3px;
  background: var(--emerald);
}
.supply__num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.supply__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.supply__op {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted);
}
.supply__block--total { border-color: rgba(0, 255, 157, 0.5); background: linear-gradient(180deg, rgba(0,255,157,0.08), rgba(13,16,25,0.8)); box-shadow: 0 0 44px rgba(0, 255, 157, 0.12); }
.supply__block--total .supply__num { color: var(--emerald); text-shadow: 0 0 26px rgba(0,255,157,0.4); }
.supply__block--total::before { width: 100%; left: 0; }

.auction-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 64px; }
.auction-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: 9px 16px;
}
.auction-note em { font-style: normal; color: var(--emerald); }
.auction-note em.g { color: var(--gold); }

/* Feature grid: seat / auction / team / standards */
.seat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.seat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.seat-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.seat-card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 255, 157, 0.35);
  background: var(--emerald-dim);
  color: var(--emerald);
  margin-bottom: 18px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.seat-card__icon--gold { border-color: rgba(255, 201, 77, 0.35); background: var(--gold-dim); color: var(--gold); }
.seat-card__icon--purple { border-color: rgba(167, 139, 250, 0.35); background: var(--purple-dim); color: var(--purple); }
.seat-card h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.seat-card p { color: var(--text-2); font-size: 0.94rem; }
.seat-card p strong { color: var(--text); }

/* Standards strip */
.standards { margin-top: 76px; }
.standards__strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.standards__cell {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.standards__cell:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.standards__cell img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: filter 0.25s; }
.standards__cell:hover img { filter: saturate(1.1); }
.standards__cell::after {
  content: attr(data-id);
  position: absolute;
  bottom: 6px; left: 7px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(232, 236, 244, 0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.standards__cell--odd { box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.28); }
.standards__cell--even { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, 0.28); }
.standards__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.standards__legend i { font-style: normal; display: inline-block; width: 9px; height: 9px; margin-right: 8px; }
.standards__legend .odd i { background: var(--emerald); }
.standards__legend .even i { background: var(--gold); }
@media (max-width: 960px) {
  .standards__strip { grid-template-columns: repeat(4, 1fr); }
  .seat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGENDARIES
   ============================================================ */
.legendaries { position: relative; overflow: hidden; }
.legendaries::before {
  content: "";
  position: absolute;
  top: 40%; left: -220px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.06), transparent 65%);
  pointer-events: none;
}
.legendary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.legendary-card {
  position: relative;
  border: 1px solid rgba(255, 201, 77, 0.3);
  background: linear-gradient(180deg, rgba(255, 201, 77, 0.05), rgba(13, 16, 25, 0.9) 40%);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.legendary-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 201, 77, 0.65);
  box-shadow: 0 18px 50px rgba(255, 201, 77, 0.13);
}
.legendary-card__img { position: relative; aspect-ratio: 1; overflow: hidden; }
.legendary-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.legendary-card:hover .legendary-card__img img { transform: scale(1.06); }
.legendary-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 6, 11, 0.72)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(5, 6, 11, 0.14) 3px 4px);
  pointer-events: none;
}
.legendary-card__rank {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1a1002;
  background: linear-gradient(135deg, #ffc94d, #ff9e4d);
  padding: 5px 10px;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.legendary-card__body { padding: 18px 20px 22px; }
.legendary-card__body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legendary-card__ability { margin-top: 10px; }
.legendary-card__ability span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 201, 77, 0.4);
  background: var(--gold-dim);
  padding: 4px 10px;
  margin-bottom: 9px;
}
.legendary-card__ability {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.5;
}
.legendary-vrf {
  margin-top: 36px;
  border: 1px dashed rgba(255, 201, 77, 0.35);
  background: rgba(255, 201, 77, 0.04);
  padding: 20px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-2);
}
.legendary-vrf strong { color: var(--gold); }
.legendary-vrf .vrf-icon { color: var(--gold); font-size: 1.2rem; line-height: 1; }
@media (max-width: 1020px) { .legendary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .legendary-grid { grid-template-columns: 1fr; } }

/* ============================================================
   GAME MODES
   ============================================================ */
.modes { border-top: 1px solid var(--line); }
.mode {
  display: grid;
  grid-template-columns: 110px 1.2fr 1.6fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.25s, padding-left 0.25s var(--ease);
}
.mode::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--emerald);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.mode:hover { background: rgba(0, 255, 157, 0.035); padding-left: 34px; }
.mode:hover::before { transform: scaleY(1); }
.mode__num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 157, 0.55);
  line-height: 1;
}
.mode:hover .mode__num { color: var(--emerald); -webkit-text-stroke: 0; text-shadow: 0 0 20px rgba(0,255,157,0.4); }
.mode__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.mode__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
  background: var(--emerald-dim);
  padding: 3px 9px;
  margin-top: 8px;
}
.mode__desc { color: var(--text-2); font-size: 0.95rem; }
.mode__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.9;
  white-space: nowrap;
}
.mode__meta b { color: var(--text-2); font-weight: 600; }
@media (max-width: 900px) {
  .mode { grid-template-columns: 60px 1fr; gap: 16px; }
  .mode__num { font-size: 1.2rem; }
  .mode__desc { grid-column: 2; }
  .mode__meta { grid-column: 2; text-align: left; white-space: normal; }
}

/* ============================================================
   SEASONS + PAYOUT
   ============================================================ */
.season__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.season__features { display: grid; gap: 14px; margin-top: 30px; }
.season__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
}
.season__feature-icon { color: var(--emerald); font-size: 1.05rem; line-height: 1.5; }
.season__feature strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; }
.season__feature span { color: var(--text-2); font-size: 0.9rem; }

.payout-panel { border: 1px solid var(--line-strong); background: var(--panel); padding: 30px; }
.payout-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.payout-panel__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.payout-panel__pool { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); }
.payout-row { margin-bottom: 18px; }
.payout-row__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}
.payout-row__label b { color: var(--gold); }
.payout-bar { height: 14px; background: rgba(148, 163, 184, 0.08); border: 1px solid var(--line); position: relative; }
.payout-bar__fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  background: linear-gradient(90deg, #ffc94d, #ff9e4d);
  box-shadow: 0 0 14px rgba(255, 201, 77, 0.35);
  width: var(--w);
}
.payout-bar__fill--dim { background: rgba(255, 201, 77, 0.35); box-shadow: none; }
.payout-note { margin-top: 22px; font-size: 0.88rem; color: var(--text-2); }
.payout-note strong { color: var(--text); }
@media (max-width: 960px) { .season__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================
   CHAPTERS TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 10px; }
.timeline__line {
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--red) 55%, var(--purple));
  opacity: 0.5;
}
.timeline__item { position: relative; padding-left: 56px; padding-bottom: 46px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border: 2px solid var(--emerald);
  background: var(--bg);
  display: grid;
  place-items: center;
}
.timeline__dot::after { content: ""; width: 8px; height: 8px; background: var(--emerald); box-shadow: 0 0 12px var(--emerald-glow); }
.timeline__item--crack .timeline__dot { border-color: var(--red); }
.timeline__item--crack .timeline__dot::after { background: var(--red); box-shadow: 0 0 12px rgba(255, 77, 94, 0.5); }
.timeline__item--postbtc .timeline__dot { border-color: var(--purple); }
.timeline__item--postbtc .timeline__dot::after { background: var(--purple); box-shadow: 0 0 12px rgba(167, 139, 250, 0.5); }
.timeline__date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 8px;
}
.timeline__item--crack .timeline__date { color: var(--red); }
.timeline__item--postbtc .timeline__date { color: var(--purple); }
.timeline__card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 28px;
  max-width: 660px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.timeline__card:hover { border-color: var(--line-strong); transform: translateX(6px); }
.timeline__card h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.timeline__card p { color: var(--text-2); font-size: 0.95rem; }
.timeline__card .inline-link { color: var(--purple); font-weight: 600; }
.timeline__card .inline-link:hover { text-decoration: underline; }

/* ============================================================
   TOKENOMICS
   ============================================================ */
.token__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.token__cell {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.token__cell::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.token__cell:hover::after { transform: scaleX(1); }
.token__cell .stat__value { font-size: 1.7rem; }
.token__cell--gold .stat__value { color: var(--gold); }
.token__cell--gold::after { background: var(--gold); }
.token__cell--red .stat__value { color: var(--red); }
.token__cell--red::after { background: var(--red); }
.token__cell--purple .stat__value { color: var(--purple); }
.token__cell--purple::after { background: var(--purple); }

.alloc { border: 1px solid var(--line-strong); background: var(--panel); padding: 30px; }
.alloc__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.alloc__bar { display: flex; height: 46px; border: 1px solid var(--line-strong); overflow: hidden; }
.alloc__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: opacity 0.2s;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.alloc__seg--game { flex: 80.71; background: linear-gradient(135deg, rgba(0,255,157,0.85), rgba(0,217,255,0.85)); color: #04110b; }
.alloc__seg--rest { flex: 19.29; background: rgba(148, 163, 184, 0.15); color: var(--text-2); }
.alloc__legend { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 18px; font-size: 0.9rem; color: var(--text-2); }
.alloc__legend i { font-style: normal; display: inline-block; width: 10px; height: 10px; margin-right: 9px; }
.alloc__legend .l-game i { background: var(--emerald); }
.alloc__legend .l-rest i { background: rgba(148, 163, 184, 0.4); }
.alloc__legend strong { color: var(--text); }

.burn-strip {
  margin-top: 26px;
  border: 1px solid rgba(255, 77, 94, 0.3);
  background: var(--red-dim);
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.burn-strip__icon { font-size: 1.5rem; line-height: 1.2; }
.burn-strip strong { color: var(--red); }
.burn-strip p { color: var(--text-2); font-size: 0.94rem; }
.burn-strip p strong { color: var(--text); }
@media (max-width: 1020px) { .token__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .token__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 480px;
  background: radial-gradient(ellipse, rgba(0, 255, 157, 0.13), transparent 65%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.06;
}
.cta__desc { color: var(--text-2); max-width: 560px; margin: 22px auto 0; font-size: 1.05rem; }
.cta__desc strong { color: var(--text); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.cta__micro {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta__sig {
  margin-top: 54px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.cta__sig b { color: var(--emerald); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__tagline { color: var(--text-2); margin-top: 14px; font-size: 0.95rem; max-width: 300px; }
.footer__sig {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple);
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  color: var(--text-2);
  font-size: 0.93rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--emerald); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom em { font-style: normal; color: var(--text-2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- NO-SCRIPT FALLBACK ---------- */
.no-js .reveal { opacity: 1; transform: none; }

/* ============ THE CHAIN — map / territories / battle / guards (v5) ============ */
.mode--art { position: relative; overflow: hidden; }
.mode__icon {
  position: absolute; right: -14px; top: -14px; width: 88px; height: 88px;
  opacity: .16; filter: saturate(.9); border-radius: 12px;
  transition: opacity .35s ease, transform .35s ease;
}
.mode--art:hover .mode__icon { opacity: .55; transform: scale(1.06) rotate(-2deg); }

.chain__map { position: relative; border-radius: 16px; overflow: hidden; margin: 12px 0 40px;
  border: 1px solid rgba(0,255,157,.14); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.chain__map-base { display: block; width: 100%; height: auto; }
.chain__map-fog { position: absolute; right: -6%; bottom: -18%; width: 46%; max-width: 520px;
  mix-blend-mode: screen; opacity: .5; pointer-events: none;
  animation: fogdrift 26s ease-in-out infinite alternate; }
@keyframes fogdrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6%, -4%, 0) scale(1.08); } }
.chain__map-badge { position: absolute; left: 14px; bottom: 14px;
  font: 600 11px/1.4 var(--mono, 'JetBrains Mono', monospace); letter-spacing: .06em;
  color: var(--emerald); background: rgba(5,6,11,.72); border: 1px solid rgba(0,255,157,.25);
  padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); }

.terr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.terr-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07);
  background: #0a0c14; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.terr-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  filter: saturate(.85) brightness(.92); transition: filter .35s ease, transform .5s ease; }
.terr-card:hover { transform: translateY(-4px); border-color: rgba(0,255,157,.4);
  box-shadow: 0 14px 40px rgba(0,255,157,.12); }
.terr-card:hover img { filter: saturate(1.05) brightness(1); transform: scale(1.05); }
.terr-card__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px;
  font: 600 13px/1.2 'Chakra Petch', sans-serif; color: #eaf6f0;
  background: linear-gradient(transparent, rgba(3,4,8,.92) 55%); }
.terr-card__tag { position: absolute; left: 10px; top: 8px; font: 500 10px/1.3 'JetBrains Mono', monospace;
  color: rgba(234,246,240,.75); background: rgba(5,6,11,.6); padding: 3px 7px; border-radius: 6px;
  opacity: 0; transition: opacity .3s ease; }
.terr-card:hover .terr-card__tag { opacity: 1; }
.terr-card--hub { border-color: rgba(255,201,77,.35); }
.terr-card--hub:hover { border-color: rgba(255,201,77,.7); box-shadow: 0 14px 44px rgba(255,201,77,.15); }

.chain__battle { position: relative; margin: 44px 0; padding: 56px 0;
  background: linear-gradient(rgba(5,6,11,.72), rgba(5,6,11,.9)), url('img/scenario/web/scene-battle.webp') center 30%/cover no-repeat;
  border-top: 1px solid rgba(0,255,157,.12); border-bottom: 1px solid rgba(0,255,157,.12); }
.chain__battle-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.chain__battle-title { font: 700 clamp(24px, 3vw, 34px)/1.15 'Chakra Petch', sans-serif; color: #f2f7f4; margin: 10px 0 14px; }
.chain__battle-copy p { color: rgba(234,246,240,.82); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.grad-gold { background: linear-gradient(92deg, #ffe3a1, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chain__battle-art img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.abil-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.abil { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0,255,157,.18); background: #0a0c14; cursor: default;
  transition: transform .25s ease, border-color .25s ease; }
.abil img { width: 100%; height: 100%; object-fit: cover; }
.abil:hover { transform: translateY(-3px); border-color: var(--emerald); }
.abil::after { content: attr(data-ab); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(4px);
  font: 600 10px/1 'JetBrains Mono', monospace; color: #06231a; background: var(--emerald);
  padding: 4px 7px; border-radius: 5px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; }
.abil:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.chain__abil-note, .chain__guards-note { font: 500 12px/1.5 'JetBrains Mono', monospace; color: rgba(0,255,157,.6); }

.guards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.guard { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); background: #0a0c14; }
.guard img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: brightness(.9);
  transition: filter .35s ease, transform .5s ease; }
.guard:hover img { filter: brightness(1.05); transform: scale(1.05); }
.guard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 7px; text-align: center;
  font: 600 11px/1.25 'JetBrains Mono', monospace; color: rgba(234,246,240,.85);
  background: linear-gradient(transparent, rgba(3,4,8,.92) 60%); }
.guard--boss { border-color: rgba(255,201,77,.4); }
.guard--boss span { color: var(--gold); }
.chain__guards-note { margin-top: 12px; }

/* ============ CONCEPT ART MARQUEE (v5) ============ */
.artgallery { padding: 64px 0 30px; overflow: hidden; }
.artgallery__head { text-align: center; margin-bottom: 28px; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marqueescroll 90s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 240px; width: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  filter: saturate(.8) brightness(.85); transition: filter .3s ease; }
.marquee__track img:hover { filter: saturate(1.05) brightness(1); }
@keyframes marqueescroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.artgallery__note { text-align: center; margin-top: 18px; font: 500 12px/1.5 'JetBrains Mono', monospace; color: rgba(0,255,157,.55); }

@media (max-width: 1020px) {
  .terr-grid { grid-template-columns: repeat(3, 1fr); }
  .guards { grid-template-columns: repeat(3, 1fr); }
  .chain__battle-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .terr-grid { grid-template-columns: repeat(2, 1fr); }
  .guards { grid-template-columns: repeat(2, 1fr); }
  .marquee__track img { height: 170px; }
}
