:root {
  --bg: #090b10;
  --bg-card: #11151f;
  --bg-card-hover: #161b28;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(139, 92, 246, 0.45);
  --ink: #f8fafc;
  --soft: #94a3b8;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --blue: #38bdf8;
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #d97706;
  --green: #10b981;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1000px 500px at 50% -10%, rgba(124, 58, 237, 0.22), transparent 70%), var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Sora', system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.1rem 'Sora', sans-serif; }
.brand img { height: 32px; width: 32px; border-radius: 8px; object-fit: contain; }
.brand .x { color: var(--soft); font-weight: 600; }
.brand .st { height: 24px; width: auto; border-radius: 5px; }
.bar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.bar nav a {
  text-decoration: none;
  color: var(--soft);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.bar nav a:hover, .bar nav a[aria-current] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.code-pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 10px;
  font: 600 0.85rem 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
}
.code-pill:hover { border-color: var(--gold); }
.code-pill b { color: var(--gold); font-family: 'Sora', sans-serif; }
.copy-tag {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.code-pill.copied .copy-tag { background: rgba(16, 185, 129, 0.2); color: var(--green); }
.kick { display: block; height: 34px; }
.kick img { height: 100%; width: auto; border-radius: 8px; display: block; }

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px -6px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -6px rgba(124, 58, 237, 0.6); }
.btn.alt { background: var(--bg-card); border-color: var(--line); box-shadow: none; color: var(--ink); }
.btn.alt:hover { border-color: var(--line-bright); background: var(--bg-card-hover); }
.btn.sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 10px; }

.tag-badge {
  display: inline-block;
  font: 700 0.7rem 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  align-self: flex-start;
}
.tag-badge.gold { background: rgba(251, 191, 36, 0.14); color: var(--gold); border-color: rgba(251, 191, 36, 0.3); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 12px auto 16px; max-width: 16ch; }
.hero p { color: var(--soft); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections & Grids */
section { padding: 42px 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 8px; }
.lead { color: var(--soft); margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-bright); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--soft); flex: 1; font-size: 0.95rem; }
.card .big { font: 800 1.9rem 'Sora', sans-serif; color: var(--gold); }
.card .btn { align-self: flex-start; width: 100%; }
.req-note { font-size: 0.82rem; color: var(--soft); background: rgba(255,255,255,0.03); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }

/* Soaked.gg Leaderboard Header & Stats */
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.lb-prize-hero { font: 800 clamp(2.4rem, 5vw, 3.4rem) 'Sora', sans-serif; color: var(--ink); line-height: 1; margin-top: 6px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.timer-box { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.timer-label { font: 700 0.72rem 'Sora', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
.timer { display: flex; gap: 8px; }
.timer div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 66px;
}
.timer b { display: block; font: 800 1.35rem 'Sora', sans-serif; font-variant-numeric: tabular-nums; }
.timer span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }

/* Podium (Soaked.gg Style) */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.pod-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pod-card.rank-1 {
  order: 2;
  padding: 36px 20px 30px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, var(--bg-card) 100%);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 36px -10px rgba(251, 191, 36, 0.2);
}
.pod-card.rank-2 { order: 1; border-color: rgba(203, 213, 225, 0.3); }
.pod-card.rank-3 { order: 3; border-color: rgba(217, 119, 6, 0.35); }
.pod-rank {
  font: 800 0.78rem 'Sora', sans-serif;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.rank-1 .pod-rank { background: var(--gold); color: #111; }
.rank-2 .pod-rank { background: var(--silver); color: #111; }
.rank-3 .pod-rank { background: var(--bronze); color: #fff; }
.pod-name { font: 700 1.2rem ui-monospace, monospace; margin-top: 6px; }
.pod-wager { font-size: 0.88rem; color: var(--soft); }
.pod-wager b { color: var(--blue); font-family: 'Sora', sans-serif; }
.pod-prize { font: 800 1.75rem 'Sora', sans-serif; color: var(--blue); margin-top: 6px; }
.rank-1 .pod-prize { color: var(--gold); font-size: 2rem; }
.pod-reward-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--soft); }

/* Total Weighted Wager Bar (Soaked.gg Style) */
.summary-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.summary-bar .lbl { font: 700 0.78rem 'Sora', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
.summary-bar .sub { font-size: 0.88rem; color: var(--soft); }
.summary-bar .val { font: 800 1.75rem 'Sora', sans-serif; color: var(--ink); }

/* Prize Ladder Grid */
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.ladder-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ladder-item span { font: 700 0.88rem 'Sora', sans-serif; color: var(--soft); }
.ladder-item b { font: 800 1rem 'Sora', sans-serif; color: var(--ink); }

/* Standings Table */
.tbl {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
td { padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.96rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
th:nth-child(n+3), td:nth-child(n+3) { text-align: right; }
td:first-child { font: 700 0.92rem 'Sora', sans-serif; color: var(--soft); width: 80px; }
td:nth-child(2) { font-family: ui-monospace, monospace; font-weight: 600; }
td:nth-child(3) { color: var(--blue); font-weight: 700; font-family: 'Sora', sans-serif; }
td:last-child { color: var(--ink); font-weight: 700; font-family: 'Sora', sans-serif; }

/* FAQ Accordion */
details.faq {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
details.faq summary { font: 700 1rem 'Sora', sans-serif; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--soft); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--soft); margin-top: 10px; font-size: 0.94rem; }

/* Partner Cards */
.pcard { align-items: center; text-align: center; }
.pcard .logo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--line); }
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hidden Developer Admin Bar */
.badge { background: var(--gold); color: #111; font-weight: 800; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.adm-bar {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.adm-bar[hidden] { display: none; }
.adm-bar input { background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; }

/* Footer (Soaked.gg Disclaimer Style) */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--soft); font-size: 0.9rem; margin-top: 48px; }
.ftr-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ftr-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.ftr-cols h4 { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ftr-cols a { display: block; text-decoration: none; color: var(--soft); margin-bottom: 6px; font-size: 0.9rem; }
.ftr-cols a:hover { color: var(--ink); }
.ftr-disclaimer { display: flex; align-items: center; gap: 14px; padding-top: 22px; font-size: 0.84rem; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font: 800 0.8rem 'Sora', sans-serif;
  color: var(--ink);
}

@media (max-width: 740px) {
  .podium { grid-template-columns: 1fr; }
  .pod-card.rank-1, .pod-card.rank-2, .pod-card.rank-3 { order: unset; }
  .timer-box { align-items: flex-start; }
}
