/* ==========================================================================
   JustPvP network leaderboards — competitive refresh
   Palette: in-game sidebar red #FF2A1F -> gold #FFB300, muted #9B9BA8,
   charcoal base. Mobile-first; no external fonts or images.
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: #101319;
  --panel-2: #151922;
  --panel-3: #1a1f29;
  --line: #242938;
  --line-2: #303648;
  --text: #f5f6f8;
  --muted: #9b9ba8;
  --muted-2: #6f7383;
  --red: #ff2a1f;
  --red-2: #ff5a2a;
  --gold: #ffb300;
  --gold-2: #ffd166;
  --silver: #c9d3e6;
  --bronze: #d78d55;
  --mint: #3ddc84;
  --grad: linear-gradient(105deg, #ff2a1f 0%, #ff5a1f 46%, #ffb300 100%);
  --grad-soft: linear-gradient(105deg, rgba(255, 42, 31, 0.16), rgba(255, 179, 0, 0.1));
  --shell: 1180px;
  --radius: 18px;
  --shadow: 0 30px 70px -30px #000;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-dock { padding-bottom: 84px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(72% 52% at 84% -8%, rgba(255, 42, 31, 0.2), transparent 62%),
    radial-gradient(58% 42% at 4% 102%, rgba(255, 179, 0, 0.12), transparent 64%),
    radial-gradient(80% 60% at 50% 40%, #0c0e14 0%, #07080b 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 56% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 56% at 50% 0%, #000 0%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

::selection { background: rgba(255, 42, 31, 0.55); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #14100a;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

/* ===== top bar ========================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 max(16px, calc((100vw - var(--shell)) / 2));
  background: rgba(7, 8, 11, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #120b02;
  font-size: 18px;
  font-weight: 900;
  transform: skewX(-8deg);
  box-shadow: 0 10px 24px -10px rgba(255, 42, 31, 0.9);
}

.brand b { color: var(--red); }
.brand i {
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-left: 2px;
}

.topnav {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.topnav a { transition: color 160ms ease; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); }
.topnav a[aria-current="page"] { position: relative; }
.topnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -17px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.topbar-spacer { flex: 1; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 42, 31, 0.45);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 42, 31, 0.16), rgba(255, 42, 31, 0.04));
  color: #ffe8e4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.play-btn span { color: var(--gold); }
.play-btn:hover {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(255, 42, 31, 0.3), rgba(255, 179, 0, 0.08));
  transform: translateY(-1px);
}

/* ===== shell =========================================================== */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px 72px;
}

/* ===== mode switch ===================================================== */

.mode-switch {
  display: flex;
  gap: 8px;
  padding: 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}
.mode-switch::-webkit-scrollbar { display: none; }

