/* Forge leaderboard (2.0). Builds on gym/gym.css (.fg); everything scoped under .flb. */
.fg.flb { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }
.flb .scope { display: flex; width: 100%; margin: -4px 0 18px; }
.flb .scope button { flex: 1; }

/* podium */
.flb .podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 14px; }
.flb .pod { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; }
.flb .pod.empty { visibility: hidden; }
.flb .pod-wrap { position: relative; min-width: 0; }
.flb .pod-wrap .pod { width: 100%; }
.flb .pod-more { position: absolute; top: 0; right: 0; z-index: 1; }
.flb .crown { color: #ffd166; font-size: 20px; line-height: 1; margin-bottom: -2px; text-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.flb .av { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--fg-bg3); border: 3px solid var(--ring, #333); font-family: var(--fg-hud); font-weight: 900; font-size: 20px; color: #fff; flex-shrink: 0; }
.flb .p1 .av { width: 72px; height: 72px; font-size: 26px; box-shadow: 0 0 24px rgba(255, 209, 102, 0.18); }
.flb .av.sm { width: 32px; height: 32px; font-size: 13px; border-width: 2px; }
.flb .pod-name { font-family: var(--fg-ui); font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flb .pod.me .pod-name { color: var(--fg-xp); }
.flb .pod-score { font-size: 11px; color: var(--fg-muted); white-space: nowrap; }
.flb .stand { width: 100%; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #1d1d1d, #121212); border: 1px solid var(--fg-border);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; margin-top: 2px; }
.flb .stand span { font-family: var(--fg-hud); font-weight: 900; font-size: 22px; color: #3a3a3a; }
.flb .p1 .stand { height: 92px; border-color: #3d3316; background: linear-gradient(180deg, #2a2310, #141108); }
.flb .p1 .stand span { color: #ffd166; font-size: 28px; }
.flb .p2 .stand { height: 64px; }
.flb .p2 .stand span { color: #cfcfcf; }
.flb .p3 .stand { height: 46px; }
.flb .p3 .stand span { color: #b07a4f; }

/* your position */
.flb .you { display: flex; gap: 14px; align-items: center; border-left: 3px solid var(--fg-xp); }
.flb .you-rank { font-family: var(--fg-hud); font-weight: 900; font-size: 26px; text-align: center; min-width: 56px; }
.flb .you-rank span { display: block; font-family: var(--fg-mono); font-weight: 400; font-size: 10px; color: var(--fg-muted); margin-top: 2px; }
.flb .you-main { flex: 1; min-width: 0; }
.flb .you-score { font-family: var(--fg-ui); font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.flb .you .bar { display: block; }

/* rows */
.flb .lb-row { display: grid; grid-template-columns: 24px 1fr auto 30px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fg-border); }
.flb .lb-row:last-child { border-bottom: none; }
.flb .lb-row.me { background: #141225; margin: 0 -12px; padding: 10px 12px; border-radius: 10px; grid-template-columns: 24px 1fr auto 30px; }
.flb .lb-n { font-size: 12px; color: var(--fg-muted); text-align: center; }
.flb .lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; padding: 0; }
.flb .lb-name { font-family: var(--fg-ui); font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flb .lb-row.me .lb-name { color: var(--fg-xp); }
.flb .lb-name small { display: block; font-family: var(--fg-mono); font-weight: 400; font-size: 10px; color: var(--fg-muted); margin-top: 1px; }
.flb .lb-score { font-size: 12px; color: #ddd; white-space: nowrap; }
.flb .lb-more { color: #555; font-size: 18px; line-height: 1; padding: 4px; }

/* belt ladder */
.flb .ladder { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 12px; }
.flb .ladder i { height: 6px; border-radius: 3px; background: var(--fg-bg3); }
.flb .ladder i.on { background: var(--c); }
.flb .empty .link { margin-top: 10px; font-size: 13px; }

/* weekly league banner */
.flb .league { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; border-color: #3a3470; background: linear-gradient(135deg, rgba(124,108,255,0.14), rgba(124,108,255,0.02)); }
.flb .league b { display: block; font-family: var(--fg-hud); font-size: 10px; letter-spacing: 0.2em; color: #b8b0ff; }
.flb .league span { font-size: 12px; color: #aaa; }
.flb .league-medals { font-size: 20px; letter-spacing: 2px; flex-shrink: 0; }
.flb .league-medals.dim { opacity: 0.3; filter: grayscale(1); }
