/**
 * Leaderboard — Catppuccin / militar / competición viva
 */

:root {
  --lb-base: #1e1e2e;
  --lb-surface0: #313244;
  --lb-surface1: #45475a;
  --lb-text: #cdd6f4;
  --lb-sub: #a6adc8;
  --lb-green: #a6e3a1;
  --lb-red: #f38ba8;
  --lb-mauve: #cba6f7;
  --lb-blue: #b8a8e0;
  --lb-yellow: #f9e2af;
  /* Stats / acentos tabla: lavanda cálida (antes teal/cian Catppuccin) */
  --lb-teal: #e2d4fc;
}

.lb-page {
  --lb-gold: #f9e2af;
  --lb-silver: #bac2de;
  --lb-bronze: #fab387;
}

/* ═══ Mega hero (global + contest) — neon on dark, art + control strip ═══ */
.lb-mega-hero {
  position: relative;
  margin: 0 0 28px;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(2, 4, 12, 0.92);
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lb-mega-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: min(52vw, 420px);
  max-height: 480px;
}

.lb-mega-hero__art {
  position: relative;
  min-height: 220px;
  border-right: 1px solid rgba(188, 178, 220, 0.12);
}

.lb-mega-hero__art-layers {
  position: absolute;
  inset: 0;
}

.lb-mega-hero__layer--image {
  background-image: url('/images/leaderboard-hero.png');
  background-size: cover;
  background-position: 66% center;
}

.lb-mega-hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-mega-hero__layer--vignette {
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 72%, rgba(1, 2, 8, 0.92) 100%);
}

.lb-mega-hero__layer--glow {
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(168, 85, 247, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(180, 140, 255, 0.07), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.lb-mega-hero__panel {
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vw, 32px) clamp(18px, 3.5vw, 36px);
  background: linear-gradient(165deg, rgba(6, 8, 16, 0.55), rgba(2, 3, 10, 0.75));
}

.lb-mega-hero__copy {
  width: 100%;
  text-align: left;
}

.lb-mega-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 0 0 1.1rem;
  width: 100%;
}

.lb-mega-hero__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #c4b5fd;
  background: rgba(8, 6, 20, 0.35);
  border: 1.5px solid rgba(167, 139, 250, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.08),
    0 0 36px rgba(138, 43, 226, 0.55),
    0 0 60px rgba(99, 102, 241, 0.2);
}

.lb-mega-hero__glyph .bxf-ico {
  width: 22px;
  height: 22px;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.35));
}

.lb-mega-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px clamp(18px, 2.8vw, 32px);
  border-radius: var(--bxf-radius-full, 9999px);
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(6, 8, 22, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(88, 28, 135, 0.25);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f8fafc;
}

.lb-mega-hero__crumb-sep {
  opacity: 0.45;
  color: #d4b8ff;
}

.lb-mega-hero__title {
  margin: 0 0 12px;
  width: 100%;
  font-family: var(--font-heading, var(--font-display), ui-monospace, monospace);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  background: var(--bxf-mega-title-gradient, linear-gradient(95deg, #9ae6d4 0%, #c4b5fd 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: var(--bxf-mega-title-filter, drop-shadow(0 0 20px rgba(198, 157, 255, 0.25)));
}

.lb-mega-hero__tagline {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 204, 238, 0.9);
}

.lb-mega-hero__lead {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(184, 176, 208, 0.92);
  max-width: 52ch;
}

.lb-mega-hero__formula {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.5;
  color: rgba(168, 160, 192, 0.75);
  max-width: 56ch;
}

.lb-mega-hero__status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.lb-mega-hero__status-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(188, 178, 220, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(216, 208, 232, 0.9);
}

.lb-mega-hero__status-cell--live {
  border-color: rgba(52, 211, 153, 0.28);
}

.lb-mega-hero__status-ico {
  flex-shrink: 0;
  opacity: 0.75;
  color: #a78bfa;
}

.lb-mega-hero__status-text strong,
.lb-mega-hero__status-strong {
  display: inline;
  font-weight: 800;
  color: #f5f0ff;
  letter-spacing: 0.04em;
}

.lb-mega-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.75);
  flex-shrink: 0;
  animation: lb-pulse 1.8s ease-in-out infinite;
}

.lb-mega-hero__bar {
  border-top: 1px solid rgba(188, 178, 220, 0.12);
  padding: 16px clamp(14px, 2.5vw, 22px) 14px;
  background: linear-gradient(180deg, rgba(4, 6, 14, 0.98), rgba(2, 3, 10, 0.99));
}

