:root {
  --bg:         #080808;
  --bg-2:       #101010;
  --card:       #161616;
  --card-hover: #1E1E1E;
  --border:     rgba(255,255,255,0.08);

  --green:      #2EE000;
  --green-lt:   #52FF28;
  --green-dk:   #1AAA00;
  --green-glow: rgba(46,224,0,0.2);

  --purple:     #7B5CF0;
  --purple-lt:  #9D80FF;

  --white:  #FFFFFF;
  --muted:  #999999;
  --light:  #CCCCCC;

  --gold:   #FFD700;
  --silver: #A8A9B4;
  --bronze: #CD7F32;

  --evo-up:   #4ADE80;
  --evo-down: #F87171;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.mascot {
  position: fixed;
  bottom: -30px;
  right: -30px;
  font-size: 160px;
  opacity: 0.03;
  pointer-events: none;
  transform: rotate(-12deg);
  z-index: 0;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 14px; }

.brand-x {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--muted);
  line-height: 1;
}

.nav-logo    { height: 40px; width: auto; object-fit: contain; }
.nav-logo-pp { max-width: 180px; }
.nav-logo-ze { height: 40px; max-width: 110px; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--white); }

.btn-primary { background: var(--green); color: #000; font-weight: 800; }

.btn-primary:hover {
  background: var(--green-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-glow);
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: 72px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow-green {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at 50% 30%, rgba(46,224,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-purple {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 80%, rgba(123,92,240,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(46,224,0,0.08);
  border: 1px solid rgba(46,224,0,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.25; }
}

.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-logo-ze { width: clamp(200px, 30vw, 420px); height: auto; object-fit: contain; }
.hero-logo-pp { width: clamp(300px, 48vw, 660px); height: auto; object-fit: contain; }

.hero-desc {
  margin: 20px auto 0;
  max-width: 460px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── KPI STRIP ────────────────────────────────────────────────────── */
.kpi-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 40px;
  margin: 0 auto;
  max-width: 800px;
}

.kpi { flex: 1; text-align: center; padding: 0 20px; }

.kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-top: 2px;
}

.kpi-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ── LAYOUT ───────────────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sec-title em { color: var(--green); font-style: normal; }

.sec-sub { font-size: 13px; color: var(--muted); }

.hr {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 0 40px 56px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* ── PODIUM ───────────────────────────────────────────────────────── */
.podium-section { padding-bottom: 60px; }

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  min-height: 300px;
}

.pod-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
}

.pod-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  transition: transform .2s;
}

.pod-card:hover { transform: translateY(-4px); }

.pod-crown {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
}

.pod-rank-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.c-gold   { color: var(--gold); }
.c-silver { color: var(--silver); }
.c-bronze { color: var(--bronze); }

.pod-icon {
  font-size: 52px;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

.pod-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pod-members { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }

.pod-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.pod-score-label {
  font-size: 11px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.pod-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.pod-step {
  width: 100%;
  border-radius: 6px 6px 0 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
}

/* ── LEADERBOARD ──────────────────────────────────────────────────── */
.lb-section { padding-bottom: 80px; }

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}

.tab {
  padding: 7px 20px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all .15s;
}

.tab.on { background: var(--green); color: #000; font-weight: 800; }

.table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.table-head {
  padding: 11px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: grid;
}

/* Players table: # | Name+login | Score */
.table-head--players,
.row--players { grid-template-columns: 56px 1fr 130px; }

/* Teams table:  # | Team       | Score */
.table-head--teams,
.row--teams   { grid-template-columns: 56px 1fr 130px; }

.table-head span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 56px 1fr 130px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .12s;
  cursor: pointer;
}

.row:last-child { border-bottom: none; }
.row:hover { background: rgba(255,255,255,0.02); }
.row.r1 { background: rgba(255,215,0,0.04); }
.row.r2 { background: rgba(168,169,180,0.03); }
.row.r3 { background: rgba(205,127,50,0.03); }

.rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

.rank-medal { font-size: 19px; }

.player { display: flex; align-items: center; gap: 11px; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.p-name { font-weight: 600; font-size: 14px; color: var(--white); }
.p-team { font-size: 11px; color: var(--muted); margin-top: 1px; }

.score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.score-top { color: var(--green); }

/* ── LOADING / ERROR STATES ───────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.loading-row,
.error-row,
.no-data {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.error-row { color: var(--evo-down); }

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  text-align: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.foot-logo    { height: 30px; width: auto; object-fit: contain; }
.foot-logo-ze { height: 30px; max-width: 90px; }

.foot-text { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.foot-links { display: flex; justify-content: center; gap: 20px; }

.foot-links a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.foot-links a:hover { color: var(--green); }
