/* RADHORSE — neon radar / meme planet */
:root {
  --bg: #050a0f;
  --bg-2: #0a1520;
  --panel: rgba(8, 24, 36, 0.85);
  --cyan: #00f0ff;
  --lime: #b8ff3c;
  --green: #39ff14;
  --pink: #ff4fd8;
  --gold: #ffd166;
  --text: #e8f7ff;
  --muted: #7aa3b8;
  --border: rgba(0, 240, 255, 0.25);
  --glow: 0 0 24px rgba(0, 240, 255, 0.45);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --radius: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #0d2a3a 0%, var(--bg) 55%);
  overflow-x: hidden;
  line-height: 1.55;
}

body.booting {
  overflow: hidden;
}

/* ========== LIGHTNING / THUNDER ========== */
#lightning-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99950;
  pointer-events: none;
  mix-blend-mode: screen;
}

.lightning-flash {
  position: fixed;
  inset: 0;
  z-index: 99940;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 70% at 50% 20%,
    rgba(200, 240, 255, 0.55) 0%,
    rgba(0, 240, 255, 0.22) 35%,
    rgba(184, 255, 60, 0.08) 55%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.05s linear;
}

.lightning-flash.strike {
  animation: lightningFlash 0.45s ease-out forwards;
}

.lightning-flash.strike-hard {
  animation: lightningFlashHard 0.55s ease-out forwards;
}

@keyframes lightningFlash {
  0% { opacity: 0; }
  8% { opacity: 0.85; }
  16% { opacity: 0.15; }
  28% { opacity: 0.7; }
  45% { opacity: 0.1; }
  100% { opacity: 0; }
}

@keyframes lightningFlashHard {
  0% { opacity: 0; }
  6% { opacity: 1; }
  12% { opacity: 0.2; }
  22% { opacity: 0.95; }
  40% { opacity: 0.25; }
  70% { opacity: 0.08; }
  100% { opacity: 0; }
}

.lightning-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 0%, rgba(0, 240, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 35% at 20% 10%, rgba(184, 255, 60, 0.05), transparent 55%);
  opacity: 0.6;
  animation: stormPulse 6s ease-in-out infinite;
}

@keyframes stormPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

body.thunder-shake {
  animation: thunderShake 0.4s ease-out;
}

@keyframes thunderShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-3px, 1px); }
  30% { transform: translate(3px, -2px); }
  45% { transform: translate(-2px, 2px); }
  60% { transform: translate(2px, 0); }
  75% { transform: translate(-1px, -1px); }
}

/* During boot: bolts over intro. After ready: under sticky nav (z=100) */
body.booting #lightning-canvas {
  z-index: 100010;
}

body.booting .lightning-flash {
  z-index: 100005;
}

body.ready #lightning-canvas {
  z-index: 50;
}

body.ready .lightning-flash {
  z-index: 49;
}

/* ========== FULLSCREEN BOOT INTRO ========== */
.boot-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #02080c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.boot-intro.exiting {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(12px);
  pointer-events: none;
}

.boot-intro.done {
  display: none;
}

#boot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.boot-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.boot-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184, 255, 60, 0.55), rgba(0, 240, 255, 0.25) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.boot-flash.fire {
  opacity: 1;
  animation: bootFlash 0.7s ease-out forwards;
}

@keyframes bootFlash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.boot-ui {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  max-width: 520px;
  animation: bootUiIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bootUiIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.boot-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  border: 2px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.45), 0 0 80px rgba(184, 255, 60, 0.15);
  object-fit: cover;
  animation: bootLogoPulse 2s ease-in-out infinite;
}

@keyframes bootLogoPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(0, 240, 255, 0.4), 0 0 60px rgba(184, 255, 60, 0.12); transform: scale(1); }
  50% { box-shadow: 0 0 48px rgba(0, 240, 255, 0.7), 0 0 100px rgba(184, 255, 60, 0.25); transform: scale(1.04); }
}

.boot-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--lime);
  margin: 0 0 0.6rem;
  opacity: 0.9;
}

.boot-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
}

.boot-title span {
  color: var(--lime);
}