.lb-mega-hero__bar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
}

.lb-mega-hero__bar-grid--contest {
  justify-content: space-between;
}

.lb-mega-hero__search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  max-width: 420px;
}

.lb-mega-hero__search-wrap--grow {
  flex: 1 1 280px;
  max-width: none;
}

.lb-mega-hero__search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  color: #a8a0bc;
  pointer-events: none;
}

.lb-mega-hero__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 40px;
  border-radius: 10px;
  border: 1px solid rgba(130, 118, 168, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: #f0ecf8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.lb-mega-hero__search-input:focus {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

.lb-mega-hero__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
}

.lb-mega-hero__field-lbl {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 168, 200, 0.88);
}

.lb-mega-select {
  min-width: 118px;
  max-width: 180px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(130, 118, 168, 0.38);
  background: rgba(0, 0, 0, 0.55);
  color: #e8e4f2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  outline: none;
}

.lb-mega-select:focus {
  border-color: rgba(198, 157, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(198, 157, 255, 0.12);
}

.lb-mega-hero__more {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(130, 118, 168, 0.38);
  background: rgba(10, 8, 18, 0.95);
  color: #d8d0e8;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.lb-mega-hero__more:hover {
  border-color: rgba(168, 85, 247, 0.45);
  color: #f4f0fc;
}

.lb-mega-hero__more[aria-expanded='true'] {
  border-color: rgba(198, 157, 255, 0.55);
  background: rgba(14, 12, 22, 0.98);
  color: #f5f0ff;
}

.lb-mega-hero__mi-pos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(198, 157, 255, 0.42);
  background: linear-gradient(165deg, rgba(198, 157, 255, 0.12), rgba(8, 12, 24, 0.95));
  color: #f0e8ff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.lb-mega-hero__mi-pos:hover {
  border-color: rgba(198, 157, 255, 0.65);
  box-shadow: 0 0 22px rgba(198, 157, 255, 0.2);
}

.lb-mega-hero__search-hint {
  margin: 12px 0 0;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: rgba(172, 164, 196, 0.78);
  line-height: 1.45;
}

#lb-season-select.lb-mega-select {
  max-width: 220px;
}

.lb-mega-hero--contest .lb-mega-hero__tagline {
  word-break: break-word;
}

.lb-filters-drawer__panel {
  margin-top: 0;
}

