.lb-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 56px 96px;
}

.lb-page h1 {
  font: 400 42px var(--neon-font);
  color: var(--neon-white);
  text-shadow: var(--glow-accent-lg);
  margin: 0 0 6px;
}

.lb-sub {
  font-size: 14px;
  color: rgba(233,233,237,.5);
  margin-bottom: 32px;
}

/* Game tabs */
.lb-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lb-tab {
  font: 500 12px Inter, sans-serif;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(233,233,237,.1);
  color: rgba(233,233,237,.6);
  cursor: pointer;
  transition: all .15s ease;
}

.lb-tab:hover {
  background: rgba(145,132,217,.08);
  border-color: rgba(145,132,217,.3);
  color: rgba(233,233,237,.85);
}

.lb-tab.active {
  background: rgba(145,132,217,.14);
  border-color: rgba(145,132,217,.5);
  color: var(--color-accent);
  box-shadow: 0 0 12px rgba(145,132,217,.2);
}

/* Sort controls */
.lb-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.lb-sort-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(233,233,237,.4);
}

.lb-sort-btn {
  font: 500 11px Inter, sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(233,233,237,.08);
  color: rgba(233,233,237,.5);
  cursor: pointer;
  transition: all .12s ease;
}

.lb-sort-btn:hover {
  border-color: rgba(145,132,217,.3);
  color: rgba(233,233,237,.75);
}

.lb-sort-btn.active {
  background: rgba(145,132,217,.1);
  border-color: rgba(145,132,217,.4);
  color: var(--color-accent);
}

/* Table */
.lb-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(233,233,237,.08);
  background: rgba(26,28,44,.6);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lb-table thead th {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(233,233,237,.4);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(233,233,237,.08);
  white-space: nowrap;
}

.lb-table thead th.sortable {
  cursor: pointer;
}

.lb-table thead th.sortable:hover {
  color: rgba(233,233,237,.7);
}

.lb-table thead th.sorted {
  color: var(--color-accent);
}

.lb-table tbody tr {
  border-bottom: 1px solid rgba(233,233,237,.05);
  transition: background .12s;
}

.lb-table tbody tr:last-child {
  border-bottom: none;
}

.lb-table tbody tr:hover {
  background: rgba(145,132,217,.05);
}

.lb-table tbody tr.is-me {
  background: rgba(145,132,217,.08);
}

.lb-table td {
  padding: 14px 16px;
  white-space: nowrap;
}

/* Rank column */
.lb-rank {
  font: 400 18px var(--neon-font);
  color: rgba(233,233,237,.35);
  width: 48px;
  text-align: center;
}

.lb-table tbody tr:nth-child(1) .lb-rank {
  color: #f0d79a;
  text-shadow: 0 0 10px rgba(216,180,90,.6);
}

.lb-table tbody tr:nth-child(2) .lb-rank {
  color: #c0c4cc;
  text-shadow: 0 0 8px rgba(192,196,204,.4);
}

.lb-table tbody tr:nth-child(3) .lb-rank {
  color: #cd7f32;
  text-shadow: 0 0 8px rgba(205,127,50,.4);
}

/* Player name */
.lb-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-player .bb-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.lb-player-name {
  font-weight: 500;
}

/* Stat cells */
.lb-stat {
  font-variant-numeric: tabular-nums;
  color: rgba(233,233,237,.75);
}

.lb-stat-accent {
  color: var(--color-accent);
  font-weight: 600;
}

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

.lb-streak {
  color: #4aeabc;
  font-variant-numeric: tabular-nums;
}

.lb-earnings {
  color: #f0d79a;
  font-variant-numeric: tabular-nums;
}

/* Empty state */
.lb-empty {
  text-align: center;
  padding: 64px 20px;
  color: rgba(233,233,237,.4);
  font-size: 14px;
}

/* Loading */
.lb-loading {
  text-align: center;
  padding: 48px 20px;
  color: rgba(233,233,237,.35);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .lb-page {
    padding: 36px 20px 80px;
  }

  .lb-page h1 {
    font-size: 32px;
  }

  .lb-tabs {
    gap: 4px;
  }

  .lb-tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  .lb-table {
    font-size: 13px;
  }

  .lb-table thead th,
  .lb-table td {
    padding: 10px 12px;
  }

  .lb-rank {
    font-size: 16px;
    width: 36px;
  }

  .lb-player .bb-avatar {
    display: none;
  }
}

@media (max-width: 480px) {
  .lb-page {
    padding: 28px 16px 64px;
  }

  .lb-page h1 {
    font-size: 26px;
  }

  .lb-tab {
    padding: 5px 10px;
    font-size: 10px;
  }

  .lb-table thead th,
  .lb-table td {
    padding: 8px 10px;
  }

  .lb-sort-row {
    flex-wrap: wrap;
  }
}
