.leaderboard-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.leaderboard-hero {
  margin-bottom: 24px;
}

.leaderboard-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leaderboard-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 520px;
}

.leaderboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.leaderboard-filters {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 10px;
}

.leaderboard-filter {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.leaderboard-filter:hover {
  color: var(--text-primary);
}

.leaderboard-filter.active {
  background: rgba(147, 51, 234, 0.35);
  color: #fde68a;
}

.leaderboard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.leaderboard-meta .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: lb-pulse 2s ease-in-out infinite;
}

@keyframes lb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.leaderboard-card {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.15), rgba(0, 0, 0, 0.45));
  border: 1px solid rgba(147, 51, 234, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.leaderboard-table-wrap {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.leaderboard-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
}

.leaderboard-table th:nth-child(n+3) {
  text-align: right;
}

.leaderboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.leaderboard-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.leaderboard-table tbody tr:hover {
  background: rgba(147, 51, 234, 0.06);
}

.leaderboard-table tbody tr.is-me {
  background: rgba(251, 191, 36, 0.08);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: 800;
  color: var(--text-muted);
}

.leaderboard-rank--1,
.leaderboard-rank--2,
.leaderboard-rank--3 {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8125rem;
}

.leaderboard-rank--1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1a0a2e;
}

.leaderboard-rank--2 {
  background: linear-gradient(135deg, #d1d5db, #6b7280);
  color: #111;
}

.leaderboard-rank--3 {
  background: linear-gradient(135deg, #f59e0b, #92400e);
  color: #fff;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(147, 51, 234, 0.25);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.leaderboard-player--hidden .leaderboard-avatar {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
}

.leaderboard-amount {
  font-weight: 700;
  color: #4ade80;
}

.leaderboard-amount--muted {
  color: var(--text-secondary);
  font-weight: 600;
}

.leaderboard-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.leaderboard-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) {
    display: none;
  }
}
