/* $KEEPER live sections: leaderboards, Hall of Fame, /stats page. Uses the site.css palette. */
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: rgba(9,20,44,.85); border: 1.5px solid rgba(47,211,192,.45);
  color: var(--mint); font-size: 14px; font-weight: 800; text-decoration: none;
}
.quick-links a:hover { border-color: var(--gold); color: var(--gold); }

/* contest note */
.contest-note {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(242,193,78,.16), rgba(242,193,78,.06));
  border: 1.5px solid rgba(232,181,74,.55); color: #fff7dc; font-size: 15px; line-height: 1.45;
}
.contest-note strong { color: var(--gold); }
.contest-note #contestLeft { display: block; color: var(--mint); font-weight: 700; font-size: 14px; }

/* leaderboards */
.lb-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lb-card {
  border-radius: var(--radius); background: rgba(9,20,44,.85);
  border: 1.5px solid rgba(232,181,74,.45); box-shadow: 0 8px 24px rgba(0,0,0,.25); overflow: hidden;
}
.lb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(47,211,192,.2);
  background: linear-gradient(180deg, rgba(28,52,102,.7), rgba(9,20,44,.2)); }
.lb-head h3 { margin: 0; flex: 1; font-size: 17px; color: #fff7dc; line-height: 1.2; }
.lb-head h3 small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.lb-head .lb-play {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 12px;
  background: linear-gradient(180deg, #ffe28a, #dc9a26); color: #2a1a00; font-weight: 900; font-size: 14px;
  text-decoration: none; box-shadow: 0 2px 0 #8a5a12;
}
.lb-list { list-style: none; margin: 0; padding: 6px 8px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 12px; font-size: 15px; }
.lb-row + .lb-row { border-top: 1px solid rgba(255,255,255,.05); }
.lb-row.lead { background: rgba(242,193,78,.12); }
.lb-rank { flex: 0 0 30px; text-align: center; font-weight: 900; color: var(--muted); font-size: 16px; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: #fff7dc; }
.lb-score { flex: none; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: var(--mint); font-size: 14px; }
.lb-status { margin: 0; padding: 14px 16px 16px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.lb-stamp { display: block; padding: 0 16px 12px; font-size: 12px; color: #7fa09a; text-align: right; }
.lb-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Hall of Fame */
.hall-intro { margin: 0 0 14px; text-align: center; color: var(--text); font-size: 15px; }
.hall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hall-row {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: rgba(9,20,44,.85); border: 1.5px solid rgba(232,181,74,.45);
}
.hall-row:first-child { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(242,193,78,.25), 0 8px 24px rgba(242,193,78,.12); }
.hall-medal { flex: none; font-size: 30px; line-height: 1; }
.hall-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hall-name { color: #fff7dc; font-size: 17px; overflow-wrap: anywhere; }
.hall-sub { font-size: 13px; color: var(--muted); }
.hall-sub a { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.hall-pay { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.hall-amt { color: var(--gold); font-size: 15px; white-space: nowrap; }
.hall-tx { font-size: 13px; font-weight: 800; }
.hall-check { font-size: 12px; color: #3ddc97; font-weight: 700; min-height: 1em; }
.hall-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 420px) {
  .hall-row { flex-wrap: wrap; }
  .hall-pay { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding-left: 42px; text-align: left; gap: 2px 10px; }
  .hall-check { flex-basis: 100%; }
}

/* desktop grid on the home page */
@media (min-width: 700px) { .lb-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 900px) {
  .below #boards, .below #hall { grid-column: 1 / -1; padding: 0; }
  .below #boards h2, .below #hall h2 { text-align: center; }
  .below #hall .wrap { max-width: 44rem; margin: 0 auto; }
}

/* ---------- /stats page ---------- */
body.sub .top { position: sticky; background: rgba(5,11,24,.94); border-bottom: 1px solid rgba(232,181,74,.25); backdrop-filter: blur(6px); }
body.sub .top nav a.on { color: var(--gold); }
.stats-hero { padding: 28px 0 6px; text-align: center; }
.stats-hero h1 { font-size: clamp(32px, 9vw, 52px); margin-bottom: 6px; }
.stats-hero p { margin: 0 auto; max-width: 34rem; color: var(--mint); font-weight: 600; }
.stats-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.stats-bar button { appearance: none; border: 0; border-radius: 12px; height: 34px; padding: 0 14px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px;
  background: linear-gradient(180deg, #24447e, #13285a); color: #fff; box-shadow: 0 2px 0 #06102a, 0 0 0 1.5px var(--teal); }
.stats-bar button:disabled { opacity: .6; cursor: wait; }
.ely-wrap { border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(47,211,192,.35); background: #0B0A14; }
.ely-wrap iframe { display: block; }
.chart-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.stat-card { padding: 16px; border-radius: var(--radius); background: rgba(9,20,44,.85); border: 1.5px solid rgba(232,181,74,.45); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.stat-card h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat-big { display: block; font-size: clamp(28px, 8vw, 36px); font-weight: 900; color: var(--gold); line-height: 1.15; text-shadow: 0 2px 0 #6b4a10; overflow-wrap: anywhere; }
.stat-big small { font-size: 15px; color: #fff7dc; text-shadow: none; font-weight: 800; }
.stat-sub { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.stat-sub.muted { color: var(--muted); font-size: 13px; }
.kv { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; }
.kv li span:first-child { color: var(--muted); }
.kv li span:last-child { color: #fff7dc; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.stat-card .addr-row { margin-top: 10px; }
.stat-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.wide { grid-column: 1 / -1; }
.stats-section { padding: 26px 0 4px; }
.stats-section h2 { margin: 0 0 14px; font-size: clamp(22px, 6vw, 28px); color: var(--gold); text-shadow: 0 2px 0 #6b4a10; text-align: center; }
.stats-section .wrap { width: min(100% - 32px, 56rem); }