.lb-filters-drawer__lead {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(180, 172, 204, 0.92);
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 960px) {
  .lb-mega-hero__split {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .lb-mega-hero__art {
    min-height: 200px;
    max-height: 260px;
    border-right: none;
    border-bottom: 1px solid rgba(188, 178, 220, 0.12);
  }

  .lb-mega-hero__layer--image {
    background-position: center top;
  }

  .lb-mega-hero__status {
    grid-template-columns: 1fr;
  }

  .lb-mega-hero__bar-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .lb-mega-hero__field,
  .lb-mega-select {
    max-width: none;
    width: 100%;
  }

  .lb-mega-hero__mi-pos {
    margin-left: 0;
    justify-content: center;
  }
}

.lb-hero {
  text-align: center;
  margin-bottom: 28px;
  padding: 8px 12px 20px;
  border-radius: 20px;
  border: 1px solid rgba(203, 166, 247, 0.12);
  background: linear-gradient(165deg, rgba(30, 30, 46, 0.65), rgba(24, 24, 37, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Título CLASIFICACIÓN + EN VIVO + nota (bloque superior #lb-ctf-stack) */
.lb-hero--intro {
  margin-bottom: 22px;
}

.lb-hero--page-top.lb-hero {
  margin-top: 0;
}

/* Tabla + pager arriba; STAFF debajo, mismo ancho; altura según contenido (sin hueco forzado). */
.lb-table-staff-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

.lb-table-staff-stack .lb-table-wrapper {
  width: 100%;
}

.lb-table-staff-stack .lb-support-aside {
  width: 100%;
  margin-top: 28px;
  min-width: 0;
}

.lb-table-staff-stack .lb-admin-support.lb-admin-support--side {
  position: static;
  max-height: none;
  width: 100%;
  box-sizing: border-box;
}

.lb-table-staff-stack .lb-admin-support-list-scroll {
  flex: 0 1 auto;
  overflow-y: visible;
}

.lb-support-aside__cap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -4px -4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(137, 180, 250, 0.22);
}

.lb-support-aside__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lb-mauve);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(203, 166, 247, 0.35);
  background: rgba(203, 166, 247, 0.08);
}

.lb-table-staff-stack .lb-beta-aside {
  width: 100%;
  margin-top: 24px;
  min-width: 0;
}

.lb-support-aside__label--beta {
  color: #f3e8ff !important;
  border-color: rgba(203, 166, 247, 0.5) !important;
  background: rgba(203, 166, 247, 0.12) !important;
}

.lb-admin-support.lb-admin-support--side.lb-admin-support--beta {
  border-color: rgba(198, 157, 255, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.42) !important;
}

.lb-admin-support--beta .lb-support-aside__cap {
  border-bottom-color: rgba(198, 157, 255, 0.22);
}

.lb-beta-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 6px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0e8ff;
  border: 1px solid rgba(203, 166, 247, 0.48);
  border-radius: 6px;
  background: rgba(120, 60, 160, 0.2);
  line-height: 1.2;
  vertical-align: middle;
}

.lb-beta-tag--podium {
  display: block;
  margin: 8px auto 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Panel staff: prioridad sobre reboot-ui (.lb-admin-support con !important) */
.lb-admin-support.lb-admin-support--side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 14px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(188, 160, 230, 0.32) !important;
  background: linear-gradient(165deg, rgba(20, 14, 30, 0.98), rgba(8, 6, 14, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 44px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 959px) {
  .lb-admin-support.lb-admin-support--side {
    max-height: none;
  }
}

.lb-admin-support--side .lb-admin-support-lead {
  margin: 0 0 12px;
  flex-shrink: 0;
}

.lb-admin-support-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
  scrollbar-gutter: stable;
}

.lb-admin-support-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.lb-admin-support-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(198, 157, 255, 0.32);
  border-radius: 999px;
}

.lb-admin-support-list-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

/* Zona bajo ranking: meta → filtros/temporadas */
.lb-post-rank {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 20px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(203, 166, 247, 0.14);
}

.lb-post-rank .lb-meta-row {
  margin-bottom: 0;
}

/* Panel ámbito/vista/temporadas: debajo de la barra de búsqueda; toggle en #lb-filters-toggle */
.lb-filters-drawer {
  width: 100%;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.lb-filters-drawer .lb-hero--below-grid {
  margin-top: 0;
  margin-bottom: 0;
}

.lb-filters-toggle-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(137, 180, 250, 0.42);
  background: rgba(12, 16, 28, 0.95);
  color: #dff6ff;
  cursor: pointer;
  line-height: 1.2;
  max-width: min(100%, 220px);
  text-align: center;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.lb-filters-toggle-btn:hover {
  border-color: rgba(137, 200, 255, 0.55);
  background: rgba(20, 28, 48, 0.98);
}

.lb-filters-toggle-btn[aria-expanded='true'] {
  border-color: rgba(120, 200, 255, 0.88);
  background: linear-gradient(175deg, rgba(40, 90, 160, 0.35), rgba(18, 28, 52, 0.95));
  box-shadow:
    0 0 22px rgba(100, 185, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4fbff;
}

.lb-filters-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(137, 200, 255, 0.45);
}

/* Filtros + temporadas */
.lb-hero--below-grid {
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Panel inferior: ámbito / vista / pestañas / temporadas (estilo captura: caja oscura + glow azul activo) */
.lb-hero--filters-panel.lb-hero {
  padding: 22px 20px 26px;
  border-radius: 18px;
  border: 1px solid rgba(137, 180, 250, 0.22);
  background: linear-gradient(160deg, rgba(14, 18, 32, 0.96), rgba(6, 10, 22, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.lb-hero--filters-panel .lb-compact-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px 36px;
  margin: 4px 0 10px;
}

.lb-hero--filters-panel .lb-compact-label {
  gap: 6px;
}

.lb-hero--filters-panel .lb-select--compact {
  min-width: 188px;
  max-width: 260px;
  padding: 9px 12px;
  font-size: 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(137, 180, 250, 0.32);
  background: rgba(0, 0, 0, 0.45);
  color: #e8eefc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lb-hero--filters-panel .lb-tab-strip {
  margin: 14px 0 10px;
  gap: 10px;
}

.lb-hero--filters-panel .lb-tab-btn {
  border: 1px solid rgba(65, 78, 110, 0.85);
  background: rgba(18, 22, 36, 0.92);
  color: rgba(186, 198, 230, 0.88);
}

.lb-hero--filters-panel .lb-tab-btn:hover {
  border-color: rgba(137, 200, 255, 0.4);
  color: var(--lb-text);
}

.lb-hero--filters-panel .lb-tab-btn.is-active {
  border-color: rgba(120, 200, 255, 0.9);
  background: linear-gradient(175deg, rgba(70, 130, 220, 0.28), rgba(35, 70, 140, 0.16));
  color: #f2f8ff;
  box-shadow:
    0 0 26px rgba(100, 185, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lb-hero--filters-panel .lb-tab-btn--red.is-active,
.lb-hero--filters-panel .lb-tab-btn--blue.is-active {
  border-color: rgba(120, 200, 255, 0.9);
  background: linear-gradient(175deg, rgba(70, 130, 220, 0.26), rgba(35, 70, 140, 0.15));
  box-shadow: 0 0 26px rgba(100, 185, 255, 0.38);
}

.lb-hero--filters-panel .season-wrapper {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(137, 180, 250, 0.15);
}

.lb-hero--filters-panel .season-nav .season-tab {
  border: 1px solid rgba(65, 78, 110, 0.85);
  background: rgba(18, 22, 36, 0.92);
}

.lb-hero--filters-panel .season-nav .season-tab:hover {
  border-color: rgba(137, 200, 255, 0.4);
  background: rgba(30, 36, 56, 0.95);
}

.lb-hero--filters-panel .season-nav .season-tab.active {
  border-color: rgba(120, 200, 255, 0.9);
  background: linear-gradient(175deg, rgba(70, 130, 220, 0.28), rgba(35, 70, 140, 0.16));
  color: #f2f8ff;
  box-shadow:
    0 0 24px rgba(100, 185, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lb-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  background: linear-gradient(120deg, var(--lb-mauve), var(--lb-teal), var(--lb-text));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-hero__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lb-sub);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lb-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 8px;
}

.lb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lb-green);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(166, 227, 161, 0.35);
  background: rgba(166, 227, 161, 0.06);
}

.lb-live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lb-green);
  box-shadow: 0 0 12px rgba(166, 227, 161, 0.8);
  animation: lb-pulse 1.8s ease-in-out infinite;
}

@keyframes lb-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

.lb-formula-note {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.68rem;
  color: rgba(166, 173, 200, 0.85);
  line-height: 1.5;
  font-family: var(--font-mono);
}

/* Scope + view tabs */
.lb-tab-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 8px;
}

.lb-tab-strip--scopes .lb-tab-btn {
  min-width: 0;
}

.lb-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(69, 71, 90, 0.9);
  background: rgba(30, 30, 46, 0.6);
  color: var(--lb-sub);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.lb-tab-btn:hover {
  border-color: rgba(203, 166, 247, 0.45);
  color: var(--lb-text);
  transform: translateY(-1px);
}

.lb-tab-btn.is-active {
  border-color: rgba(203, 166, 247, 0.55);
  background: rgba(203, 166, 247, 0.1);
  color: var(--lb-text);
  box-shadow: 0 0 20px rgba(203, 166, 247, 0.12);
}

.lb-tab-btn:disabled,
.lb-tab-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.lb-tab-btn--red.is-active {
  border-color: rgba(243, 139, 168, 0.5);
  box-shadow: 0 0 18px rgba(243, 139, 168, 0.12);
}

.lb-tab-btn--blue.is-active {
  border-color: rgba(137, 180, 250, 0.5);
  box-shadow: 0 0 18px rgba(137, 180, 250, 0.12);
}

/* Filters */
.lb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
  margin: 16px 0 20px;
}

.lb-select {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--lb-surface1);
  background: var(--lb-base);
  color: var(--lb-text);
  min-width: 140px;
}

