:root {
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --card: #1a1a1a;
  --border: #3a3a3a;
  --text: #f7f7f7;
  --text-dim: #999999;
  --pink: #ffffff;
  --purple: #808080;
  --green: #e5e5e5;
  --yellow: #ffffff;
  --font-display: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

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

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.5px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-links a { color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--pink);
  color: #100;
  color: #14000d;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
}
.nav-cta:hover { background: var(--yellow); color: #14000d; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.hero-panel {
  flex: 1;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.25), rgba(10,10,10,0.6) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 4px 4px 0 var(--purple);
}

.hero h1 .chud {
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--pink);
}

.tagline {
  margin-top: 18px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
}

.subtagline {
  margin-top: 10px;
  color: var(--text-dim);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--pink); }

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
}

.ticker-strip {
  margin-top: 44px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  background: var(--bg-alt);
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats {
  max-width: 1100px;
  margin: -30px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--yellow);
}

/* ---------- Sections shared ---------- */
main section:not(.hero):not(.stats) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
}

main section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  text-align: center;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-top: 8px;
  margin-bottom: 34px;
  font-size: 0.95rem;
}

.section-sub code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}

/* ---------- About ---------- */
.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

.about-icon { font-size: 2.4rem; margin-bottom: 12px; }

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--yellow);
}

.about-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Buy ---------- */
.buy { text-align: center; }

.buy-sub { color: var(--text-dim); margin-top: 6px; margin-bottom: 26px; }

.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px 10px 18px;
  max-width: 100%;
  overflow-x: auto;
}

.contract-box code {
  font-size: 0.85rem;
  color: var(--green);
  white-space: nowrap;
}

.buy-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Leaderboard ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 560px;
}

thead th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

.rank-cell { font-family: var(--font-display); }
.rank-1 { color: #ffffff; }
.rank-2 { color: #cccccc; }
.rank-3 { color: #999999; }

.chud-name { font-weight: 700; }
.chud-wallet { color: var(--text-dim); font-family: monospace; font-size: 0.85rem; }

.cope-score {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------- Highlights / meme grid ---------- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.meme-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.meme-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: var(--pink);
}

.meme-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background-size: cover;
  background-position: center;
}

.meme-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.15s;
}
.meme-card:hover .meme-play { opacity: 1; }

.meme-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 1.2rem;
}

.meme-caption {
  padding: 12px 14px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.meme-caption strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- Video modal ---------- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.video-modal.is-open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.video-modal-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { color: var(--text-dim); }

.video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-modal-player video,
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.video-modal-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 20px 50px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-brand {
  margin-top: 10px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { font-size: 0.8rem; gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
