/* ==========================================================================
   SWEZEEBRA ARCADE GLOBAL LEADERBOARD & HALL OF FAME
   Pure Black AMOLED · Real Verified Scores · 0% Fake Metrics
   ========================================================================== */

.sz-leaderboard-dialog {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  background: #000000;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(168, 85, 247, 0.25);
  font-family: system-ui, -apple-system, sans-serif;
}

.sz-leaderboard-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sz-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  background: #060609;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sz-lb-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sz-lb-mascot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(163, 230, 53, 0.35);
}

.sz-lb-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a3e635;
  text-transform: uppercase;
}

.sz-lb-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #fff;
}

.sz-lb-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.sz-lb-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.sz-lb-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #08080c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.sz-lb-tabs::-webkit-scrollbar {
  display: none;
}

.sz-lb-tab {
  background: #101016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sz-lb-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: #181822;
}

.sz-lb-tab.active {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border-color: #c084fc;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.4);
}

.sz-lb-body {
  padding: 24px 26px;
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
}

/* Tab Panels */
.sz-lb-panel {
  display: none;
}

.sz-lb-panel.active {
  display: block;
}

.sz-lb-card-highlight {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(163, 230, 53, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sz-lb-card-highlight h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #fff;
}

.sz-lb-card-highlight p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

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

.sz-lb-table th {
  text-align: left;
  padding: 10px 14px;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sz-lb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.sz-lb-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.sz-lb-rank {
  font-weight: 850;
  width: 44px;
}

.sz-lb-gold { color: #f59e0b; }
.sz-lb-silver { color: #cbd5e1; }
.sz-lb-bronze { color: #d97706; }

.sz-lb-player-name {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sz-lb-verified-tag {
  font-size: 9px;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 2px 6px;
}

.sz-lb-score-val {
  font-weight: 800;
  color: #a3e635;
  font-variant-numeric: tabular-nums;
}

.sz-lb-clear-badge {
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  display: inline-block;
}

.sz-clear-chasm {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sz-clear-high {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.sz-clear-mid {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sz-lb-action-btn {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.sz-lb-action-btn:hover {
  background: #a855f7;
  border-color: #c084fc;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

/* User personal status bar */
.sz-lb-user-shelf {
  background: #060609;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sz-lb-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sz-lb-user-icon {
  font-size: 20px;
}

.sz-lb-user-text strong {
  font-size: 13px;
  color: #fff;
  display: block;
}

.sz-lb-user-text span {
  font-size: 11.5px;
  color: #94a3b8;
}

.sz-lb-user-cta {
  background: linear-gradient(135deg, #a3e635, #84cc16);
  color: #0c1a05;
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sz-lb-user-cta:hover {
  transform: translateY(-1px);
}
