/* Leaderboard screen (lifetime + weekly leaderboard plan). Extracted out of
   game.html verbatim in W5: game.html sits at its flat file-size ratchet
   ceiling (scripts/check-file-size.mjs), matching the expeditions.css
   precedent. .lb-dino was previously embedded inline inside game.html's
   minified .den-card rule (it shares .den-emoji's icon sizing contract);
   moved here so every .lb-* selector lives in one file. .lb-tabs, .lb-tab,
   .lb-legend, and .lb-current-season are new in W6 (the tabs + row
   redesign); everything else is unchanged from the extraction. */
#leaderboard-screen {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  z-index: 80;
  padding: 2rem 1rem;
  justify-content: flex-start;
  padding-top: 4rem;
  overflow-y: auto;
}
.lb-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}
.lb-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.lb-rank.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}
.lb-rank.silver {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #1a1a2e;
}
.lb-rank.bronze {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a2e;
}
.lb-rank.normal {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
.lb-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
}
.lb-score {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-gold);
  /* Carries the right-push that .lb-verification used to own. Without this,
     an unverified row (which now renders no badge at all) would leave its
     score mid-row. */
  margin-left: auto;
}
/* Verified-run badge (2026-08-28), replacing the .lb-verification text
   labels. --accent-pink is #f093fb, the brand board's productPalette.primary
   (docs/brand/ploposaurus.brand.json), already declared in game.html's :root. */
.lb-verified {
  width: 1em;
  height: 1em;
  font-size: 0.875rem;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--accent-pink);
  fill: currentColor;
  border-radius: 50%;
  /* Hue-neutral luminance ring. The caller's own row (.lb-you) is tinted the
     SAME pink as the badge, so the risk there is not contrast (5.36:1, fine)
     but hue collision - the badge stops reading as a separate object. Kept
     always-on rather than scoped to .lb-you: a badge that changes appearance
     depending on whose row it sits in would signal something untrue, and
     always-on also covers .lb-entry:hover. */
  box-shadow: 0 0 0 1.5px rgba(10, 10, 26, 0.6);
}
.lb-verified-check {
  /* Dark check, not white: white on #f093fb measures 2.05:1 and fails the
     3:1 non-text bar. Dark-on-pink measures 9.6:1. */
  fill: none;
  stroke: var(--bg-dark);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-legend .lb-verified {
  margin-left: 0;
  vertical-align: -0.2em;
}
.lb-seasons {
  font-size: 0.6rem;
  font-weight: 900;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.lb-you {
  border-color: rgba(240, 147, 251, 0.4);
  background: rgba(240, 147, 251, 0.08);
}
.lb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0.6rem;
}
.lb-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.lb-tab.active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  color: #fff;
}
.lb-legend {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.35rem;
}
.lb-current-season {
  font-size: 0.6rem;
  font-weight: 900;
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 999px;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.lb-dino {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
}