.lb-filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lb-sub);
  font-family: var(--font-mono);
}

/* Rivalry + next rank */
.lb-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .lb-meta-row {
    grid-template-columns: 1fr 1fr;
  }
}

.lb-rivalry,
.lb-next-rank,
.lb-admin-support {
  border-radius: 14px;
  border: 1px solid rgba(69, 71, 90, 0.85);
  background: rgba(24, 24, 37, 0.55);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--lb-text);
}

.lb-rivalry h4,
.lb-next-rank h4,
.lb-admin-support h4 {
  margin: 0 0 8px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lb-mauve);
}

/* Icono HUD sin emojis (i18n solo toca texto del h4) */
.lb-rivalry h4::before,
.lb-next-rank h4::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.42em;
  vertical-align: -0.06em;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.lb-rivalry h4::before {
  -webkit-mask-image: var(--bxf-mask-swords);
  mask-image: var(--bxf-mask-swords);
}

.lb-next-rank h4::before {
  -webkit-mask-image: var(--bxf-mask-target);
  mask-image: var(--bxf-mask-target);
}

.lb-admin-support p {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--lb-sub);
  line-height: 1.35;
}

.lb-admin-support-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.lb-admin-support-row:last-child {
  border-bottom: 0;
}

.lb-admin-support-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lb-admin-support-user .lb-avatar-sm {
  width: 28px;
  height: 28px;
}

