/* Level leaderboard (/leaderboard). Flat 2002-Steam: border-radius 0 everywhere,
   mono for numbers, dark olive palette. Podium = 2-1-3 cards, then a table. */

.lb { --lmono: Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  max-width: 860px; margin: 0 auto; }

/* brand bar (mirrors the compare/home hero bar) */
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: wrap; background: #1a1c14; border: 1px solid #34372a; padding: 9px 14px; }

.lb__head { padding: 18px 2px 14px; }
.lb__kicker { font-family: var(--lmono); font-size: 11px; color: #8a8c78; letter-spacing: 1.5px; margin-bottom: 9px; }
.lb__h1 { font-family: var(--lmono); font-size: 24px; color: #f5f4ec; letter-spacing: 1px; margin: 0; }
.lb__sub { font-size: 12px; color: #8a8c78; line-height: 1.55; margin: 9px 0 0; max-width: 560px; }
.lb__sub b { color: #ccb766; font-weight: 400; }

/* board tabs (All-time / This week) — square menu chips, gold when active */
.lb__tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.lb__tab { appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 700 11px var(--lmono); letter-spacing: .08em; text-transform: uppercase;
  color: #8a8c78; background: #14160d; border: 1px solid #34372a;
  border-radius: 0; padding: 6px 12px; }
.lb__tab:hover { color: #d8d8c8; border-color: #8f7f44; }
.lb__tab.is-active { color: #ccb766; border-color: #ccb766; background: #1a1c11; }

.lb__status { font-family: var(--lmono); font-size: 12px; color: #8a8c78; letter-spacing: .5px;
  padding: 26px 0; text-align: center; }
.lb__foot { font-size: 11px; color: #8a8c78; margin: 14px 2px 0; }

/* ── Podium: 2-1-3, #1 centre and taller ─────────────────────────────────── */
.lb__podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 10px; align-items: end; }
.lbp { background: #14160d; border: 1px solid #34372a; padding: 14px 12px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.lbp--1 { border-color: #ccb766; box-shadow: 0 0 0 1px #8f7f44, 0 0 22px rgba(204, 183, 102, .14); padding-top: 20px; padding-bottom: 18px; }
.lbp--2 { border-color: #8a8f98; }
.lbp--3 { border-color: #8a6a44; }
.lbp.is-me { outline: 1px dashed #ccb766; outline-offset: 3px; }

.lbp__plate { font-family: var(--lmono); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid; padding: 2px 10px; }
.lbp--1 .lbp__plate { color: #ffd34a; border-color: #8f7f44; background: rgba(204, 183, 102, .10); }
.lbp--2 .lbp__plate { color: #c7ccd4; border-color: #6f747d; background: rgba(199, 204, 212, .08); }
.lbp--3 .lbp__plate { color: #d89a62; border-color: #8a6a44; background: rgba(205, 127, 50, .10); }

.lbp__av { width: 56px; height: 56px; object-fit: cover; display: block;
  background: #0f110b; border: 1px solid #6f7358; box-shadow: inset 0 0 0 1px #14160d; }
.lbp--1 .lbp__av { width: 68px; height: 68px; border-color: #8f7f44; }
.lb-mono-av { display: flex; align-items: center; justify-content: center;
  font: 700 24px var(--font); color: #ccb766; }

/* Row so the prefix tag sits INLINE before the name (podium card is column flex).
   baseline (not center) so the small tag sits ON the name's baseline. */
.lbp__name { max-width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
.lbp__lvl { display: flex; align-items: baseline; gap: 6px; font-family: var(--lmono); margin-top: 2px; }
.lbp__lvl .k { font-size: 11px; color: #8a8c78; letter-spacing: 1px; }
.lbp__lvl .v { font-size: 30px; font-weight: 700; color: #f5f4ec; letter-spacing: 1px; }
.lbp--1 .lbp__lvl .v { font-size: 38px; color: #ffd34a; }
.lbp__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  font-family: var(--lmono); font-size: 11px; color: #d8d8c8; }
.lbp__meta i { font-style: normal; color: #8a8c78; letter-spacing: .5px; }

/* player-name link + tag chip (shared podium/table) */
.lb-name { color: #f5f4ec; font: 700 13px var(--font); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; vertical-align: middle; }
.lb-name:hover { color: #ccb766; text-decoration: underline; }
/* baseline (was middle) so the inline prefix tag sits on the name's baseline. */
.lb-tag { vertical-align: baseline; }
/* Tag now PREFIXES the name, so the gap moves to the RIGHT (it used to trail it). */
.lb-tag--sm { margin: 0 6px 0 8px; transform: scale(.85); transform-origin: left center; }
.lb-dim { color: #8a8c78; }
.lb-nocat { font-weight: 700; }

/* reign chip on podium cards ("HELD 3d 4h") */
.lbp__reign { font-family: var(--lmono); font-size: 10px; letter-spacing: 1px;
  color: #8a8c78; border: 1px solid #2c2f22; background: #0f110b; padding: 3px 8px; margin-top: 2px; }
.lbp--1 .lbp__reign { color: #ccb766; border-color: #4a4426; }

/* "your rank" strip — signed-in users outside the visible top 25 (all-time) */
.lbme { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px;
  background: #1e2012; border: 1px solid #4a4426; box-shadow: inset 3px 0 0 #ccb766;
  padding: 9px 14px; font-family: var(--lmono); font-size: 12px; color: #8a8c78; }
.lbme__k { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #ccb766; }
.lbme__rank { font-size: 17px; font-weight: 700; color: #f5f4ec; letter-spacing: 1px; }
.lbme__stat b { color: #d8d8c8; font-weight: 700; }
.lbme__chase { margin-left: auto; color: #8a8c78; }

/* weekly footnote */
.lb__wknote { font-family: var(--lmono); font-size: 11px; color: #8a8c78; margin: 10px 2px 0; }

/* ── Podium history — killfeed-style takeover log ────────────────────────── */
.lbh { margin-top: 14px; background: #14160d; border: 1px solid #34372a; }
.lbh__head { font-family: var(--lmono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #8a8c78; text-transform: uppercase; background: #1a1c14;
  border-bottom: 1px solid #34372a; padding: 8px 12px; }
.lbh__row { display: flex; align-items: baseline; gap: 12px; padding: 7px 12px;
  border-bottom: 1px solid #20231a; font-size: 12px; color: #8a8c78; }
.lbh__row:last-child { border-bottom: none; }
.lbh__row:nth-child(odd) { background: #16180f; }
.lbh__date { font-family: var(--lmono); font-size: 11px; color: #8a8c78; flex: none; width: 52px; }
.lbh__line b { color: #d8d8c8; font-weight: 700; }
.lbh__rank { font-family: var(--lmono); font-weight: 700; padding: 0 3px; }
.lbh__rank--1 { color: #ffd34a; }
.lbh__rank--2 { color: #c7ccd4; }
.lbh__rank--3 { color: #d89a62; }

/* ── Ranks 4-25 table ────────────────────────────────────────────────────── */
.lbt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }
.lbt { width: 100%; border-collapse: collapse;
  background: #14160d; border: 1px solid #34372a; }
.lbt th { font-family: var(--lmono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #8a8c78; text-align: left; background: #1a1c14;
  border-bottom: 1px solid #34372a; padding: 8px 12px; }
.lbt td { padding: 8px 12px; border-bottom: 1px solid #20231a; font-size: 12px; color: #d8d8c8; }
.lbt tbody tr:last-child td { border-bottom: none; }
.lbt tbody tr:nth-child(even) td { background: #16180f; }
.lbt tbody tr:hover td { background: #1a1c11; }
.lbt tr.is-me td { background: #1e2012; box-shadow: inset 3px 0 0 #ccb766; }

.lbt__rank { font-family: var(--lmono); font-weight: 700; color: #8a8c78; width: 34px; }
.lbt__player { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lbt__av { width: 24px; height: 24px; flex: none; object-fit: cover; display: block;
  background: #0f110b; border: 1px solid #3a3d2e; }
.lbt__av.lb-mono-av { font-size: 12px; }
.lbt__num { font-family: var(--lmono); text-align: right; white-space: nowrap; }
th.lbt__num { text-align: right; }
.lbt__lvl { font-weight: 700; color: #f5f4ec; font-size: 13px; }

@media (max-width: 640px) {
  .lb__podium { grid-template-columns: 1fr; }
  .lbp { flex-direction: row; text-align: left; flex-wrap: wrap; align-items: center; }
  .lbp__meta { justify-content: flex-start; }
  .lbt th:nth-child(5), .lbt td:nth-child(5) { display: none; } /* drop ACH col on phones */
}
/* tighten padding so #/Player/Level/XP/nocat fit small phones; .lbt-scroll is the safety net */
@media (max-width: 480px) { .lbt th, .lbt td { padding: 8px 7px; } }
@media (max-width: 380px) { .lbt th, .lbt td { padding: 8px 5px; } }

.lb__tab:focus-visible { outline: 1px dashed var(--gold); outline-offset: 2px; }
