
:root{
  --bg:#0d2b18;
  --header:#145c2c;
  --gold:#ffd700;
  --silver:#c0c0c0;
  --bronze:#cd7f32;

  --text:#ffffff;
  --muted:rgba(255,255,255,.80);
  --line:rgba(255,255,255,.12);
  --shadow:0 10px 30px rgba(0,0,0,.35);

  --radius:16px;
  --max:1100px;

  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:22px;
  --space-5:30px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(20,92,44,.35), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(255,215,0,.12), transparent 60%),
    var(--bg);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
small{ color:var(--muted); }

.container{
  width:min(100% - 32px, var(--max));
  margin:0 auto;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(13,43,24,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-3);
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand__logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
  flex:0 0 auto;
}
.brand__logo svg{ width:26px; height:26px; opacity:.95; }
.brand__title{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brand__title strong{
  font-size:16px;
  letter-spacing:.2px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand__title span{
  font-size:12.5px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  background:rgba(255,255,255,.04);
}
.nav a[aria-current="page"]{
  color:var(--text);
  border-color:rgba(255,215,0,.35);
  background:rgba(255,215,0,.10);
}

.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}

@media (max-width: 860px){
  .menu-btn{ display:inline-flex; align-items:center; gap:8px; }
  .nav{ display:none; width:100%; }
  .nav.is-open{ display:flex; justify-content:flex-start; }
  .header__inner{ flex-wrap:wrap; }
}

/* Hero */
.hero{
  padding: var(--space-5) 0 var(--space-4);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--space-4);
  align-items:stretch;
}
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
}
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
  box-shadow:var(--shadow);
}
.card__body{ padding: var(--space-4); }
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,215,0,.25);
  background:rgba(255,215,0,.08);
  color:rgba(255,255,255,.92);
  font-size:12.5px;
  letter-spacing:.2px;
}
h1{
  margin: 12px 0 8px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height:1.1;
}
.lede{
  margin: 0 0 14px;
  color:var(--muted);
  font-size: 15.5px;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.12);
  color:rgba(255,255,255,.9);
  font-size:13px;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:650;
  font-size:14px;
}
.btn--gold{
  border-color: rgba(255,215,0,.35);
  background: rgba(255,215,0,.14);
}
.btn:hover{ text-decoration:none; filter:brightness(1.05); }

/* Sections */
.section{ padding: 0 0 var(--space-5); }
.section h2{
  margin: 0 0 12px;
  font-size: 20px;
}
.section p, .section li{ color:var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr; } }

.week{
  padding: 14px 14px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.12);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.week__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.week__title{
  font-weight:800;
  letter-spacing:.1px;
}
.week__meta{
  color:var(--muted);
  font-size:13px;
}
.week__cta{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 13.5px;
}

/* Leaderboard table */
.table-wrap{
  overflow:auto;
  border-radius: var(--radius);
  border:1px solid rgba(20,92,44,.85);
  background: var(--bg);
  box-shadow: var(--shadow);
}
table.leaderboard{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 520px;
  font-size:14px;
}
table.leaderboard th{
  background: var(--header);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
table.leaderboard td{
  padding: 9px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
table.leaderboard th:first-child,
table.leaderboard td:first-child{ text-align:center; width:80px; white-space:nowrap; }
table.leaderboard th:nth-child(2),
table.leaderboard td:nth-child(2){ text-align:left; }
table.leaderboard th:last-child,
table.leaderboard td:last-child{ text-align:right; width:120px; white-space:nowrap; }

tr.row--gold td{ background: var(--gold); color:#000; font-weight:800; border-top-color: rgba(0,0,0,.08); }
tr.row--silver td{ background: var(--silver); color:#000; font-weight:800; border-top-color: rgba(0,0,0,.08); }
tr.row--bronze td{ background: var(--bronze); color:#000; font-weight:800; border-top-color: rgba(0,0,0,.08); }
tr.row--base td{ background: var(--bg); color: var(--text); }

/* Footer */
.footer{
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.10);
}
.footer__inner{
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-size: 13px;
}