.boot-status {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 1.1rem;
  min-height: 1.2em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.boot-status.swap {
  opacity: 0;
  transform: translateY(-6px);
}

.boot-bar {
  width: min(280px, 70vw);
  height: 3px;
  margin: 0 auto 0.85rem;
  background: rgba(0, 240, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.boot-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  transition: opacity 0.3s ease;
}

.boot-skip {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.boot-skip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

.boot-horse {
  position: absolute;
  width: min(280px, 42vw);
  height: auto;
  object-fit: contain;
  right: 6%;
  bottom: 8%;
  opacity: 0;
  transform: translateX(40px) scale(0.9);
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.55));
  pointer-events: none;
  z-index: 2;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.boot-horse.show {
  opacity: 0.95;
  transform: translateX(0) scale(1);
}

.boot-horse.exit {
  opacity: 0;
  transform: translateX(-30px) scale(1.1);
}

/* Site reveal after boot */
.site-shell {
  opacity: 0;
  transform: scale(0.97) translateY(12px);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    filter 0.9s ease 0.05s;
  min-height: 100vh;
}

body.ready .site-shell {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Stagger entrance for hero / sections */
body.ready .hero-copy {
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

body.ready .hero-radar {
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

body.ready .nav {
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth reveal for cards when scrolling into view */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.corner-card {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    background 0.3s ease;
}

.step,
.token-card,
.mission-panel > * {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: var(--glow);
}

.btn {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease;
}

@media (max-width: 680px) {
  .boot-horse {
    width: min(160px, 38vw);
    right: 4%;
    bottom: 4%;
    opacity: 0;
  }

  .boot-horse.show {
    opacity: 0.75;
  }

  .boot-logo {
    width: 72px;
    height: 72px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* stars + scanlines */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(0, 240, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 200px 80px, rgba(184, 255, 60, 0.4), transparent),
    radial-gradient(1px 1px at 300px 220px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 420px 60px, rgba(255, 79, 216, 0.4), transparent);
  background-size: 500px 300px;
  animation: drift 80s linear infinite;
  opacity: 0.55;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.35;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 500px 300px; }
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: var(--glow);
  object-fit: cover;
}

.brand-text span {
  color: var(--lime);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00a8b8);
  color: #031018;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-ghost {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #031018;
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.glow {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.55), 0 0 40px rgba(184, 255, 60, 0.2);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  min-width: 90px;
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 12px rgba(184, 255, 60, 0.4);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* radar */
.hero-radar {
  display: flex;
  justify-content: center;
}

.radar-frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0a2838 0%, #041018 70%);
  border: 3px solid rgba(0, 240, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(184, 255, 60, 0.15),
    0 0 60px rgba(0, 240, 255, 0.2),
    inset 0 0 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.horse-on-radar {
  position: absolute;
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 6px rgba(184, 255, 60, 0.5));
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1), top 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.radar-hud {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.85;
  white-space: nowrap;
  z-index: 6;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.toast {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(5, 20, 30, 0.92);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(184, 255, 60, 0.3);
  max-width: 85%;
  text-align: center;
  animation: toastIn 0.35s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* sections */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.04), transparent);
}

.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* planet grid */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.corner-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.corner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.corner-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.corner-card:hover::before {
  opacity: 1;
}

.corner-card.scanned {
  border-color: rgba(184, 255, 60, 0.45);
}

.corner-card.scanned::after {
  content: "✓ SCANNED";
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: rgba(184, 255, 60, 0.12);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.corner-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.corner-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}

.corner-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.corner-coords {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* mission */
.mission-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mission-horse {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.mission-horse img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.45)) drop-shadow(0 0 10px rgba(184, 255, 60, 0.25));
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.speech {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
}

.speech::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--border);
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 360px;
  overflow-y: auto;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
}

.log li {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  color: var(--muted);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.75rem;
}

.log li:first-child {
  color: var(--lime);
}

.log .ts {
  color: var(--cyan);
  opacity: 0.7;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* token */
.token-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glow);
}

.token-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--glow);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.ca-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 100%;
}

#ca-display {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--cyan);
  word-break: break-all;
}

/* lore */
.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.lore-visual {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}

.lore-visual img,
.lore-hero-img {
  width: min(100%, 340px);
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.4));
}

.lore-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.lore-copy p:last-child {
  margin-bottom: 0;
}

.lore-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.lore-scene {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.lore-scene:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow);
}

.lore-scene img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.lore-scene figcaption {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lore-scene figcaption strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.lore-scene figcaption span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.meme-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.meme-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.meme-card figcaption {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.65rem 0.5rem;
  color: var(--lime);
}

/* how to buy */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.howto-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.howto-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.howto-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.howto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* social */
.social-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow);
}

.social-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.social-card strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.social-card span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

/* chart embed */
.chart-embed-wrap {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #000;
}

.chart-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* copy toast global */
.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 200000;
  background: rgba(5, 20, 30, 0.95);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(184, 255, 60, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.token-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.token-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.token-meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--lime);
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* footer */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 52ch;
  margin: 0 auto 1rem;
  opacity: 0.75;
}

.copy {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.6;
}

/* mobile nav open */
.nav.open .nav-links,
.nav.open .nav-cta {
  display: flex;
}

/* responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .stats {
    justify-content: center;
  }

  .steps,
  .howto-grid,
  .social-row {
    grid-template-columns: 1fr 1fr;
  }

  .lore-grid {
    grid-template-columns: 1fr;
  }

  .lore-scenes {
    grid-template-columns: 1fr;
  }

  .mission-panel {
    grid-template-columns: 1fr;
  }

  .token-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .token-meta {
    grid-template-columns: 1fr 1fr;
  }

  .token-actions {
    justify-content: center;
  }

  .ca-row {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.5rem 0;
    gap: 0.75rem;
  }

  .nav.open .nav-cta {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .steps,
  .howto-grid,
  .social-row {
    grid-template-columns: 1fr;
  }

  .radar-hud {
    font-size: 0.5rem;
    gap: 0.4rem;
  }

  .horse-on-radar {
    width: 88px;
    height: 88px;
  }

  .mission-horse img {
    width: 180px;
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
