/* Public, direct-link-only leaderboard pages (/leaderboards/server,
   /leaderboards/global). Not linked from anywhere else on the site. */

/* Shimmer skeleton loader - the dashboard has this already (assets/css/site.css
   there); homepage never needed one until this page. */
.page-loader { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-24) var(--space-6); }
.sk {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--surface-hi) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}
.sk-line { height: 14px; width: 70%; }
.sk-line.short { width: 45%; }
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

.lb-page { flex: 1; padding: var(--space-12) 0 var(--space-24); }
.lb-header { align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.lb-header h1 { margin: 0 0 var(--space-1); font-size: var(--text-2xl); }
.lb-guild-icon { width: 56px; height: 56px; border-radius: var(--radius); border: 1px solid var(--border); flex-shrink: 0; }

.lb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-10); }
.lb-columns-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .lb-columns-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .lb-columns, .lb-columns-3 { grid-template-columns: 1fr; } }
.lb-columns h2 { margin: 0 0 var(--space-4); font-size: var(--text-lg); display: flex; align-items: center; gap: 8px; }
.emoji-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }

.lb-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2);
  margin: 0 calc(var(--space-2) * -1);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 0.15s var(--ease-out, ease);
}
.lb-row:hover { background: var(--surface-alt); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 1.5em; flex-shrink: 0; text-align: right; color: var(--text-dim); font-family: var(--font-mono); font-size: var(--text-sm); }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--surface-alt); }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb-value { color: var(--text-muted); font-size: var(--text-sm); flex-shrink: 0; }

.lb-footnote { margin-top: var(--space-8); }

.lb-error { text-align: center; padding: var(--space-20) var(--space-6); max-width: 480px; margin: 0 auto; }
.lb-error h1 { font-size: var(--text-xl); margin: 0 0 var(--space-3); }

/* A board with only a couple of entries stops at its content instead of
   stretching to match the tallest column. */
.lb-columns { align-items: start; }
