:root {
  --bg: #0b0406;
  --bg2: #150608;
  --card: #1c0a0d;
  --card2: #250e12;
  --border: #45171d;
  --gold: #f5c518;
  --gold-dark: #a87900;
  --red: #ff3b47;
  --red-dark: #8c1218;
  --text: #fff4e3;
  --muted: #d0a095;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* CRT scanlines */
.scanlines {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  opacity: .5;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 4, 6, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold-dark);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo {
  font-family: "Press Start 2P", monospace;
  font-size: 13px; letter-spacing: 1px; color: var(--text);
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold); }

.btn {
  border: 0; border-radius: var(--radius);
  font-family: inherit; font-weight: 700; cursor: pointer;
  padding: 10px 18px; font-size: 14px; letter-spacing: .5px;
  transition: transform .05s ease, filter .1s ease;
}
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--gold); color: #241100; box-shadow: 0 4px 0 var(--gold-dark); }
.btn-gold:hover { filter: brightness(1.1); }
.btn-gold:active { box-shadow: 0 2px 0 var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn-red:hover { filter: brightness(1.1); }
.btn-red:active { box-shadow: 0 2px 0 var(--red-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- TICKER ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-bottom: 2px solid var(--red-dark);
  background: var(--bg2);
  padding: 8px 0;
}
.ticker-track {
  display: inline-flex; gap: 3rem; padding-right: 3rem;
  font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--gold);
  animation: tick 22s linear infinite;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- HERO ---------- */
.hero { padding: 70px 0 46px; text-align: center; position: relative; }
.eyebrow {
  display: inline-block; font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--red); border: 2px solid var(--red-dark); border-radius: var(--radius);
  padding: 8px 14px; margin-bottom: 22px; background: rgba(255, 59, 71, .08);
  letter-spacing: 1px;
}
.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px, 4.4vw, 38px);
  line-height: 1.35; margin: 0 0 18px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--red-dark), 6px 6px 0 rgba(0,0,0,.6);
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero p.sub { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 16.5px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 24px;
  border-top: 2px dashed var(--border);
}
.stat b { display: block; font-family: "Press Start 2P", monospace; font-size: 16px; color: var(--gold); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- SECTIONS ---------- */
section { padding: 58px 0; }
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head h2 {
  font-family: "Press Start 2P", monospace; font-size: clamp(14px, 2.6vw, 22px);
  color: var(--gold); margin: 0 0 12px; text-shadow: 2px 2px 0 var(--red-dark);
}
.sec-head p { color: var(--muted); margin: 0; font-size: 15px; }

.badge-soon {
  display: inline-block; font-family: "Press Start 2P", monospace; font-size: 8.5px;
  color: var(--red); border: 2px dashed var(--red-dark); border-radius: var(--radius);
  padding: 8px 12px; margin-bottom: 14px; background: rgba(255, 59, 71, .06);
}

/* ---------- TIER CARDS ---------- */
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px;
}
.tier {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.45);
  transition: transform .12s ease, border-color .12s ease;
}
.tier:hover { transform: translateY(-3px); border-color: var(--tier-c, var(--gold)); }
.tier svg { width: 100%; height: auto; border-radius: 2px; background: #0a0304; image-rendering: pixelated; border: 1px solid #000; }
.tier h3 { margin: 0; font-family: "Press Start 2P", monospace; font-size: 12px; color: var(--tier-c, var(--gold)); }
.tier .mult {
  display: inline-block; align-self: flex-start;
  background: var(--tier-c, var(--gold)); color: #241100;
  font-weight: 800; font-size: 12px; border-radius: 2px; padding: 3px 8px;
}
.tier ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); display: grid; gap: 5px; }
.tier ul li::before { content: "▸ "; color: var(--red); }
.tier .price { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--gold); }
.tier .btn { width: 100%; }

/* ---------- LEADERBOARD ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.tab {
  border: 2px solid var(--border); background: var(--card); color: var(--muted);
  border-radius: var(--radius); padding: 7px 16px; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.lb-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lb-row {
  display: grid; grid-template-columns: 60px 1fr 130px 130px; gap: 10px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.head { background: var(--card2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.lb-rank { font-family: "Press Start 2P", monospace; font-size: 13px; color: var(--muted); }
.lb-row:nth-child(2) .lb-rank { color: var(--gold); }
.lb-row:nth-child(3) .lb-rank { color: #d7dbe2; }
.lb-row:nth-child(4) .lb-rank { color: #e08a4e; }
.lb-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar {
  width: 28px; height: 28px; border-radius: 3px; background: var(--card2);
  border: 2px solid var(--border); display: grid; place-items: center;
  font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--gold);
}
.lb-addr { color: var(--muted); font-weight: 400; font-size: 12px; }
.lb-score { text-align: right; font-variant-numeric: tabular-nums; }
.lb-reward { text-align: right; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }

.countdown { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.countdown b {
  background: var(--card2); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 4px 10px; color: var(--gold); font-variant-numeric: tabular-nums;
}

/* ---------- DASHBOARD ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.panel { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 18px; }
.panel h3 { margin: 0 0 12px; font-family: "Press Start 2P", monospace; font-size: 12px; color: var(--gold); }
.wallet-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wallet-line code { background: var(--card2); border: 1px solid var(--border); border-radius: 3px; padding: 4px 8px; font-size: 12px; color: var(--teal, #7be0c3); }
.points-big { font-family: "Press Start 2P", monospace; font-size: 22px; color: var(--gold); margin: 10px 0 2px; }
.muted { color: var(--muted); font-size: 13px; }
.nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.nft-cell { border: 2px solid var(--border); border-radius: var(--radius); padding: 8px; text-align: center; background: var(--card2); font-size: 12px; }
.nft-cell svg { width: 100%; height: auto; border-radius: 2px; image-rendering: pixelated; }
.nft-cell b { display: block; margin-top: 6px; font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--gold); }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; counter-reset: step; }
.step {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px;
  background: var(--red); color: #fff; font-family: "Press Start 2P", monospace;
  font-size: 12px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--red-dark);
}
.step h3 { margin: 0 0 6px; font-size: 15px; color: var(--gold); }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.note {
  margin-top: 18px; font-size: 12.5px; color: var(--muted);
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.note b { color: var(--gold); }

footer { border-top: 2px solid var(--red-dark); padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 12.5px; }

@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lb-row { grid-template-columns: 44px 1fr 90px; }
  .lb-reward { display: none; }
  .lb-row.head span:nth-child(4) { display: none; }
}
