/* ===== BNKRBALL — Midnight Grey + Lime/Purple ===== */

:root {
  --bg:           #121217;
  --bg-card:      #1a1a22;
  --bg-card-alt:  #15151d;
  --bg-section:   #0e0e14;
  --text:         #e8e8ef;
  --text-dim:     #8888a0;
  --green:        #a3f73c;
  --green-dim:    #6fbf1a;
  --purple:       #b16cff;
  --purple-dim:   #8a4ad4;
  --winner:       #ffd04e;
  --danger:       #ff5c5c;
  --opensea:      #2081e2;
  --radius:       12px;
  --radius-sm:    8px;
  --font:         'Inter', -apple-system, sans-serif;
  --mono:         'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(18,18,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(163,247,60,.08);
}
.nav-brand { display: flex; align-items: center; gap: .5rem; }
.logo-emoji { font-size: 1.5rem; }
.logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #111; }
.btn-primary:hover { background: var(--green-dim); color: #111; }
.btn-mint { background: var(--green); color: #111; padding: .5rem 1rem; font-size: .85rem; }
.btn-mint:hover { background: var(--green-dim); color: #111; }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 2rem 2rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(163,247,60,.08) 0%, rgba(177,108,255,.05) 40%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: 2px; line-height: 1; margin-bottom: .25rem; }
.logo-emoji-lg { font-size: 3rem; }
.accent-green { color: var(--green); }
.accent-purple { color: var(--purple); }
.hero-tagline { font-size: 1.15rem; color: var(--text-dim); margin-top: .4rem; }
.hero-sub { font-size: .95rem; color: var(--text-dim); margin-top: .4rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }

/* Prize + Countdown wrapper */
.prize-countdown-wrapper {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}

/* Prize Pool Display */
.prize-pool-display {
  position: relative;
  background: linear-gradient(135deg, rgba(163,247,60,.06) 0%, rgba(177,108,255,.06) 50%, rgba(163,247,60,.04) 100%);
  border: 1px solid rgba(163,247,60,.2);
  border-radius: 16px;
  padding: 1.25rem 2.5rem;
  text-align: center;
  overflow: hidden;
  animation: prize-border-pulse 3s ease-in-out infinite;
}
@keyframes prize-border-pulse {
  0%, 100% { border-color: rgba(163,247,60,.2); box-shadow: 0 0 20px rgba(163,247,60,.05); }
  50%      { border-color: rgba(177,108,255,.3); box-shadow: 0 0 40px rgba(177,108,255,.08), 0 0 80px rgba(163,247,60,.05); }
}
.prize-pool-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(163,247,60,.06) 0%, transparent 60%);
  pointer-events: none;
  animation: prize-glow-spin 8s linear infinite;
}
@keyframes prize-glow-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.prize-label {
  font-size: .8rem; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.prize-amount {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.prize-eth {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green) 0%, #d4ff80 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(163,247,60,.3));
  line-height: 1.1;
}
.prize-usd {
  font-family: var(--mono); font-size: 1.3rem; font-weight: 600;
  color: var(--text-dim);
}
.prize-details {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .75rem;
  font-size: .85rem; color: var(--text-dim);
}
.prize-detail-sep { opacity: .3; }

/* Countdown */
.countdown-wrapper { }
.countdown-label { color: var(--text-dim); text-transform: uppercase; font-size: .8rem; letter-spacing: 2px; margin-bottom: .75rem; }
.countdown { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.countdown-unit { text-align: center; }
.countdown-num {
  display: block; font-family: var(--mono); font-size: 2rem; font-weight: 700;
  color: var(--green); min-width: 2.5rem;
}
.countdown-text { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.countdown-sep { font-family: var(--mono); font-size: 1.5rem; color: var(--text-dim); padding-bottom: .75rem; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-dark { background: var(--bg-section); max-width: 100%; }
.section-dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: .5rem; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 3rem; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(163,247,60,.2); }
.stat-card.highlight-green { border-color: rgba(163,247,60,.3); }
.stat-card.highlight-purple { border-color: rgba(177,108,255,.3); }
.stat-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.stat-value { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-dim); margin-top: .25rem; text-transform: uppercase; letter-spacing: .5px; }

/* ===== POOL BREAKDOWN BAR ===== */
.pool-breakdown { margin-bottom: 3rem; }
.pool-breakdown h3 { text-align: center; margin-bottom: 1rem; font-weight: 600; }
.breakdown-bar {
  display: flex; height: 40px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.bar-segment {
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden;
}
.bar-opensea  { background: var(--opensea); }
.bar-winner   { background: var(--winner); }
.bar-bnkr     { background: var(--green); }
.bar-bnkrball { background: var(--purple); color: #fff; }
.bar-treasury { background: #555; color: #ddd; }

.breakdown-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-opensea  { background: var(--opensea); }
.dot-winner   { background: var(--winner); }
.dot-bnkr     { background: var(--green); }
.dot-bnkrball { background: var(--purple); }
.dot-treasury { background: #555; }

/* ===== TREASURY DETAIL ===== */
.treasury-detail {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
}
.treasury-detail h4 {
  text-align: center; font-size: .9rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.treasury-items { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.treasury-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-sm); padding: .5rem 1rem;
  font-size: .85rem; color: var(--text-dim);
  display: flex; align-items: center; gap: .5rem;
}
.t-pct {
  font-family: var(--mono); font-weight: 700; color: var(--green); font-size: .9rem;
}

/* ===== SPONSOR ===== */
.sponsor-card {
  background: linear-gradient(135deg, rgba(177,108,255,.08), rgba(163,247,60,.05));
  border: 1px solid rgba(177,108,255,.2);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  position: relative;
}
.sponsor-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; padding: .25rem .75rem;
  border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.sponsor-tokens {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; align-items: center;
}
.sponsor-empty {
  color: var(--text-dim); font-size: .85rem; font-style: italic;
}
.sponsor-token-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm); padding: .4rem .8rem;
  font-size: .85rem; color: var(--text);
  display: flex; align-items: center; gap: .4rem;
}
.sponsor-token-badge .token-icon { font-size: 1rem; }

/* ===== TOKEN CARDS ===== */
.token-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 0 2rem; }
.token-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.token-name { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.token-mcap { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--green); }
.token-label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin: .25rem 0; }
.token-price { font-family: var(--mono); font-size: 1rem; color: var(--text-dim); }

/* ===== STEPS / HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #111; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.step h3 { font-size: 1rem; margin-bottom: .5rem; }
.step p { font-size: .85rem; color: var(--text-dim); }

/* ===== WINNERS TABLE ===== */
.winners-table-wrapper { overflow-x: auto; padding: 0 2rem; }
.winners-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.winners-table th {
  background: rgba(163,247,60,.08); color: var(--green);
  font-size: .75rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 1rem; text-align: left;
}
.winners-table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .9rem; }
.winners-table tr:hover td { background: rgba(255,255,255,.02); }
.empty-row td { text-align: center; color: var(--text-dim); padding: 2rem; font-style: italic; }

/* ===== BURN TRACKER ===== */
.burn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.burn-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.burn-icon { font-size: 2rem; margin-bottom: .5rem; }
.burn-card h3 { font-size: .9rem; color: var(--text-dim); margin-bottom: .5rem; }
.burn-value { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--green); }
.burn-usd { font-family: var(--mono); font-size: .9rem; color: var(--text-dim); margin-top: .25rem; }
.total-burned {
  text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, rgba(163,247,60,.06), rgba(177,108,255,.06));
  border-radius: var(--radius); border: 1px solid rgba(163,247,60,.15);
  font-size: 1.2rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.total-burned .accent-green { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }

/* ===== RULES ===== */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 0 2rem; }
.rule-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 2rem;
}
.rule-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.rule-card ul { list-style: none; padding: 0; }
.rule-card li {
  padding: .5rem 0; padding-left: 1.25rem; position: relative;
  font-size: .9rem; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,.03);
}
.rule-card li:last-child { border-bottom: none; }
.rule-card li::before { content: "→"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.flywheel-note {
  margin-top: 1rem; padding: 1rem;
  background: rgba(163,247,60,.05); border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--text-dim); text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 2rem; text-align: center;
}
.footer-brand { font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: .85rem; }
.footer-links a:hover { color: var(--green); }
.footer-links .disabled { opacity: .4; cursor: default; }
.footer-links .disabled:hover { color: var(--text-dim); }
.footer-copy p { font-size: .8rem; color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .burn-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navbar { padding: .75rem 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .navbar.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(18,18,23,.95); padding: 1rem 2rem;
    border-bottom: 1px solid rgba(163,247,60,.08);
  }
  .hero h1 { font-size: 2.5rem; }
  .logo-emoji-lg { font-size: 2.2rem; }
  .countdown-num { font-size: 1.8rem; }
  .prize-pool-display { padding: 1.25rem 1.5rem; }
  .prize-eth { font-size: 2rem; }
  .prize-usd { font-size: 1rem; }
  .prize-details { flex-direction: column; gap: .25rem; }
  .prize-detail-sep { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
  .hero { padding: 5rem 1rem 3rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}
