/* ── Leaderboard Page ────────────────────────────────────── */

.leaderboard-page {
  padding: var(--space-2xl) 0;
}

/* Page header */
.leaderboard-page > .container > h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  /* Armory label above */
  padding-top: 0.25rem;
}

/* Armory-style section label */
.lb-page-label {
  display: block;
  font-size: 9.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(205,65,43,0.6);
  margin-bottom: 0.4rem;
}

.lb-page-label::before { content: '// '; opacity: 0.5; letter-spacing: 0; }

/* Period tabs */
.period-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(150,50,35,0.18);
  padding-bottom: 0;
}

.period-tab {
  padding: 0.45rem 1rem 0.55rem;
  border-radius: 0;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

.period-tab:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(205,65,43,0.4);
}

.period-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

/* Table wrapper */
.leaderboard-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(150,50,35,0.2);
  border-left: 2px solid rgba(205,65,43,0.45);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

/* Corner brackets */
.leaderboard-wrap::before,
.leaderboard-wrap::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1;
}
.leaderboard-wrap::before {
  top: -1px; right: -1px;
  border-top: 2px solid rgba(205,65,43,0.4);
  border-right: 2px solid rgba(205,65,43,0.4);
}
.leaderboard-wrap::after {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid rgba(205,65,43,0.4);
  border-left: 2px solid rgba(205,65,43,0.4);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  padding: 0.65rem var(--space-md);
  font-size: 9.5px;
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(150,50,35,0.15);
  background: rgba(0,0,0,0.2);
}

.leaderboard-table td {
  padding: 0.7rem var(--space-md);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid rgba(150,50,35,0.07);
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover td {
  background: rgba(205,65,43,0.04);
}

.leaderboard-table .rank-cell {
  font-weight: var(--font-weight-bold);
  width: 50px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table .rank-1 { color: #f5c842; }
.leaderboard-table .rank-2 { color: #b8b0a0; }
.leaderboard-table .rank-3 { color: #a06030; }

.leaderboard-table .score-cell {
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table .username-cell {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.leaderboard-table .username-cell a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.leaderboard-table .username-cell a:hover {
  color: var(--accent);
}

/* Empty / loading state */
.lb-empty-row td {
  text-align: center;
  padding: var(--space-2xl) !important;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}
