/* leaderboard.css */

/* Allow scrolling */
html, body {
  overflow: auto !important;
  height: auto !important;
}

/* Hide homepage-only elements */
.stage, .tagline, .crowd-ticker,
#board-section, .manifesto-link { display: none !important; }

/* ── BACK ARROW ── */
.lb-back {
  position: fixed;
  top: max(3vh, 16px);
  left: max(3vw, 20px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(240,240,240,0.5);
  text-decoration: none;
  z-index: 100;
  transition: color 0.15s;
}
.lb-back:hover { color: #f0f0f0; }

/* ── MAIN ── */
.lb-main {
  min-height: 100vh;
  padding: max(10vh, 64px) max(8vw, 24px) 120px;
  max-width: 840px;
  margin: 0 auto;
}

.lb-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: clamp(9px, 0.85vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(240,240,240,0.35);
  margin-bottom: 0.4em;
}

.lb-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 700;
  color: #f0f0f0;
  line-height: 0.9;
  margin-bottom: 0.35em;
}

.lb-challenger {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.2vw, 15px);
  color: rgba(240,240,240,0.55);
  font-style: italic;
  margin-bottom: 2.5em;
  min-height: 1.4em;
}

/* ── TABLE ── */
.lb-row {
  display: grid;
  grid-template-columns: 3em 1fr auto auto auto;
  align-items: center;
  gap: 0 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lb-row--leader {
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 16px;
  margin-bottom: 6px;
}

.lb-rank {
  font-family: 'Inter', sans-serif;
  font-size: clamp(9px, 0.85vw, 11px);
  color: rgba(240,240,240,0.3);
  text-align: right;
}
.lb-row--leader .lb-rank { color: rgba(240,240,240,0.55); }

.lb-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  color: rgba(240,240,240,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-row--leader .lb-name { color: #f0f0f0; }

.lb-amount {
  font-family: 'Teko', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  color: rgba(240,240,240,0.65);
  text-align: right;
  white-space: nowrap;
}
.lb-row--leader .lb-amount { color: #f0f0f0; }

.lb-gap {
  font-family: 'Inter', sans-serif;
  font-size: clamp(9px, 0.8vw, 10px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240,240,240,0.28);
  white-space: nowrap;
  text-align: right;
}
.lb-row--leader .lb-gap {
  color: rgba(240,240,240,0.5);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.lb-actions {
  display: flex;
  gap: 6px;
}

.lb-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(240,240,240,0.55);
  font-family: 'Inter', sans-serif;
  font-size: clamp(8px, 0.75vw, 10px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.lb-btn:hover {
  color: #000;
  background: #f0f0f0;
  border-color: #f0f0f0;
}
.lb-btn--beat {
  color: #f0f0f0;
  border-color: rgba(255,255,255,0.5);
}
.lb-btn--beat:hover {
  background: #f0f0f0;
  color: #000;
}

/* ── INLINE CTA ── */
.lb-cta-btn {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #000;
  background: #f0f0f0;
  border: none;
  padding: 0.55em 2.2em;
  cursor: pointer;
  transition: background 0.1s;
  margin-bottom: 2.2em;
}
.lb-cta-btn:hover { background: #fff; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .lb-row {
    grid-template-columns: 2.2em 1fr auto auto;
    grid-template-rows: auto auto;
    row-gap: 5px;
    column-gap: 10px;
    padding: 10px 0;
  }
  .lb-gap { display: none; }
  .lb-actions {
    grid-column: 2 / -1;
    padding-bottom: 2px;
  }
  .lb-btn { font-size: 10px; padding: 0.5em 1em; }
  .lb-cta-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .lb-cta-btn { padding: 0.65em 2em; }
}