.mode-chip {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 10px;
  min-width: 138px;
  padding: 9px 13px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #12151c, #0c0e13);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.mode-chip b {
  grid-row: 1;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.mode-chip small {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mode-chip .dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4e5363;
}
.mode-chip .dot.live { background: var(--mint); box-shadow: 0 0 9px rgba(61, 220, 132, 0.9); }
.mode-chip .dot.warm { background: var(--gold); box-shadow: 0 0 9px rgba(255, 179, 0, 0.7); }
.mode-chip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.mode-chip.is-active {
  border-color: transparent;
  background:
    linear-gradient(#151922, #0f1218) padding-box,
    var(--grad) border-box;
  box-shadow: 0 16px 34px -24px rgba(255, 42, 31, 0.95);
}
.mode-chip.is-active small { color: #cfd2db; }
.mode-chip.is-active b { color: #fff; }
.mode-chip em {
  font-style: normal;
  color: var(--gold);
}

/* ===== hero ============================================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 26px 0 26px;
  isolation: isolate;
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kicker-line {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.kicker .sep { color: #4c5160; }

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 179, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.08);
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.season-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.75rem, 9.6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.043em;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .outline {
  display: block;
  margin-top: 10px;
  font-size: 0.52em;
  letter-spacing: 0.015em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.32);
}

.lede {
  max-width: 50ch;
  margin-top: 16px;
  color: #b6b9c5;
  font-size: 14px;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 22px;
}
.hero-stat b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-stat b small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hero-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-stat .accent { color: var(--gold); }

.hero-mark {
  position: absolute;
  right: -4%;
  top: 12px;
  z-index: 0;
  color: transparent;
  font-size: clamp(150px, 30vw, 300px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.07em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
}
.hero-mark::after {
  content: "";
  position: absolute;
  inset: 18% 8% 4% 8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 42, 31, 0.16), transparent 72%);
  filter: blur(6px);
}

/* ===== control block: server select + filters + stat tabs ============== */

.lb-controls {
  margin: 16px 0 4px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 19, 25, 0.72);
  box-shadow: var(--shadow);
}
.lb-controls .mode-switch { padding: 0 0 10px; }
.lb-controls .filter-selects { margin: 0 0 10px; }
.lb-controls .rank-toolbar { margin-bottom: 0; }
.lb-controls .status { margin: 10px 0 0; }

/* ===== ranking area ==================================================== */

.rankings { margin-top: 4px; }

.rank-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.board-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.board-tabs::-webkit-scrollbar { display: none; }

.board-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #12151c, #0c0e13);
  color: #c5c8d2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.board-tabs button i {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.board-tabs button:hover { border-color: var(--line-2); color: #fff; }
.board-tabs button[aria-selected="true"] {
  border-color: transparent;
  background: var(--grad);
  color: #170d03;
  box-shadow: 0 14px 30px -16px rgba(255, 42, 31, 0.95);
}
.board-tabs button[aria-selected="true"] i {
  background: rgba(20, 12, 2, 0.22);
  color: #241505;
}

/* ===== stat filters + row count ======================================== */

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 19, 25, 0.72);
}
.filter-label {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c0e13;
  color: #c5c8d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.filter-chips button i {
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.filter-chips button:hover { border-color: var(--line-2); color: #fff; }
.filter-chips button[aria-pressed="true"] {
  border-color: rgba(255, 179, 0, 0.55);
  background: rgba(255, 179, 0, 0.1);
  color: var(--gold-2);
}
.filter-chips button[aria-pressed="true"] i { color: var(--gold); }
.filter-loading { color: var(--muted-2); font-size: 10px; font-weight: 700; }

/* ===== mode / kit selectors ============================================ */

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.filter-selects[hidden] { display: none; }

.filter-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 170px;
  max-width: 360px;
  min-width: 0;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 19, 25, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.filter-field > span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter-field select {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 11px) 13px, calc(100% - 6px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}
.filter-field select option { background: #0c0e13; color: var(--text); }
.filter-field:focus-within {
  border-color: rgba(255, 179, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

/* ===== mode tabs repeated in the table header ========================== */

.table-modes {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.table-modes::-webkit-scrollbar { display: none; }
.table-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e13;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-mode b { font-weight: 900; }
.table-mode .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4e5363;
}
.table-mode .dot.live { background: var(--mint); box-shadow: 0 0 8px rgba(61, 220, 132, 0.9); }
.table-mode .dot.warm { background: var(--gold); box-shadow: 0 0 8px rgba(255, 179, 0, 0.7); }
.table-mode:hover { border-color: var(--line-2); color: #fff; }
.table-mode.is-active {
  color: #fff;
  border-color: rgba(255, 42, 31, 0.55);
  background: linear-gradient(180deg, rgba(255, 42, 31, 0.2), rgba(255, 179, 0, 0.06));
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0d12;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search:focus-within {
  border-color: rgba(255, 42, 31, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 42, 31, 0.12);
}
.search svg { flex: 0 0 auto; color: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder { color: var(--muted-2); }
.search kbd {
  display: none;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 179, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 179, 0, 0.07);
  color: #f3d69a;
  font-size: 12px;
  font-weight: 600;
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== podium ========================================================== */

.podium-wrap {
  position: relative;
  padding: 18px 12px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(58% 62% at 50% -6%, rgba(255, 42, 31, 0.16), transparent 70%),
    linear-gradient(180deg, #11141b, #0a0c11 72%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.podium-wrap::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: 0;
  height: 46%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(320px) rotateX(60deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(transparent, #000 55%);
  mask-image: linear-gradient(transparent, #000 55%);
  opacity: 0.7;
  pointer-events: none;
}
.podium-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 14px;
}
.podium-head h2 {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #dfe2ea;
}
.podium-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.podium {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "first" "second" "third";
  gap: 10px;
  align-items: end;
  padding-bottom: 0;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 0;
  border: 1px solid var(--line);
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #161a23 0%, #0e1117 100%);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
}
.podium-card.p1 { grid-area: first; }
.podium-card.p2 { grid-area: second; }
.podium-card.p3 { grid-area: third; }
.podium-card.p1 {
  border-color: rgba(255, 179, 0, 0.42);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 179, 0, 0.16), transparent 70%),
    linear-gradient(180deg, #1a1c1f 0%, #121207 100%);
  box-shadow: 0 0 0 1px rgba(255, 179, 0, 0.12), 0 34px 60px -34px rgba(255, 179, 0, 0.55);
}
.podium-card.p2 { border-color: rgba(201, 211, 230, 0.22); }
.podium-card.p3 { border-color: rgba(215, 141, 85, 0.24); }
@media (hover: hover) {
  .podium-card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 0, 0.5); }
}

.medal {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #12151c;
  color: #cfd4e0;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.p1 .medal {
  border-color: rgba(255, 209, 102, 0.7);
  background: linear-gradient(150deg, #ffe6a3, #ffb300 70%);
  color: #241800;
  box-shadow: 0 6px 16px -6px rgba(255, 179, 0, 0.9);
}
.p2 .medal { background: linear-gradient(150deg, #eef2fb, #b9c3d6 70%); color: #1a1e26; border-color: #eef2fb66; }
.p3 .medal { background: linear-gradient(150deg, #e6b088, #c07a43 70%); color: #2a1407; border-color: #e6b08855; }

.head {
  --head-size: 46px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--head-size);
  height: var(--head-size);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 20%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(160deg, #232833, #141821);
}
.head-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.head-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}
.head.is-empty {
  display: grid;
  place-items: center;
}
.head .monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, rgba(255, 42, 31, 0.38), rgba(255, 179, 0, 0.2));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.head-xl {
  --head-size: 132px;
  border-radius: 18px;
  margin: 10px auto 0;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.85);
}
.head-xl .monogram { font-size: 46px; border-radius: 18px; }
.p1 .head-xl { --head-size: 178px; }

.p-name {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.p1 .p-name { font-size: 22px; color: #ffe6a3; }
.p-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.p1 .p-score { font-size: 36px; }
.p-score small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.p-meta {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.pedestal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% + 24px);
  height: 40px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.16) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #3a3f4d, #232732);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.p1 .pedestal {
  height: 56px;
  background:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.18) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #ffcf5c, #ffb300 60%, #c47d00);
  color: rgba(35, 22, 0, 0.72);
}
.p2 .pedestal {
  background:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.14) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #dfe6f4, #b6c0d3 65%, #8c96a8);
  color: rgba(20, 24, 32, 0.68);
}
.p3 .pedestal {
  background:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.14) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #e2ad82, #c07a43 65%, #96562c);
  color: rgba(34, 17, 6, 0.7);
}

/* ===== table =========================================================== */

.table-card {
  margin-top: 14px;
  scroll-margin-top: 84px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #101319, #0b0d12);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.table-title { min-width: 0; flex: 1 1 240px; }
.table-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #e4e6ed;
}
.table-head h2::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 3px;
  background: var(--grad);
}
.table-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table-kicker b { color: var(--gold-2); font-weight: 900; }
.table-kicker .sep { color: #404552; }

.table-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rank-table thead th {
  padding: 10px 14px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rank-table thead th.num { text-align: right; }
.rank-table thead th.metric-col { color: var(--gold-2); }
.rank-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 160ms ease, box-shadow 160ms ease;
  cursor: default;
}
.rank-table tbody tr:last-child { border-bottom: 0; }
.rank-table td { padding: 10px 14px; vertical-align: middle; white-space: nowrap; }
.rank-table td.num { text-align: right; }
.rank-table td.player-col { width: 100%; max-width: 0; }
.rank-table th.rank-col,
.rank-table td.rank-col { width: 46px; min-width: 46px; }
.rank-table tbody tr.row-1 { background: linear-gradient(90deg, rgba(255, 179, 0, 0.09), transparent 58%); }
.rank-table tbody tr.row-2 { background: linear-gradient(90deg, rgba(201, 211, 230, 0.055), transparent 58%); }
.rank-table tbody tr.row-3 { background: linear-gradient(90deg, rgba(215, 141, 85, 0.07), transparent 58%); }
@media (hover: hover) {
  .rank-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 42, 31, 0.14), rgba(255, 179, 0, 0.05) 58%, transparent);
    box-shadow: inset 3px 0 0 var(--red);
  }
}
.rank-table tbody tr.is-hover {
  background: linear-gradient(90deg, rgba(255, 42, 31, 0.14), rgba(255, 179, 0, 0.05) 58%, transparent);
  box-shadow: inset 3px 0 0 var(--red);
}
.rank-table tbody tr.is-hover .head {
  transform: scale(1.04);
  border-color: rgba(255, 179, 0, 0.45);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #141821;
  color: #9aa0b0;
  font-size: 12px;
  font-weight: 900;
}
.rank-badge.r1 {
  border-color: rgba(255, 209, 102, 0.85);
  background: linear-gradient(150deg, #ffe6a3, #ffb300 72%);
  color: #241800;
  box-shadow: 0 8px 18px -8px rgba(255, 179, 0, 0.9);
}
.rank-badge.r2 {
  border-color: rgba(238, 242, 251, 0.6);
  background: linear-gradient(150deg, #eef2fb, #b9c3d6 72%);
  color: #1a1e26;
}
.rank-badge.r3 {
  border-color: rgba(230, 176, 136, 0.55);
  background: linear-gradient(150deg, #e6b088, #c07a43 72%);
  color: #2a1407;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.player-cell .head { transition: transform 200ms ease, border-color 200ms ease; }
.rank-table tbody tr:hover .head { transform: scale(1.04); border-color: rgba(255, 179, 0, 0.45); }

.who { min-width: 0; }
.who .name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.metric-value {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.row-1 .metric-value { color: var(--gold-2); }
.stat-col {
  color: #c8ccd6;
  font-size: 12px;
  font-weight: 700;
}
.stat-col:empty { color: var(--muted-2); }

/* paging footer */

.table-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}
.page-status {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scroll-hint {
  display: none;
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.pager[hidden] { display: none; }
.pager-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager-step,
.pager-page {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #141821;
  color: #d7dae2;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pager-step { padding: 0; font-size: 15px; }
.pager-step svg { display: block; }
.pager-page { cursor: pointer; }
.pager-step:hover:not(:disabled),
.pager-page:hover { border-color: rgba(255, 179, 0, 0.5); background: rgba(255, 179, 0, 0.1); }
.pager-step:disabled { opacity: 0.35; cursor: default; }
.pager-page[aria-current="page"] {
  border-color: rgba(255, 209, 102, 0.9);
  background: linear-gradient(150deg, #ffe6a3, #ffb300 72%);
  color: #241800;
  cursor: default;
}
.pager-gap {
  display: grid;
  place-items: center;
  width: 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}
.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pager-jump input {
  width: 46px;
  height: 30px;
  padding: 0 4px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0c0e13;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.pager-jump input::-webkit-outer-spin-button,
.pager-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager-total { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.pager-jump button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 179, 0, 0.45);
  border-radius: 8px;
  background: rgba(255, 179, 0, 0.08);
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.pager-jump button:hover { border-color: var(--gold); background: rgba(255, 179, 0, 0.16); }

/* skeleton + empty */

.skeleton-row td { padding: 11px 14px; }
.sk {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a1f29 25%, #232936 50%, #1a1f29 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.sk.rank { width: 34px; height: 34px; border-radius: 10px; }
.sk.name { width: 42%; }
.sk.score { width: 54px; margin-left: auto; }
@keyframes shimmer { to { background-position: -200% 0; } }

.board-empty {
  margin-top: 14px;
  padding: 54px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #101319, #0b0d12);
  box-shadow: var(--shadow);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #141821;
  color: var(--gold-2);
}
.no-results {
  padding: 46px 20px;
  text-align: center;
}
.board-empty strong,
.no-results strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.board-empty p,
.no-results p {
  max-width: 44ch;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 12px;
}
.no-results svg { margin: 0 auto 10px; color: var(--muted-2); }

.source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.source b { color: var(--muted); font-weight: 700; }

/* ===== coming soon ===================================================== */

.coming {
  position: relative;
  margin-top: 8px;
  padding: 46px 20px 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(58% 60% at 50% 0%, rgba(255, 42, 31, 0.13), transparent 70%),
    linear-gradient(180deg, #101319, #0a0c11);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.coming::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.coming-mark {
  position: absolute;
  left: 50%;
  top: -6%;
  transform: translateX(-50%);
  color: transparent;
  font-size: clamp(120px, 28vw, 220px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
}
.coming-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

.tag {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.08);
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tag i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.8);
}
.coming h2 {
  margin: 18px 0 0;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.coming h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coming p {
  max-width: 46ch;
  margin: 12px auto 0;
  color: #b6b9c5;
  font-size: 13.5px;
  line-height: 1.6;
}
.coming-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.coming-chips span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d0f14;
  color: #c2c6d1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--grad);
  color: #1a0d02;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px -18px rgba(255, 42, 31, 0.9);
  transition: transform 180ms ease, filter 180ms ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn span { font-size: 14px; line-height: 1; }

/* ===== index page ====================================================== */

.index-hero {
  position: relative;
  padding: 44px 0 30px;
  isolation: isolate;
}
.index-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.index-hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.index-hero p {
  max-width: 52ch;
  margin-top: 16px;
  color: #b6b9c5;
  font-size: 14px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #12151c, #0b0d12);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.mode-card::before {
  content: attr(data-mark);
  position: absolute;
  right: -6px;
  bottom: -24px;
  color: transparent;
  font-size: 128px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 0, 0.35);
  box-shadow: 0 26px 50px -30px rgba(255, 42, 31, 0.55);
}
.mode-card .status-pill {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mode-card .status-pill.live { color: #8cf0b8; border-color: rgba(61, 220, 132, 0.35); background: rgba(61, 220, 132, 0.08); }
.mode-card .status-pill.soon { color: var(--gold-2); border-color: rgba(255, 179, 0, 0.3); background: rgba(255, 179, 0, 0.07); }
.mode-card h2 {
  margin-top: 14px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}
.mode-card p {
  margin-top: 7px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 11.5px;
}
.mode-card .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--gold-2);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mode-card .go span { transition: transform 180ms ease; }
.mode-card:hover .go span { transform: translateX(3px); }

/* ===== quick links ===================================================== */

.quick-links {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #101319, #0b0d12);
  box-shadow: var(--shadow);
}
.quick-block h2 {
  color: #dfe2ea;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.quick-modes { display: grid; gap: 6px; margin-top: 10px; }
.quick-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e13;
  transition: border-color 160ms ease, background 160ms ease;
}
.quick-mode:hover { border-color: var(--line-2); background: #11151d; }
.quick-mode.is-active {
  border-color: rgba(255, 179, 0, 0.42);
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.1), rgba(255, 42, 31, 0.04));
}
.quick-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #191e28;
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.quick-copy { min-width: 0; }
.quick-copy b { display: block; font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.quick-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quick-go { margin-left: auto; color: var(--gold-2); font-size: 14px; }
.quick-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0e13;
  color: #d7dae2;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.quick-stat i { color: var(--muted-2); font-size: 8.5px; font-style: normal; font-weight: 700; }
.quick-stat:hover, .quick-stat[aria-current="true"] {
  border-color: rgba(255, 179, 0, 0.45);
  background: rgba(255, 179, 0, 0.08);
}
.quick-loading { color: var(--muted-2); font-size: 10px; font-weight: 700; }

/* ===== sticky mobile switcher ========================================== */

.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr auto;
  align-items: end;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  background: rgba(7, 8, 11, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.dock-field { display: grid; gap: 3px; min-width: 0; }
.dock-field span {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dock-field select {
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #101319;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.dock-field select:disabled { color: var(--muted-2); }
.dock-search {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #101319;
  color: var(--gold-2);
  cursor: pointer;
}
.dock-search:hover { border-color: rgba(255, 179, 0, 0.5); }
.dock-filters {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock-filters[hidden] { display: none; }
.dock-filters::-webkit-scrollbar { display: none; }
.dock-filters .dock-field { flex: 1 0 96px; }

/* ===== footer ========================================================== */

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0 34px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ===== responsive ====================================================== */

@media (min-width: 560px) {
  .search { width: 240px; }
  .search kbd { display: inline-block; }
  .board-tabs { width: auto; }
}

@media (min-width: 720px) {
  .topnav { display: flex; }
  .shell { padding: 0 24px 84px; }
  .topbar { height: 66px; }
  body.has-dock { padding-bottom: 0; }
  .mobile-dock { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
    align-items: end;
    padding: 40px 0 34px;
    gap: 28px;
  }
  .hero h1 { margin-top: 16px; }
  .lede { font-size: 15px; }

  .podium {
    grid-template-columns: 1fr 1.14fr 1fr;
    grid-template-areas: "second first third";
    gap: 12px;
    align-items: end;
  }
  .podium-card { padding: 18px 14px 0; }
  .podium-card.p1 { transform: translateY(-14px); }
  .head-xl { --head-size: 118px; margin-top: 12px; }
  .p1 .head-xl { --head-size: 158px; }
  .podium-wrap { padding: 20px 16px 0; }
  .p-name { font-size: 20px; }
  .p1 .p-name { font-size: 24px; }
  .p-score { font-size: 32px; }
  .p1 .p-score { font-size: 40px; }
  .pedestal { height: 46px; }
  .p1 .pedestal { height: 64px; }

  .rank-table td { padding: 11px 16px; }
  .rank-table thead th { padding: 11px 16px; }
  .who .name { font-size: 15px; }
  .table-head { align-items: center; }
  .quick-links { grid-template-columns: 1.1fr 0.9fr; }
  .quick-modes { grid-template-columns: repeat(2, 1fr); }

  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card { min-height: 176px; padding: 20px; }
  .mode-card h2 { font-size: 28px; }
  .index-hero { padding: 56px 0 34px; }
}

@media (min-width: 980px) {
  .shell { padding: 0 28px 92px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: clamp(4rem, 6.6vw, 5.6rem); }
  .rank-toolbar { flex-wrap: nowrap; }
  .table-head { padding: 16px 20px; }
  .rank-table td { padding: 12px 20px; }
  .rank-table thead th { padding: 12px 20px; }
  .podium-wrap { padding: 22px 20px 0; }
  .head-xl { --head-size: 132px; }
  .p1 .head-xl { --head-size: 178px; }
}

@media (max-width: 719px) {
  body.has-dock { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.has-dock.has-filters { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .lb-controls { margin-top: 12px; padding: 10px 10px 12px; border-radius: 16px; }
  .lb-controls .mode-switch { padding-bottom: 8px; }
  .podium {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "first first" "second third";
  }
  .podium-card.p2,
  .podium-card.p3 { padding: 14px 8px 0; }
  .p2 .p-name,
  .p3 .p-name { font-size: 16px; }
  .p2 .p-score,
  .p3 .p-score { font-size: 25px; }
  .p2 .p-meta,
  .p3 .p-meta { font-size: 9px; }
  .p2 .pedestal,
  .p3 .pedestal { height: 32px; margin-top: 10px; }
  .p2 .medal,
  .p3 .medal { width: 24px; height: 24px; font-size: 11px; }
  .p1 .head-xl { --head-size: 168px; }
  .p2 .head-xl,
  .p3 .head-xl { --head-size: 108px; }

  .table-head { padding: 13px 13px 12px; gap: 9px; }
  .table-title { flex: 1 1 100%; }
  .table-modes { width: 100%; }
  .table-kicker { font-size: 8.5px; }
  .rank-table { min-width: calc(230px + (var(--stat-cols, 0) * 66px)); }
  .rank-table th.rank-col,
  .rank-table td.rank-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0f1218;
  }
  .rank-table th.player-col,
  .rank-table td.player-col {
    position: sticky;
    left: 46px;
    z-index: 3;
    background: #0f1218;
    box-shadow: 1px 0 0 var(--line);
  }
  .rank-table tbody tr.row-1 td.rank-col,
  .rank-table tbody tr.row-1 td.player-col { background: #16150d; }
  .rank-table tbody tr.row-2 td.rank-col,
  .rank-table tbody tr.row-2 td.player-col { background: #12141a; }
  .rank-table tbody tr.row-3 td.rank-col,
  .rank-table tbody tr.row-3 td.player-col { background: #14120f; }
  .rank-table td { padding: 9px 10px; }
  .rank-table thead th { padding: 9px 10px; }
  .rank-table td.player-col { max-width: 170px; }
  .player-cell .head { --head-size: 40px; border-radius: 10px; }
  .who .name { font-size: 13px; }
  .metric-value { font-size: 14px; }
  .stat-col { font-size: 11px; }
  .table-footer { padding: 10px 13px; gap: 8px 10px; }
  .page-status { font-size: 9px; }
  .pager { width: 100%; margin-left: 0; }
  .pager-jump { margin-left: auto; }
  .pager-step,
  .pager-page { min-width: 28px; height: 28px; }
  .pager-jump input,
  .pager-jump button { height: 28px; }
  .pager-jump input { width: 42px; }
  .scroll-hint:not([hidden]) { display: inline-flex; }
  .filter-bar { gap: 7px 8px; padding: 8px 10px; }
  .quick-links { padding: 14px; }
  .quick-mode { padding: 8px 9px; }
  .quick-mark { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
