/* The game leaderboards (leaderboard.js). Neon purple and pink, matching the games. */
.lb { --lb-pink: #ff2bd6; --lb-violet: #b04dff; --lb-gold: #ffb347; --lb-line: rgba(255, 255, 255, .12); }
.lb .lb-switch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; padding: 0; list-style: none; }
.lb .lb-switch a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--lb-line); color: #fff; text-decoration: none;
  font: 800 .78rem/1 Oswald, sans-serif; letter-spacing: .16em; text-transform: uppercase; background: rgba(18, 10, 42, .6); transition: background .2s, border-color .2s, box-shadow .2s; }
.lb .lb-switch a:hover, .lb .lb-switch a:focus-visible { border-color: var(--lb-pink); box-shadow: 0 0 18px rgba(255, 43, 214, .35); }
.lb .lb-switch a[aria-current="page"] { background: linear-gradient(135deg, var(--lb-pink), var(--lb-violet)); border-color: transparent; box-shadow: 0 0 22px rgba(255, 43, 214, .45); }

.lb .lb-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.lb .lb-totals li { padding: 18px 16px; border-radius: 16px; text-align: center; background: linear-gradient(160deg, rgba(46, 11, 87, .75), rgba(20, 5, 43, .85));
  border: 1px solid rgba(255, 43, 214, .28); box-shadow: 0 0 26px rgba(176, 77, 255, .18); }
.lb .lb-totals b { display: block; font: 800 clamp(1.4rem, 3vw, 2.1rem)/1.1 Oswald, sans-serif; color: #fff; text-shadow: 0 0 16px rgba(255, 43, 214, .55); }
.lb .lb-totals span { display: block; margin-top: 6px; font: 700 .68rem Oswald, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #d9c4ff; }

.lb .lb-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.lb .lb-periods { display: flex; gap: 6px; flex-wrap: wrap; }
.lb .lb-periods button, .lb .lb-head-row button { cursor: pointer; font: 800 .72rem/1 Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.lb .lb-periods button { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--lb-line); background: rgba(255, 255, 255, .04); }
.lb .lb-periods button[aria-pressed="true"] { border-color: var(--lb-pink); background: rgba(255, 43, 214, .18); box-shadow: 0 0 14px rgba(255, 43, 214, .3); }
.lb .lb-play { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; text-decoration: none; color: #fff;
  font: 800 .8rem/1 Oswald, sans-serif; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(135deg, var(--lb-pink), var(--lb-violet)); box-shadow: 0 0 22px rgba(255, 43, 214, .45); }

.lb .lb-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(255, 43, 214, .3); background: rgba(12, 4, 30, .82); box-shadow: 0 0 40px rgba(176, 77, 255, .2); }
.lb table { width: 100%; border-collapse: collapse; min-width: 640px; color: #efe6ff; font: 400 .95rem/1.3 Lato, system-ui, sans-serif; }
.lb th { position: sticky; top: 0; padding: 0; text-align: left; background: rgba(46, 11, 87, .95); border-bottom: 1px solid rgba(255, 43, 214, .35); }
.lb th:first-child, .lb th:nth-child(2) { padding: 14px 14px; font: 800 .72rem Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.lb .lb-head-row button { display: block; width: 100%; padding: 14px 12px; text-align: left; border: 0; background: none; white-space: nowrap; }
.lb .lb-head-row button:hover, .lb .lb-head-row button:focus-visible { color: var(--lb-pink); }
.lb .lb-head-row button[aria-pressed="true"] { color: var(--lb-pink); text-shadow: 0 0 10px rgba(255, 43, 214, .6); }
.lb .lb-head-row button[aria-pressed="true"]::after { content: " ▾"; }
.lb th:last-child { padding: 14px 12px; font: 800 .72rem Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.lb td { padding: 12px 12px; border-bottom: 1px solid var(--lb-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb td:first-child, .lb td:nth-child(2) { padding-left: 14px; }
.lb tbody tr:hover td { background: rgba(255, 255, 255, .04); }
.lb .lb-rank { width: 52px; font: 800 1rem Oswald, sans-serif; color: #d9c4ff; }
.lb .lb-name { font-weight: 800; color: #fff; }
.lb .lb-top td { background: linear-gradient(90deg, rgba(255, 179, 71, .1), transparent 60%); }
.lb .lb-top1 .lb-name { color: var(--lb-gold); text-shadow: 0 0 12px rgba(255, 179, 71, .5); }
.lb .lb-me td { box-shadow: inset 0 0 0 9999px rgba(255, 43, 214, .1); }
.lb .lb-me .lb-name::after { content: " (you)"; font-weight: 400; color: #ff8ae6; }
.lb .lb-when { color: #b8a3dc; font-size: .85rem; }
.lb .lb-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 800 .66rem Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .08); color: #d9c4ff; }
.lb .lb-tag.lb-win { background: rgba(78, 255, 170, .14); color: #7dffc4; }
.lb .lb-empty { padding: 40px 14px; text-align: center; white-space: normal; color: #d9c4ff; }
.lb .lb-status { margin: 12px 0 0; font-size: .82rem; color: #b8a3dc; text-align: right; }
.lb .lb-how { margin-top: 34px; color: #d9c4ff; }
.lb .lb-how h2 { margin-bottom: .5em; }
.lb .lb-how ul { padding-left: 1.2em; }
@media (max-width: 760px) {
  .lb .lb-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb .lb-bar { justify-content: center; }
  .lb .lb-status { text-align: center; }
}