.lb-admin-support-name {
  font-size: 0.78rem;
  color: var(--lb-text);
  font-weight: 700;
}

.lb-admin-support-meta {
  font-size: 0.68rem;
  color: var(--lb-sub);
  margin-top: 2px;
}

.lb-admin-support-actions {
  display: flex;
  gap: 8px;
}

.lb-support-msg-btn {
  border: 1px solid rgba(196, 175, 232, 0.4);
  background: rgba(196, 175, 232, 0.12);
  color: #dff5ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.68rem;
  cursor: pointer;
}

.lb-admin-profile-btn {
  border: 1px solid rgba(203, 166, 247, 0.45);
  background: rgba(203, 166, 247, 0.12);
  color: #f0e6ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.68rem;
  cursor: pointer;
}

.lb-support-msg-btn:hover,
.lb-admin-profile-btn:hover {
  filter: brightness(1.08);
}

.lb-support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(6px);
}

.lb-support-modal-overlay[hidden] {
  display: none !important;
}

.lb-support-modal {
  width: min(640px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  overflow: auto;
  background: linear-gradient(165deg, rgba(30, 30, 46, 0.97), rgba(24, 24, 37, 0.95));
  border: 1px solid rgba(196, 175, 232, 0.25);
  border-radius: 14px;
  padding: 18px 16px 14px;
  font-family: var(--font-mono);
  color: var(--lb-text);
  position: relative;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.lb-support-modal h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lb-mauve);
}

.lb-support-modal-sub {
  margin: 0 0 12px;
  color: var(--lb-sub);
  font-size: 0.76rem;
  line-height: 1.45;
}

.lb-support-modal label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--lb-sub);
}

.lb-support-modal textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(196, 175, 232, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: var(--lb-text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.lb-support-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.lb-support-action-buttons {
  display: inline-flex;
  gap: 8px;
}

.lb-support-char-count {
  font-size: 0.7rem;
  color: var(--lb-sub);
}

.lb-support-send-btn {
  border: 1px solid rgba(166, 227, 161, 0.45);
  background: rgba(166, 227, 161, 0.1);
  color: #dfffe5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  cursor: pointer;
}

.lb-support-cancel-btn {
  border: 1px solid rgba(166, 173, 200, 0.42);
  background: rgba(166, 173, 200, 0.08);
  color: #dfe7ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  cursor: pointer;
}

.lb-support-feedback {
  min-height: 1.1em;
  margin: 8px 0 0;
  font-size: 0.72rem;
}

.lb-support-feedback.is-ok {
  color: var(--lb-green);
}

.lb-support-feedback.is-error {
  color: var(--lb-red);
}

.lb-support-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: transparent;
  color: var(--lb-sub);
  font-size: 1.2rem;
  cursor: pointer;
}

.lb-rivalry__line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.lb-rivalry span.lb-tag {
  color: var(--lb-sub);
  font-size: 0.7rem;
}

.lb-next-rank__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(69, 71, 90, 0.6);
  overflow: hidden;
  margin-top: 8px;
}

.lb-next-rank__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Podium layout */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px 24px;
  border-radius: 14px;
  position: relative;
  cursor: default;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.podium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.podium-card.p1 {
  background: linear-gradient(165deg, rgba(168, 85, 247, 0.14), rgba(4, 6, 14, 0.92));
  border: 1px solid rgba(192, 132, 252, 0.45);
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.podium-card.p2 {
  background: linear-gradient(165deg, rgba(198, 157, 255, 0.1), rgba(4, 6, 14, 0.92));
  border: 1px solid rgba(103, 232, 249, 0.32);
  min-width: 170px;
  backdrop-filter: blur(10px);
}

.podium-card.p3 {
  background: linear-gradient(165deg, rgba(244, 114, 182, 0.1), rgba(4, 6, 14, 0.92));
  border: 1px solid rgba(244, 114, 182, 0.32);
  min-width: 170px;
  backdrop-filter: blur(10px);
}

.podium-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
}

