:root {
  --bg: #070806;
  --panel: rgba(10, 12, 8, .72);
  --lime: #d6ff3a;
  --amber: #ffb020;
  --blood: #ff3b3b;
  --ice: #8fd6ff;
  --ash: #9aa08c;
  --line: #2a2e22;
  --text: #e8edd4;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "IBM Plex Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.noise, .scanlines, #ash {
  position: fixed; inset: 0; pointer-events: none; z-index: 8;
}
.noise {
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
  opacity: .35;
}
#ash { z-index: 1; }

.cursor {
  width: 18px; height: 18px;
  border: 1px solid var(--lime);
  position: fixed; left: 0; top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 40;
  mix-blend-mode: difference;
  transition: width .15s, height .15s, background .15s;
}
.cursor.hot { width: 42px; height: 42px; background: rgba(214,255,58,.12); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 32px;
  background: linear-gradient(to bottom, #070806, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--lime); color: var(--lime);
  font-family: "Syne", sans-serif; font-weight: 800;
}
.brand strong { display: block; letter-spacing: .18em; font-size: 13px; }
.brand small { color: var(--ash); letter-spacing: .12em; font-size: 10px; }
.nav { display: flex; gap: 22px; color: var(--ash); }
.nav a:hover { color: var(--lime); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.ghost, .crate-btn, .btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  letter-spacing: .12em;
  font-size: 11px;
}
.crate-btn { border-color: var(--lime); color: var(--lime); }
.crate-btn span {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; margin-left: 8px;
  background: var(--lime); color: #111;
}

.hero {
  position: relative; z-index: 2;
  padding: 72px 32px 40px;
  max-width: 1280px; margin: 0 auto;
}
.hero:before {
  content: "";
  position: absolute; inset: -40px 8% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(214,255,58,.16), transparent 65%);
  filter: blur(10px);
}
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ash);
  font-size: 11px;
}
.pill.live { border-color: var(--blood); color: var(--blood); }
.eyebrow { color: var(--amber); letter-spacing: .22em; font-size: 12px; }
h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(76px, 14vw, 180px);
  line-height: .82;
  margin: 8px 0 18px;
}
.glitch { position: relative; display: inline-block; }
.glitch.acid { color: var(--lime); }
.lead {
  max-width: 640px;
  color: #c8cbb8;
  font-size: 16px;
  line-height: 1.7;
}
.lead em { color: var(--lime); font-style: normal; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 42px; flex-wrap: wrap; }
.btn.primary { background: var(--lime); color: #111; border-color: var(--lime); font-weight: 600; }
.btn:hover, .ghost:hover, .crate-btn:hover { transform: translateY(-1px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stats b {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 28px;
  color: var(--lime);
}
.stats span { color: var(--ash); font-size: 11px; letter-spacing: .14em; }

.tuner, .vault, .map, .contract, .feed, footer {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px;
}
.tuner {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.tuner-head { display: flex; justify-content: space-between; color: var(--ash); margin-bottom: 12px; }
.tuner-head strong { color: var(--lime); }
#freq { width: 100%; accent-color: var(--lime); }
.freq-marks {
  display: flex; justify-content: space-between;
  color: var(--ash); font-size: 11px; margin-top: 8px;
}

.section-head p { color: var(--amber); letter-spacing: .2em; }
.section-head h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  margin: 6px 0 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  min-height: 340px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(214,255,58,.08), transparent 40%),
    linear-gradient(#10120c, #080906);
  transform-style: preserve-3d;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 40px rgba(214,255,58,.12);
}
.card .tag {
  color: var(--ash);
  font-size: 11px;
  letter-spacing: .16em;
}
.card h3 {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  margin: 12px 0 8px;
}
.card .price {
  color: var(--lime);
  font-size: 22px;
  margin: 18px 0;
}
.holo {
  height: 110px;
  margin: 12px 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(214,255,58,.35), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(214,255,58,.08) 12px 13px);
  clip-path: polygon(20% 100%, 50% 10%, 80% 100%);
  filter: drop-shadow(0 0 12px rgba(214,255,58,.35));
}
.card.vip .holo { clip-path: polygon(10% 80%, 50% 8%, 90% 80%, 50% 100%); }
.card.base .holo { clip-path: polygon(15% 90%, 15% 30%, 50% 8%, 85% 30%, 85% 90%); }
.card.aid .holo { border-radius: 50%; clip-path: none; }

.map-wrap {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
}
.ls-map { width: 100%; border: 1px solid var(--line); background: #0b0c08; }
.ls-map text { font-size: 12px; font-family: "IBM Plex Mono", monospace; }
.intel {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--panel);
}
.intel h3 { color: var(--lime); font-family: "Syne", sans-serif; }
.intel ul { padding-left: 18px; color: var(--ash); line-height: 1.9; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ash);
  padding: 12px 0;
}
.ticker-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contract-grid article {
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 180px;
  background: linear-gradient(180deg, rgba(255,176,32,.06), transparent);
}
.contract-grid h3 { font-family: "Syne", sans-serif; }
code { color: var(--lime); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ash);
}
.foot-links { display: flex; gap: 16px; }

#manifestBody { white-space: pre-wrap; color: var(--ash); line-height: 1.6; }
.drawer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.55);
}
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(440px, 100%);
  background: #0b0c08;
  border-left: 1px solid var(--lime);
  padding: 22px;
  display: flex; flex-direction: column;
}
.drawer-panel header, .crate-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.crate-items { flex: 1; overflow: auto; margin: 18px 0; }
.crate-row {
  display: flex; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.72);
  display: grid; place-items: center;
}
.modal-card {
  width: min(560px, 92vw);
  border: 1px solid var(--lime);
  background: #0b0c08;
  padding: 28px;
  box-shadow: 0 0 80px rgba(214,255,58,.15);
}
.modal-card h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 54px;
  color: var(--lime);
  margin: 8px 0 16px;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .nav { display: none; }
  .stats, .map-wrap, .contract-grid { grid-template-columns: 1fr; }
  h1 { font-size: 72px; }
  .topbar { padding: 14px; }
}
