/* Player Leaderboard — unlockedmagick.com/leaderboard */
:root {
  --lb-bg: #030007;
  --lb-card: rgba(13, 10, 26, 0.88);
  --lb-gold: #c9a84c;
  --lb-text: #f0ead6;
  --lb-mut: #8a7a5a;
  --lb-line: rgba(201, 168, 76, 0.22);
  --lb-ok: #6abf8a;
}

.lb-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 168, 76, 0.08), transparent 50%),
    var(--lb-bg);
  color: var(--lb-text);
  font-family: "Outfit", system-ui, sans-serif;
  padding-bottom: 80px;
}

.lb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--lb-line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 0, 7, 0.92);
  backdrop-filter: blur(12px);
}

.lb-top a {
  color: var(--lb-gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 20px;
  text-align: center;
}

.lb-hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(28px, 4vw, 42px);
  background: linear-gradient(135deg, #c9a84c, #ffd700, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-hero p {
  color: var(--lb-mut);
  max-width: 640px;
  margin: 12px auto 0;
  line-height: 1.7;
  font-size: 15px;
}

.lb-callout {
  max-width: 1100px;
  margin: 16px auto;
  padding: 12px 18px;
  border: 1px solid var(--lb-line);
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.06);
  color: var(--lb-mut);
  font-size: 13px;
  text-align: center;
}

.lb-callout strong {
  color: var(--lb-gold);
}

.lb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 40px;
}

.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.lb-tab {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--lb-line);
  background: transparent;
  color: var(--lb-mut);
  cursor: pointer;
}

.lb-tab.on {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #050505;
  border-color: transparent;
}

.lb-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.lb-filters input,
.lb-filters select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--lb-line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--lb-text);
  font-size: 14px;
}

.lb-filters input::placeholder {
  color: #5a5040;
}

.lb-table-wrap {
  border: 1px solid var(--lb-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--lb-card);
}

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

.lb-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lb-gold);
  border-bottom: 1px solid var(--lb-line);
  background: rgba(0, 0, 0, 0.25);
}

.lb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.lb-table tr:hover td {
  background: rgba(201, 168, 76, 0.04);
}

.lb-rank {
  font-weight: 800;
  color: var(--lb-gold);
  font-variant-numeric: tabular-nums;
  width: 48px;
}

.lb-user {
  font-weight: 700;
  color: var(--lb-text);
}

.lb-role {
  color: var(--lb-mut);
  font-size: 13px;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lb-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--lb-gold);
  background: rgba(201, 168, 76, 0.08);
}

.lb-lv {
  font-weight: 800;
  color: #e8d48b;
  font-variant-numeric: tabular-nums;
}

.lb-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-width: 80px;
  max-width: 140px;
}

.lb-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b7355, #c9a84c 50%, #e8d48b);
  min-width: 2px;
}

.lb-xp {
  font-size: 11px;
  color: var(--lb-mut);
  font-variant-numeric: tabular-nums;
}

.lb-empty {
  padding: 40px;
  text-align: center;
  color: var(--lb-mut);
}

.lb-ai-strip {
  margin-top: 28px;
  padding: 18px;
  border: 1px dashed var(--lb-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.lb-ai-strip h3 {
  font-family: "Cinzel", serif;
  font-size: 16px;
  color: var(--lb-gold);
  margin-bottom: 8px;
}

.lb-ai-strip p {
  font-size: 13px;
  color: var(--lb-mut);
  margin-bottom: 12px;
}

.lb-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.lb-ai-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.lb-ai-card strong {
  display: block;
  color: var(--lb-text);
  margin-bottom: 2px;
}

.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.lb-btn {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--lb-line);
  background: transparent;
  color: var(--lb-gold);
  cursor: pointer;
}

.lb-btn.primary {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #050505;
  border: none;
}

.lb-foot {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 12px;
  color: #5a5040;
  text-align: center;
  line-height: 1.6;
}

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