.podium-card.p1 .podium-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-color: rgba(216, 180, 254, 0.85);
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.35),
    inset 0 0 0 1px rgba(250, 232, 255, 0.2);
}

.podium-card.p2 .podium-avatar {
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow:
    0 0 22px rgba(198, 157, 255, 0.28),
    inset 0 0 0 1px rgba(224, 242, 254, 0.18);
}

.podium-card.p3 .podium-avatar {
  border-color: rgba(251, 113, 133, 0.72);
  box-shadow:
    0 0 22px rgba(244, 63, 94, 0.22),
    inset 0 0 0 1px rgba(255, 228, 230, 0.16);
}

.podium-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #f1f5f9;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.podium-pts {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.p1 .podium-pts {
  color: #e9d5ff;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.p2 .podium-pts {
  color: #cffafe;
  text-shadow: 0 0 12px rgba(198, 157, 255, 0.28);
}

.p3 .podium-pts {
  color: #ffe4e6;
  text-shadow: 0 0 12px rgba(251, 113, 133, 0.25);
}

.podium-rank-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
}

.podium-rank-cup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.podium-rank-cup-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.podium-rank-num {
  line-height: 1;
  letter-spacing: 0.02em;
}

.p1 .podium-rank-badge {
  background: linear-gradient(135deg, #7c3aed, #a855f7 45%, #c9b4f5);
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  border-color: rgba(250, 250, 250, 0.28);
}

.p1 .podium-rank-cup {
  color: #f3efff;
}

.p2 .podium-rank-badge {
  background: linear-gradient(135deg, #3a3248, #5c5470 50%, #9a8ab8);
  color: #f4f0fc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border-color: rgba(200, 190, 228, 0.35);
}

.p2 .podium-rank-cup {
  color: #dcd4f0;
}

.p3 .podium-rank-badge {
  background: linear-gradient(135deg, #9d174d, #e11d48 55%, #fb7185);
  color: #fff1f2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
}

.p3 .podium-rank-cup {
  color: #ffe4e6;
}

.lb-self td {
  background: rgba(198, 157, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(198, 157, 255, 0.28);
}

.lb-self .lb-username {
  color: var(--accent);
}

.lb-self .lb-username::after {
  content: " ← YOU";
  font-size: 0.65rem;
  opacity: 0.7;
}

.lb-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.lb-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.lb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(8, 14, 28, 0.72);
}

.podium-avatar .lb-avatar-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  display: block;
}

.lb-bar-bg {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  height: 4px;
  overflow: hidden;
}

.lb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bxf-mauve, #cba6f7), #d4c4f5);
  border-radius: 2px;
  transition: width 1s ease;
}

/* Podium — grid glow */
.lb-page .podium {
  margin-bottom: 32px;
  padding: 8px 4px 0;
}

.lb-page .podium-card.p1 {
  box-shadow:
    0 0 42px rgba(168, 85, 247, 0.22),
    0 22px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lb-page .podium-card.p2 {
  box-shadow:
    0 0 36px rgba(198, 157, 255, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lb-page .podium-card.p3 {
  box-shadow:
    0 0 36px rgba(244, 114, 182, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.podium-meta {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: var(--lb-sub);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.4;
}

.podium-tier {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.podium-momentum {
  color: var(--lb-yellow);
  font-weight: 700;
}

/* Table */
.lb-page .lb-table-wrapper {
  border-radius: 16px;
  border: 1px solid rgba(130, 118, 168, 0.26);
  background: rgba(3, 6, 14, 0.9);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 26px 80px rgba(0, 0, 0, 0.48);
}

.lb-page .lb-table thead tr {
  background: linear-gradient(90deg, rgba(16, 14, 24, 0.98), rgba(22, 16, 32, 0.96));
}

.lb-page .lb-table thead th {
  color: rgba(226, 232, 240, 0.88);
  border-bottom: 1px solid rgba(198, 157, 255, 0.14);
}

.lb-page .lb-table tbody tr {
  background: rgba(5, 8, 18, 0.4);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.lb-page .lb-table tbody tr:nth-child(even) {
  background: rgba(8, 12, 24, 0.55);
}

.lb-page .lb-table tbody td {
  border-bottom: 1px solid rgba(42, 36, 58, 0.55);
}

.lb-page .lb-table tbody tr:hover {
  background: rgba(42, 36, 58, 0.52);
  box-shadow: inset 3px 0 0 rgba(198, 157, 255, 0.55);
}

.lb-page .lb-table tbody tr.lb-row--up {
  animation: lb-flash-up 1.1s ease;
}

.lb-page .lb-table tbody tr.lb-row--down {
  animation: lb-flash-down 1.1s ease;
}

@keyframes lb-flash-up {
  0% {
    background: rgba(166, 227, 161, 0.22);
  }
  100% {
    background: transparent;
  }
}

@keyframes lb-flash-down {
  0% {
    background: rgba(243, 139, 168, 0.14);
  }
  100% {
    background: transparent;
  }
}

.lb-delta {
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.lb-delta--up {
  color: var(--lb-green);
}

.lb-delta--down {
  color: var(--lb-red);
}

.lb-delta--eq,
.lb-delta--new {
  color: var(--lb-sub);
  font-weight: 600;
}

.lb-momo {
  color: var(--lb-yellow);
  font-weight: 700;
  font-size: 0.8rem;
}

.lb-tier-cell {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: var(--font-mono);
}

.lb-score-cell {
  font-weight: 700;
  color: var(--lb-teal);
}

.lb-flags-cell {
  color: var(--lb-text);
  font-variant-numeric: tabular-nums;
}

/* Learn + clans panels */
.lb-alt-panel {
  border-radius: 16px;
  border: 1px solid rgba(203, 166, 247, 0.15);
  background: rgba(24, 24, 37, 0.55);
  padding: 28px 22px;
  max-width: 720px;
  margin: 0 auto 40px;
  font-family: var(--font-mono);
}

.lb-alt-panel h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lb-mauve);
  margin: 0 0 12px;
}

.lb-alt-panel p {
  color: var(--lb-sub);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.lb-learn-bars .lb-learn-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.lb-learn-bars .lb-mini-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(69, 71, 90, 0.6);
  overflow: hidden;
}

.lb-learn-bars .lb-mini-track > div {
  height: 100%;
  background: linear-gradient(90deg, var(--lb-mauve), var(--lb-teal));
  border-radius: 999px;
}

.lb-v2-banner {
  text-align: center;
  font-size: 0.68rem;
  color: var(--lb-yellow);
  font-family: var(--font-mono);
  margin: 8px 0 0;
  min-height: 1.2em;
}

#lb-filter-banner {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border: 1px dashed rgba(203, 166, 247, 0.35);
  background: rgba(203, 166, 247, 0.06);
  color: var(--lb-sub);
}

.lb-toolbar .lb-search-hint {
  margin-top: 8px;
}

/* Misma columna útil que .top-container + header (padding 40px), evita bandas laterales */
.lb-wrapper.lb-page {
  width: min(1400px, 96vw);
  max-width: 100%;
  margin: 48px auto 120px;
  padding: 0 clamp(16px, 5vw, 40px);
  box-sizing: border-box;
}

.lb-action {
  text-align: right;
}

/* Compat: pestañas de temporada existentes (#season-selector) */
.season-wrapper {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.season-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 0;
  justify-content: center;
}

.season-nav .season-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(69, 71, 90, 0.9);
  background: rgba(30, 30, 46, 0.75);
  color: var(--lb-sub);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  position: relative;
  box-shadow: none;
}

.season-nav .season-tab::before,
.season-nav .season-tab::after {
  content: none !important;
}

.season-nav .season-tab:hover {
  border-color: rgba(203, 166, 247, 0.45);
  color: var(--lb-text);
  background: rgba(49, 50, 68, 0.85);
}

.season-nav .season-tab.active {
  border-color: rgba(203, 166, 247, 0.55);
  background: rgba(49, 50, 68, 0.95);
  color: var(--lb-text);
  box-shadow: 0 0 20px rgba(203, 166, 247, 0.14);
}

.season-nav .season-tab .bracket {
  color: var(--lb-mauve);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0 4px;
}

.season-nav .season-tab.active .bracket {
  opacity: 1;
}

.lb-table-wrapper {
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.lb-page .lb-table thead th {
  padding: 12px 12px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  vertical-align: bottom;
}

.lb-page .lb-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
}

.lb-table th:nth-child(1),
.lb-table td:nth-child(1) {
  width: 52px;
  text-align: center;
}

.lb-table th:nth-child(2),
.lb-table td:nth-child(2) {
  width: 28%;
  min-width: 180px;
  white-space: normal;
}

.lb-table th:nth-child(3),
.lb-table td:nth-child(3) {
  width: 14%;
  min-width: 112px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

.lb-table th:nth-child(4),
.lb-table td:nth-child(4) {
  width: 92px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lb-table th:nth-child(5),
.lb-table td:nth-child(5) {
  width: 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lb-table th:nth-child(6),
.lb-table td:nth-child(6) {
  width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lb-table th:nth-child(7),
.lb-table td:nth-child(7) {
  width: 52px;
  text-align: center;
}

.lb-table th:nth-child(8),
.lb-table td:nth-child(8) {
  width: 18%;
  min-width: 120px;
}

.lb-table th:nth-child(9),
.lb-table td:nth-child(9) {
  width: 100px;
  text-align: right;
}

.lb-table-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 14px;
  padding: 12px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--lb-sub);
}

.lb-table-pager__meta {
  text-align: center;
  letter-spacing: 0.04em;
}

.lb-table-pager__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(69, 71, 90, 0.95);
  background: rgba(30, 30, 46, 0.75);
  color: var(--lb-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lb-table-pager__btn:hover:not(:disabled) {
  border-color: rgba(203, 166, 247, 0.45);
}

.lb-table-pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lb-bar-cell {
  width: auto;
  min-width: 100px;
}

.lb-user__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.lb-delta-cell {
  font-variant-numeric: tabular-nums;
}

/* ── Squads / clans panel ─────────────────────────────────── */
.lb-clans-panel {
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 20px 16px 28px;
  border-radius: 16px;
  border: 1px solid rgba(203, 166, 247, 0.14);
  background: linear-gradient(165deg, rgba(30, 30, 46, 0.55), rgba(24, 24, 37, 0.35));
}

.lb-clans-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lb-mauve);
}

.lb-clans-lead {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: var(--lb-sub);
  line-height: 1.55;
}

.lb-clans-root {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lb-clans-my,
.lb-clans-create,
.lb-clans-invite-user,
.lb-clans-invites {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(196, 175, 232, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.lb-clans-my h3,
.lb-clans-create h3,
.lb-clans-invite-user h3,
.lb-clans-invites h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lb-teal);
}

.lb-clans-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lb-clans-form input {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--lb-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lb-team-tag-input {
  max-width: 100px;
  text-transform: uppercase;
}

.lb-clans-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(203, 166, 247, 0.35);
  background: rgba(203, 166, 247, 0.08);
  color: var(--lb-mauve);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.lb-clans-btn.primary {
  border-color: rgba(166, 227, 161, 0.45);
  color: var(--lb-green);
}

.lb-clans-btn.danger {
  border-color: rgba(243, 139, 168, 0.45);
  color: var(--lb-red);
}

.lb-clans-invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.lb-clans-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.74rem;
}

.lb-clans-table th,
.lb-clans-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.lb-clans-muted {
  color: var(--lb-sub);
  font-size: 0.76rem;
}

.lb-clans-error {
  color: var(--lb-red);
  font-size: 0.76rem;
}

/* Compact leaderboard controls + SUPPORT disclosure */
.lb-compact-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 10px 0 6px;
}

.lb-compact-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lb-sub);
  text-align: left;
}

.lb-select--compact {
  min-width: 0;
  max-width: 200px;
  padding: 5px 8px;
  font-size: 0.65rem;
  border-radius: 8px;
}

.lb-toolbar--compact {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  max-width: none !important;
}

.lb-search-input--compact {
  padding: 8px 12px !important;
  font-size: 0.72rem !important;
  border-radius: 10px !important;
}

.lb-filters--inline {
  margin: 0 !important;
  gap: 8px !important;
}

.lb-filter-label--inline {
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.58rem !important;
}

.lb-support-details {
  border-radius: 12px;
  border: 1px solid rgba(69, 71, 90, 0.85);
  background: rgba(24, 24, 37, 0.55);
  padding: 0;
  overflow: hidden;
}

.lb-support-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 14px;
  color: var(--lb-mauve);
  background: rgba(203, 166, 247, 0.06);
}

.lb-support-summary::-webkit-details-marker {
  display: none;
}

.lb-support-details[open] .lb-support-summary {
  border-bottom: 1px solid rgba(69, 71, 90, 0.9);
}

.lb-support-details .lb-admin-support {
  border: none;
  margin: 0;
  padding: 12px 14px;
}

.lb-admin-support-lead {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--lb-sub);
  margin: 0 0 10px;
}

/* Panel de cuenta: estilos unificados en styles.css (#account-panel.lb-account-panel) */
