/* ============================================================================
   Community Leaderboard
   ----------------------------------------------------------------------------
   Tokens mirror the approved Paper board. They are namespaced --lb-* and
   scoped to this page so the shared site chrome (header, footer, theme
   toggle) keeps using the landing tokens untouched.

   Dark mode hangs off html[data-theme="dark"], the same hook every other
   page uses, so the existing toggle + localStorage persistence just works.
   ============================================================================ */

:root {
  --lb-canvas: #FAFAF9;
  --lb-raised: #FFFFFF;
  --lb-rail: #F3F3F1;
  --lb-ink: #16181B;
  --lb-ink-2: #56585C;
  --lb-ink-3: #7B7E84;
  --lb-hairline: #E7E7E4;
  --lb-hairline-strong: #D5D5D1;
  --lb-hover: #F0F0ED;
  --lb-band: #1B1D21;
  --lb-band-ink: #F4F3F1;
  --lb-band-ink-2: #A5A8AE;

  --lb-amber: #EFA23A;
  --lb-amber-deep: #B97817;
  --lb-amber-tint: #FBF1E2;
  --lb-amber-line: #E8C88C;
  --lb-on-amber: #241A08;
  /* Flag pole is near-black ink on paper; on the dark board it has to lift
     off the background or the pennant looks like it is floating. */
  --lb-flagpole: #1A1A1A;

  --lb-green: #2E7D55;
  --lb-green-ink: #215F40;
  --lb-green-tint: #ECF5F0;
  --lb-green-line: #A8D5BE;

  /* Privacy 'blocked send' marker — deliberately softer than --lb-error,
     which is reserved for genuine failure states. */
  --lb-muted-coral: #A9604F;

  --lb-error: #C0392B;
  --lb-error-tint: #FBECEA;
  --lb-error-line: #EFC9C3;

  --lb-gold-bg: #FBF1E2;   --lb-gold-line: #D9AE63;  --lb-gold-ink: #B97817;
  --lb-gold-chip: #F2D9A8; --lb-gold-glyph: #8A5A10;
  --lb-silver-bg: #F4F5F6; --lb-silver-line: #AEB6BF; --lb-silver-ink: #5A6068;
  --lb-silver-chip: #D3D8DD; --lb-silver-glyph: #4A5058;
  --lb-bronze-bg: #FBF4EC; --lb-bronze-line: #C69A66; --lb-bronze-ink: #8A5A2B;
  --lb-bronze-chip: #E7CBA9; --lb-bronze-glyph: #8A5A2B;

  --lb-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --lb-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --lb-maxw: 1180px;
  --lb-pad: clamp(16px, 5vw, 40px);
  --lb-radius: 12px;

  /* Every duration funnels through these two so reduced-motion can zero
     them in one place instead of per-rule. */
  --lb-dur-move: 500ms;
  --lb-dur-fade: 350ms;
}

html[data-theme="dark"] {
  --lb-canvas: #141619;
  --lb-raised: #1D2024;
  --lb-rail: #191B1E;
  --lb-ink: #F2F2F0;
  --lb-ink-2: #A9ACB2;
  --lb-ink-3: #8B9099;
  --lb-hairline: #26292E;
  --lb-hairline-strong: #32363C;
  --lb-hover: #212429;
  --lb-band: #23262B;

  --lb-amber-deep: #EFA23A;
  --lb-amber-tint: #2A2113;
  --lb-amber-line: #6A5326;
  --lb-flagpole: #C9CDD2;

  --lb-green: #5FC7A0;
  --lb-green-ink: #5FC7A0;
  --lb-green-tint: #182A22;
  --lb-green-line: #2C5A46;

  --lb-muted-coral: #D89380;

  --lb-error: #FF6B5E;
  --lb-error-tint: #331C1A;
  --lb-error-line: #5A2E2A;

  --lb-gold-bg: #2A2113;   --lb-gold-line: #D9AE63;  --lb-gold-ink: #E0A94A;
  --lb-gold-chip: #4A3A1C; --lb-gold-glyph: #E7C070;
  --lb-silver-bg: #1F2429; --lb-silver-line: #AEB6BF; --lb-silver-ink: #B4BCC5;
  --lb-silver-chip: #333B44; --lb-silver-glyph: #C4CCD5;
  --lb-bronze-bg: #241E18; --lb-bronze-line: #C69A66; --lb-bronze-ink: #D0A272;
  --lb-bronze-chip: #402F20; --lb-bronze-glyph: #DDB183;
}

/* ---------------------------------------------------------------- layout - */

.lb {
  background: var(--lb-raised);
  color: var(--lb-ink);
  font-family: var(--lb-sans);
}
.lb-wrap { max-width: var(--lb-maxw); margin: 0 auto; padding-inline: var(--lb-pad); }
/* The site header is sticky, so anchor jumps need a landing margin or the
   target heading arrives underneath it. */
.lb-section { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--lb-hairline); scroll-margin-top: 92px; }
.lb [id] { scroll-margin-top: 92px; }
.lb-section--flat { background: var(--lb-canvas); }
/* The subordinate tier: column headings inside a section, never a section
   title of their own. Paper sets these at 24/30 — deliberately quiet, because
   the section around them already carries the major scale. */
.lb h2 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--lb-ink); }

/* Section headings use fixed steps at breakpoints rather than viewport-width
   scaling, so type size is predictable instead of drifting with the window.
   `--lb-h2-section` is one level below the page H1 and matches across the
   board intro, the two coverage sections and the final CTA. */
:root { --lb-h2-section: 30px; }
@media (min-width: 768px)  { :root { --lb-h2-section: 38px; } }
@media (min-width: 1024px) { :root { --lb-h2-section: 44px; } }
@media (min-width: 1440px) { :root { --lb-h2-section: 50px; } }

/* Major section titles. The `h2` in the selector is load-bearing: without it
   the element rule above wins on specificity and every section title silently
   collapses to the subordinate 24px, which is exactly what happened to the
   Community Benchmark beta heading. */
.lb h2.lb-section-title, .lb-section-title {
  font-size: var(--lb-h2-section); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0; color: var(--lb-ink); text-wrap: balance;
}
.lb-sub { font-size: 14px; line-height: 22px; color: var(--lb-ink-2); margin: 8px 0 0; max-width: 62ch; }
.lb-eyebrow { font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--lb-ink-3); text-transform: uppercase; }
.lb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lb :is(button, a, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--lb-amber-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ hero - */

/* The hero fills most of the first viewport but deliberately stops short, so
   a sliver of the stats band shows and the page reads as continuing. */
.lb-hero { padding-block: clamp(40px, 6vw, 76px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--lb-hairline); }
@media (min-width: 1080px) {
  .lb-hero { min-height: calc(100svh - 80px - 96px); display: flex; align-items: center; }
  .lb-hero > .lb-wrap { width: 100%; }
}
/* Record sits on the optical centre of the headline+CTA group rather than
   its top edge, which left the mascot pinned high and detached. */
.lb-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: clamp(32px, 5vw, 40px); }
.lb-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 660px; }

.lb-kicker { display: flex; align-items: center; gap: 8px; font-family: var(--lb-mono); font-size: 11px; letter-spacing: 0.08em; }
.lb-kicker .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--lb-green); flex: 0 0 auto; }
.lb-kicker .live { color: var(--lb-green); }
.lb-kicker .rule { width: 1px; height: 10px; background: var(--lb-hairline-strong); }
.lb-kicker .stamp { color: var(--lb-ink-3); letter-spacing: 0.06em; }

/* The two-line break is intentional: "Real numbers from / real Macs." is the
   approved rhythm. <br> is authored in the markup and suppressed below 560px
   so a 320px screen can wrap naturally instead of overflowing. */
.lb-h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin: 0; color: var(--lb-ink); }
.lb-lede { font-size: clamp(15px, 1.6vw, 16px); line-height: 1.62; color: var(--lb-ink-2); margin: 0; max-width: 620px; }
/* Where a shared run lands — the promise the CTA makes, stated before the button. */
.lb-hero-where, .lb-final-where { font-size: 13.5px; line-height: 1.6; color: var(--lb-ink-3); margin: 0; max-width: 620px; text-wrap: pretty; }
.lb-final-where { max-width: 56ch; }
.lb-hero-where code, .lb-final-where code { font-family: var(--lb-mono); font-size: 12.5px; color: var(--lb-ink-2); }
.lb-hero-where a, .lb-final-where a { color: var(--lb-amber-deep); font-weight: 500; text-decoration: none; }
.lb-hero-where a:hover, .lb-final-where a:hover { text-decoration: underline; }
.lb-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }

.lb-btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 8px; padding: 13px 20px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; min-height: 44px; box-sizing: border-box; }
.lb-btn--primary { background: var(--lb-amber); color: var(--lb-on-amber); }
.lb-btn--primary:hover { background: #E5952C; }
.lb-btn--ghost { border-color: var(--lb-hairline-strong); color: var(--lb-ink-2); font-weight: 500; padding-inline: 18px; background: transparent; }
.lb-btn--ghost:hover { background: var(--lb-hover); }
.lb-btn svg { flex: 0 0 auto; }

/* --------------------------------------------------- hero record + mascot - */

/* Slightly below the optical centre: the number leads, the cheetah runs out
   of it toward the flag, and the facts close the group underneath. */
.lb-record { border-left: 2px solid var(--lb-amber); padding-left: 24px; display: flex; flex-direction: column; gap: 12px; width: 470px; flex: 0 0 auto; margin-top: 28px; }
.lb-record-band { display: flex; align-items: flex-end; gap: 0; width: 100%; }
.lb-record-metric { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.lb-record-label { font-family: var(--lb-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; line-height: 16px; color: var(--lb-ink-3); }
.lb-record-value { display: flex; align-items: flex-end; gap: 8px; }
.lb-record-value b { font-size: 68px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-record-value span { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--lb-ink-2); padding-bottom: 7px; }
.lb-record-facts { display: flex; flex-direction: column; gap: 2px; }
.lb-record-alias { font-family: var(--lb-mono); font-size: 14px; font-weight: 500; line-height: 20px; color: var(--lb-ink); }
.lb-record-machine { font-size: 13px; line-height: 20px; color: var(--lb-ink-2); }

/* Mascot stage.
   All four animations were extracted from the supplied GIFs onto one
   transparent 320x320 canvas with a shared character scale and foot
   baseline, so swapping between them cannot move a single pixel of the
   surrounding composition. The box is sized in CSS and the <img> carries
   intrinsic width/height, so nothing shifts while it loads either. */
/* Sits at the top of the record, aligned left with the label and the number.
   The shared canvas leaves 8.75% empty below the feet and ~13% of transparent
   margin at each side, so both are pulled back — otherwise the character
   would look inset from the text lane and float above the label. */
.lb-mascot {
  --m: 188px; width: var(--m); height: var(--m); flex: 0 0 auto; position: relative;
  align-self: flex-start;
  margin-left: calc(var(--m) * -0.13);
  margin-bottom: calc(var(--m) * -0.0875);
}
.lb-mascot-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.lb-final-mascot .lb-mascot-art { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------------------------------------ pulse stats - */

.lb-pulse { background: var(--lb-canvas); border-bottom: 1px solid var(--lb-hairline); }
.lb-pulse-row { display: flex; align-items: stretch; gap: 0; padding-block: 34px; }
.lb-stat { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; padding-right: 24px; }
.lb-stat + .lb-stat { border-left: 1px solid var(--lb-hairline); padding-left: 24px; }
.lb-stat b { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lb-stat span { font-size: 13px; color: var(--lb-ink-2); }
.lb-stat .lb-tag { align-self: flex-start; margin-top: 2px; }

.lb-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; font-family: var(--lb-mono); letter-spacing: 0.04em; text-transform: uppercase; background: var(--lb-green-tint); border: 1px solid var(--lb-green-line); color: var(--lb-green-ink); }

/* -------------------------------------------------------------- explorer - */

/* Centred editorial introduction, then a clear gap before the functional
   surface. The mascot is part of the composition, above the heading, so it
   never crowds the tabs. */
.lb-board-intro {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding-block: clamp(24px, 5vw, 56px) clamp(36px, 6vw, 72px);
}
.lb-board-intro h2 {
  font-size: var(--lb-h2-section); letter-spacing: -0.03em; line-height: 1.08;
  text-wrap: balance;
}
/* A wide measure on purpose: at 60ch this paragraph broke into five short
   lines and stranded "for-like" alone. 1000px lands it on two balanced lines
   at 1440 without shrinking the type. */
.lb-board-intro p {
  margin: 0; max-width: 1000px; font-size: 16px; line-height: 1.65;
  color: var(--lb-ink-2); text-wrap: pretty;
}

/* Keeps a hyphenated phrase from splitting across lines. Released below
   480px, where a forced no-wrap could push past a narrow viewport. */
/* Keeps a compound term whole. Released inside the board description on the
   narrowest screens, where a natural break beats a cramped measure. */
.lb-nowrap { white-space: nowrap; }
@media (max-width: 479px) { .lb-board-intro .lb-nowrap { white-space: normal; } }
.lb-board-mascot { width: 140px; height: 140px; flex: 0 0 auto; margin-bottom: -14px; }
.lb-board-mascot .lb-mascot-art { display: block; width: 100%; height: 100%; object-fit: contain; }

.lb-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--lb-hairline); overflow-x: auto; scrollbar-width: none; }
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--lb-ink-2); white-space: nowrap; min-height: 44px; }
.lb-tab .u { font-family: var(--lb-mono); font-size: 10px; color: var(--lb-ink-3); }
.lb-tab[aria-selected="true"] { color: var(--lb-ink); font-weight: 600; border-bottom-color: var(--lb-amber); }
.lb-tab .count { font-family: var(--lb-mono); font-size: 10px; padding: 1px 6px; border-radius: 10px; background: var(--lb-rail); color: var(--lb-ink-2); }

.lb-explainer { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13px; line-height: 22px; color: var(--lb-ink-2); }
.lb-explainer svg { flex: 0 0 auto; margin-top: 3px; }

/* ---- filter bar ---- */
.lb-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.lb-filters-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-filters-right { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }

.lb-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--lb-hairline-strong); border-radius: 8px; padding: 0 12px; width: 214px; background: var(--lb-raised); min-height: 40px; }
.lb-search svg { flex: 0 0 auto; }
.lb-search input { border: 0; background: none; outline: none; font-family: inherit; font-size: 13px; color: var(--lb-ink); width: 100%; padding-block: 9px; min-width: 0; }
.lb-search input::placeholder { color: var(--lb-ink-3); }

.lb-select { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--lb-hairline-strong); border-radius: 8px; background: var(--lb-raised); min-height: 40px; }
.lb-select select { appearance: none; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--lb-ink-2); padding: 9px 30px 9px 12px; outline: none; cursor: pointer; }
.lb-select svg { position: absolute; right: 10px; pointer-events: none; }
.lb-select--on { background: var(--lb-amber-tint); border-color: var(--lb-amber); }
.lb-select--on select { color: var(--lb-amber-deep); font-weight: 600; }

.lb-count { font-size: 13px; color: var(--lb-ink-2); }
.lb-reset { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--lb-hairline-strong); border-radius: 8px; padding: 9px 12px; background: var(--lb-raised); font-family: inherit; font-size: 13px; font-weight: 500; color: var(--lb-ink-2); cursor: pointer; min-height: 40px; }
.lb-reset:hover { background: var(--lb-hover); }
.lb-reset[hidden] { display: none; }

/* ---- comparison context ---- */
.lb-compare { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--lb-rail); border: 1px solid var(--lb-hairline); border-radius: 10px; padding: 12px 16px; margin-top: 18px; }
.lb-compare-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lb-compare-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.lb-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--lb-raised); border: 1px solid var(--lb-hairline-strong); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; color: var(--lb-ink); }
.lb-dot-sep { color: var(--lb-ink-3); font-size: 12px; }
.lb-dir { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--lb-amber-deep); }
.lb-compare-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--lb-ink-3); }

.lb-compare-ico { display: inline-flex; }
.lb-compare-ico svg { display: block; }
/* The comparison claim is the single most misread thing on the board, so the
   bar itself carries the state. Mixed hardware (no single chip+RAM group) is
   an amber caution; a locked like-for-like group is a calm green confirm. The
   note text — dimmest ink by default — is promoted to the state colour so it
   reads at a glance instead of hiding. */
.lb-compare.is-mixed { background: var(--lb-amber-tint); border-color: var(--lb-amber-line); }
.lb-compare.is-mixed .lb-compare-note { color: var(--lb-amber-deep); font-size: 13px; font-weight: 600; }
.lb-compare.is-like { background: var(--lb-green-tint); border-color: var(--lb-green-line); }
.lb-compare.is-like .lb-compare-note { color: var(--lb-green-ink); font-size: 12.5px; font-weight: 500; }

/* On-ramp for new visitors, planted right under the rows. Mirrors the amber
   primary / hairline ghost button pair used in the hero. */
.lb-join { margin-top: 28px; padding: 22px 24px; background: var(--lb-rail); border: 1px solid var(--lb-hairline); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.lb-join-text { flex: 1 1 320px; }
.lb-join-text h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--lb-ink); margin: 0 0 5px; }
.lb-join-text p { font-size: 14px; line-height: 1.55; color: var(--lb-ink-2); margin: 0; max-width: 60ch; text-wrap: pretty; }
.lb-join-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .lb-join { flex-direction: column; align-items: flex-start; } .lb-join-text { flex-basis: auto; } .lb-join-cta { width: 100%; } .lb-join-cta .lb-btn { flex: 1 1 auto; justify-content: center; } }


/* ---- table ---- */
.lb-table-wrap { margin-top: 18px; border: 1px solid var(--lb-hairline); border-radius: var(--lb-radius); overflow: hidden; background: var(--lb-raised); }
.lb-table-scroll { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.lb-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--lb-rail); border-bottom: 1px solid var(--lb-hairline-strong);
  font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lb-ink-3); font-weight: 400; text-align: left; padding: 11px 20px; white-space: nowrap;
}
.lb-table thead th.num { text-align: right; }
.lb-table thead th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font: inherit; color: inherit; letter-spacing: inherit; }
.lb-table thead th button:focus-visible { outline: 2px solid var(--lb-amber-deep); outline-offset: 2px; }
.lb-table tbody td { padding: 15px 20px; border-bottom: 1px solid var(--lb-hairline); vertical-align: middle; }
.lb-table tbody tr { background: var(--lb-raised); border-left: 3px solid transparent; }
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover { background: var(--lb-hover); }

.lb-table tr.gold   { background: var(--lb-gold-bg);   border-left-color: var(--lb-gold-line); }
.lb-table tr.silver { background: var(--lb-silver-bg); border-left-color: var(--lb-silver-line); }
.lb-table tr.bronze { background: var(--lb-bronze-bg); border-left-color: var(--lb-bronze-line); }

/* Fixed lanes: the numeral slot and the medal slot are always the same
   width whether or not the row is honoured, so the model column starts on
   one x for all ten rows. */
.lb-rank { display: flex; align-items: center; gap: 10px; width: 108px; }
.lb-rank b {
  font-family: var(--lb-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  width: 42px; flex: 0 0 auto; text-align: right;
  /* ranks 4+ are the quiet baseline */
  font-size: 15px; line-height: 20px; color: var(--lb-ink-3);
}
.lb-medal-slot { width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }

/* Podium numeral hierarchy: 1 largest, 2–3 clearly bigger than 4–10.
   Kept in step with the metric scale above so the two read as one system. */
.gold   .lb-rank b { font-size: 38px; line-height: 40px; color: var(--lb-gold-ink); }
.silver .lb-rank b { font-size: 27px; line-height: 30px; color: var(--lb-silver-ink); }
.bronze .lb-rank b { font-size: 27px; line-height: 30px; color: var(--lb-bronze-ink); }

.lb-medal { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid; flex: 0 0 auto; }
.lb-medal.gold   { background: var(--lb-gold-chip);   border-color: var(--lb-gold-line); }
.lb-medal.silver { background: var(--lb-silver-chip); border-color: var(--lb-silver-line); }
.lb-medal.bronze { background: var(--lb-bronze-chip); border-color: var(--lb-bronze-line); }

.lb-model-alias { font-family: var(--lb-mono); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--lb-ink); word-break: break-word; }
.lb-model-meta { font-size: 12px; line-height: 16px; color: var(--lb-ink-3); margin-top: 3px; }
.lb-macs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--lb-raised); border: 1px solid var(--lb-hairline-strong); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 500; color: var(--lb-ink-2); white-space: nowrap; }
/* Metric weight follows the podium: first place reads strongest, second and
   third step down, ranks 4+ sit at the quiet baseline. The lane width is
   fixed so the differing sizes never shunt the columns around. */
.lb-metric { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.lb-metric b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 28px; font-variant-numeric: tabular-nums; color: var(--lb-ink-2); }
.lb-metric span { font-size: 12px; color: var(--lb-ink-3); }
.gold   .lb-metric b { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; color: var(--lb-ink); }
.silver .lb-metric b { font-size: 27px; line-height: 32px; color: var(--lb-ink); }
.bronze .lb-metric b { font-size: 27px; line-height: 32px; color: var(--lb-ink); }
.lb-num { text-align: right; font-size: 13px; color: var(--lb-ink-2); font-variant-numeric: tabular-nums; }
.lb-when { text-align: right; font-size: 12.5px; color: var(--lb-ink-3); white-space: nowrap; }

/* Rank movement. The arrow carries information, so it survives reduced
   motion; only the travel is suppressed. */
.lb-move { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; font-family: var(--lb-mono); margin-left: 6px; }
.lb-move.up { color: var(--lb-green-ink); }
.lb-move.down { color: var(--lb-ink-3); }
.lb-metric b.changed { animation: lb-valuechange 900ms ease-out; }
@keyframes lb-valuechange { 0%, 40% { color: var(--lb-green-ink); } 100% { color: inherit; } }

/* ---- pagination ---- */
.lb-pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.lb-pager-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-pager-rule { width: 1px; height: 14px; background: var(--lb-hairline-strong); }
.lb-sizes { display: inline-flex; align-items: center; gap: 7px; }
.lb-sizes .lbl { font-size: 12.5px; color: var(--lb-ink-3); }
.lb-seg { display: inline-flex; border: 1px solid var(--lb-hairline-strong); border-radius: 7px; overflow: hidden; }
.lb-seg button { border: 0; border-left: 1px solid var(--lb-hairline-strong); background: var(--lb-raised); padding: 5px 11px; font-family: inherit; font-size: 12.5px; color: var(--lb-ink-2); cursor: pointer; min-height: 32px; }
.lb-seg button:first-child { border-left: 0; }
.lb-seg button[aria-pressed="true"] { background: var(--lb-amber); color: var(--lb-on-amber); font-weight: 600; }
.lb-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-page-btn { width: 30px; height: 30px; min-width: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--lb-hairline); border-radius: 7px; background: var(--lb-raised); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--lb-ink-2); padding: 0; }
.lb-page-btn:hover:not(:disabled) { background: var(--lb-hover); }
.lb-page-btn:disabled { opacity: 0.45; cursor: default; }
.lb-page-btn[aria-current="page"] { background: var(--lb-band); border-color: var(--lb-band); color: var(--lb-band-ink); }

/* ---- board states ---- */
.lb-state { padding: 40px 20px; text-align: center; }
.lb-state h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--lb-ink); }
.lb-state p { font-size: 13.5px; line-height: 21px; color: var(--lb-ink-2); margin: 0 auto; max-width: 46ch; }
.lb-state .lb-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.lb-state-mascot { width: 96px; height: 88px; margin: 0 auto 14px; background: url("/cheetah.png") 50% 100% / contain no-repeat; }
.lb-state--error { background: var(--lb-error-tint); border-bottom: 1px solid var(--lb-error-line); }
.lb-state--error h3 { color: var(--lb-error); }

.lb-skel { height: 70px; border-bottom: 1px solid var(--lb-hairline); display: flex; align-items: center; gap: 20px; padding: 15px 20px; }
.lb-skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--lb-rail) 25%, var(--lb-hover) 50%, var(--lb-rail) 75%); background-size: 400% 100%; animation: lb-shimmer 1.4s linear infinite; }
@keyframes lb-shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- community - */

.lb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.lb-cols > *, .lb-participate > *, .lb-spot, .lb-spotlights > * { min-width: 0; }

.lb-privacy { display: flex; align-items: flex-start; gap: 8px; background: var(--lb-rail); border: 1px solid var(--lb-hairline); border-radius: 8px; padding: 10px 12px; margin-top: 16px; font-size: 12px; line-height: 18px; color: var(--lb-ink-2); }
.lb-privacy svg { flex: 0 0 auto; margin-top: 2px; }

.lb-spotlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.lb-spot { border: 1px solid var(--lb-hairline); border-radius: 10px; padding: 16px; background: var(--lb-raised); display: flex; flex-direction: column; gap: 10px; }
.lb-spot-top { display: flex; align-items: center; gap: 10px; }
.lb-spot-name { font-family: var(--lb-mono); font-size: 12.5px; font-weight: 600; color: var(--lb-ink); word-break: break-word; line-height: 16px; }
.lb-spot-tag { font-family: var(--lb-mono); font-size: 10px; color: var(--lb-ink-3); }
.lb-spot-runs { display: flex; align-items: baseline; gap: 6px; }
.lb-spot-runs b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lb-spot-runs span { font-size: 12px; color: var(--lb-ink-2); }
.lb-spot-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--lb-ink-3); }

.lb-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.lb-member { display: flex; align-items: center; gap: 9px; border: 1px solid var(--lb-hairline); border-radius: 8px; padding: 10px; background: var(--lb-raised); min-width: 0; }
.lb-member-name { font-family: var(--lb-mono); font-size: 11px; color: var(--lb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-member-meta { font-size: 10.5px; color: var(--lb-ink-3); white-space: nowrap; }

/* Deterministic anonymous portraits — the commissioned Lovart cheetah
   collection. The plate is chosen from the install id alone (see
   leaderboard-data.js); nothing here encodes identity, so the artwork is
   never tinted, cropped or overlaid. A restrained hairline is the only
   treatment: it keeps the two near-black plates from bleeding into the dark
   surface. Fixed box + intrinsic width/height on the <img> means a row never
   reflows while portraits arrive. */
.lb-avatar {
  --av-box: 56px;
  width: var(--av-box); height: var(--av-box);
  flex: 0 0 auto; display: block; position: relative;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--lb-hairline-strong);
  background: var(--lb-rail);
}
.lb-avatar--spot { --av-box: 72px; border-radius: 14px; }
/* 52 rather than 56: the tile is only ~145px wide at 1024, and the mono
   contributor name is the identifier, so it gets the four pixels. */
.lb-avatar--tile { --av-box: 52px; }
.lb-avatar--row  { --av-box: 48px; border-radius: 11px; }

.lb-avatar-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  user-select: none; -webkit-user-drag: none;
}
/* Canonical static cheetah stands in for a portrait that fails to load. It is
   a transparent full-body pose rather than a square bust, so it is contained
   on the neutral plate instead of cover-cropped. */
.lb-avatar-img.is-fallback { object-fit: contain; padding: 4px; }

@media (max-width: 760px) {
  .lb-avatar--spot { --av-box: 64px; }
  .lb-avatar--row  { --av-box: 44px; }
}

.lb-listfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--lb-ink-3); flex-wrap: wrap; min-height: 34px; }
.lb-pages--mini .lb-page-btn { width: 32px; height: 32px; min-width: 32px; font-size: 12px; }
.lb-more { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lb-hairline-strong); border-radius: 8px; padding: 8px 12px; background: var(--lb-raised); font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--lb-ink-2); cursor: pointer; min-height: 36px; }
.lb-more:hover { background: var(--lb-hover); }

/* ---- activity feed ---- */
.lb-feed { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Fixed row height: a new item slides in without nudging anything below it. */
.lb-feed li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--lb-hairline); border-radius: 10px; padding: 10px 12px; background: var(--lb-raised); min-height: 62px; box-sizing: border-box; }
.lb-feed .who { min-width: 0; flex: 1 1 auto; }
.lb-feed .alias { font-family: var(--lb-mono); font-size: 12.5px; font-weight: 600; color: var(--lb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-feed .meta { font-size: 11.5px; color: var(--lb-ink-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-feed .verified { display: inline-flex; align-items: center; gap: 4px; color: var(--lb-green-ink); font-weight: 600; }
.lb-feed .val { text-align: right; flex: 0 0 auto; }
.lb-feed .val b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-feed .val span { font-size: 11px; color: var(--lb-ink-3); display: block; }
.lb-feed li.fresh { animation: lb-enter var(--lb-dur-fade) ease-out; border-color: var(--lb-green-line); background: var(--lb-green-tint); }
@keyframes lb-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- coverage - */

/* Centred composition: the section reads as a page moment, not a report
   column. Copy width is capped independently of the chip groups so the
   prose stays readable while the chips can use the full measure. */
.lb-coverage-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
/* Wide enough for both headings to sit on one line at desktop; `balance`
   splits them evenly rather than orphaning a word when they do wrap. */
.lb-coverage-intro h2 { max-width: 24ch; text-wrap: balance;
  font-size: var(--lb-h2-section); letter-spacing: -0.03em; line-height: 1.08; }
.lb-coverage-intro .lb-sub { max-width: 62ch; margin: 0; text-wrap: pretty; }
.lb-coverage-summary {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--lb-rail); border: 1px solid var(--lb-hairline); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; color: var(--lb-ink-2); margin-top: 4px;
}
.lb-coverage-summary b { color: var(--lb-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.lb-coverage-row { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-coverage-row .lb-eyebrow { display: block; text-align: center; }
.lb-gchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; }
.lb-gchip { font-family: var(--lb-mono); font-size: 12px; padding: 6px 10px; border-radius: 7px; border: 1px dashed var(--lb-hairline-strong); color: var(--lb-ink-3); background: transparent; }
.lb-gchip.have { border-style: solid; border-color: var(--lb-green-line); background: var(--lb-green-tint); color: var(--lb-green-ink); font-weight: 600; }
.lb-legend { display: flex; gap: 16px; font-size: 12px; color: var(--lb-ink-3); }
.lb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------------------------------------------------- full-height stages - */

/* Coverage, challenges and the final CTA each get their own page moment.
   min-height rather than height: if the content (or a short viewport) needs
   more room it simply grows, so nothing is ever clipped. `svh` keeps mobile
   browser chrome from cutting the section short. */
.lb-section--stage { display: flex; align-items: center; }
.lb-stage-inner { width: 100%; display: flex; flex-direction: column; justify-content: center; }

@media (min-width: 760px) {
  .lb-section--stage { min-height: calc(100svh - 80px); }
  /* The final section is the page's ending, so it leaves room for the footer
     to follow immediately instead of stranding it below empty space. */
  .lb-section--final { min-height: calc(100svh - 190px); }
}

/* ------------------------------------------------------------ final CTA - */

/* min-width:0 + max-width on the children: as a flex column this would
   otherwise refuse to shrink below its widest child, and the headline alone
   is wider than a 320px screen. */
.lb-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: min(960px, 100%); margin: 0 auto; min-width: 0; }
/* Headline and lede keep the narrower reading measure; only the trust
   strip uses the full 960 so its two columns are not cramped. */
.lb-final h2, .lb-final-lede { max-width: 720px; }
.lb-final > * { max-width: 100%; min-width: 0; }
.lb-final code { overflow-wrap: anywhere; }
.lb-final h2 { font-size: var(--lb-h2-section); letter-spacing: -0.03em;
  line-height: 1.08; text-wrap: balance; }
.lb-final h2:focus-visible { outline: 2px solid var(--lb-amber-deep); outline-offset: 6px; border-radius: 6px; }
.lb-final-lede { font-size: clamp(15px, 1.7vw, 17px); line-height: 1.6; color: var(--lb-ink-2); margin: 0; max-width: 52ch; }

/* Prominent but not oversized: full width of the composition, one line, the
   same dark surface and light copy icon used everywhere else. */
.lb-final-cmd { width: 100%; max-width: 560px; padding: 14px 14px 14px 18px; margin-top: 4px; }
.lb-final-cmd code { font-size: 14px; }
.lb-final-cmd .lb-copy { width: 34px; height: 34px; min-width: 34px; }

.lb-final .lb-refs { justify-content: center; }

/* The waving cheetah introduces the invitation rather than sitting in a card:
   no border, no plate, fixed box so it cannot shift the composition. */
.lb-final-mascot { width: 132px; height: 132px; flex: 0 0 auto; background: 50% 100% / contain no-repeat; }

/* ------------------------------------------------------------ challenges - */

/* auto-fit rather than a fixed 3-up: a 280px floor keeps the command block
   readable instead of letting three tracks squeeze to ~160px on a laptop. */
.lb-challenges { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; margin-top: 64px; }
.lb-challenge { min-width: 0; border: 1px solid var(--lb-hairline); border-top: 2px solid var(--lb-amber);
  border-radius: 12px; background: var(--lb-raised); padding: 30px 26px; display: flex;
  flex-direction: column; gap: 16px; min-height: 300px; }
.lb-challenge-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-challenge h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--lb-ink); }
.lb-challenge p { font-size: 13px; line-height: 20px; color: var(--lb-ink-2); margin: 0; flex: 1 1 auto; }
.lb-runs { font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; background: var(--lb-rail); color: var(--lb-ink-3); border: 1px solid var(--lb-hairline); white-space: nowrap; }
.lb-runs.zero { background: var(--lb-amber-tint); border-color: var(--lb-amber-line); color: var(--lb-amber-deep); }
.lb-blocker { font-size: 12.5px; line-height: 19px; color: var(--lb-ink-3); border-left: 2px solid var(--lb-hairline-strong); padding-left: 10px; }
/* Which flow a challenge card teaches, and where its result appears. */
.lb-challenge .lb-challenge-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--lb-ink-3); flex: 0 0 auto; }
.lb-challenge .lb-challenge-flow a { color: var(--lb-amber-deep); text-decoration: none; }
.lb-challenge .lb-challenge-flow a:hover { text-decoration: underline; }
.lb-flow { font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--lb-hairline-strong); color: var(--lb-ink-2); white-space: nowrap; }
.lb-flow--beta { background: var(--lb-amber-tint); border-color: var(--lb-amber-line); color: var(--lb-amber-deep); }

/* In a challenge card the column is too narrow for a one-line command, and a
   horizontal scroller just reads as truncated. Wrap at spaces instead, so the
   whole command is visible and still copies verbatim. */
.lb-challenge .lb-cmd { align-items: flex-start; }
.lb-challenge .lb-cmd code { white-space: pre-wrap; overflow-x: visible; font-size: 12px; line-height: 19px; }
.lb-challenge .lb-copy { margin-top: -2px; }

/* ------------------------------------------------- command block + copy -- */

/* min-width:0 everywhere a nowrap command sits inside a grid/flex track —
   without it the intrinsic min-content width blows the track out and the
   whole page gains a horizontal scrollbar. */
.lb-cmd { display: flex; align-items: center; gap: 10px; background: #14161A; border-radius: 8px; padding: 10px 10px 10px 14px; overflow: hidden; min-width: 0; }
.lb-cmd code { font-family: var(--lb-mono); font-size: 12.5px; color: #E6E8EA; white-space: nowrap; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; min-width: 0; }
.lb-cmd code::-webkit-scrollbar { display: none; }
.lb-cmd .p { color: #6E7882; user-select: none; }
/* Dark neutral surface, light icon — never amber, so a copy affordance is
   never mistaken for the primary submit action. Fixed 30x30 so the
   "copied" swap cannot resize the control. */
.lb-copy { width: 30px; height: 30px; min-width: 30px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #2D323A; border-radius: 6px; background: #1E2126; color: #C9CDD2; cursor: pointer; padding: 0; }
.lb-copy:hover { background: #262A30; color: #F2F4F7; }
.lb-copy:focus-visible { outline: 2px solid var(--lb-amber); outline-offset: 2px; }
.lb-copy svg { pointer-events: none; }
.lb-copy .tick { display: none; }
.lb-copy[data-copied="true"] { color: #5FC7A0; border-color: #2C5A46; }
.lb-copy[data-copied="true"] .tick { display: block; }
.lb-copy[data-copied="true"] .sheet { display: none; }
.lb-copy[data-copied="failed"] { color: #FF6B5E; border-color: #5A2E2A; }

/* --------------------------------------------------------- participation - */

.lb-participate { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 480px); gap: clamp(28px, 5vw, 80px); align-items: start; }
/* Trust strip: one quiet surface split by a hairline, not two cards.
   Each side has the same internal skeleton — a fixed icon lane, then a bold
   label that opens its own sentence — so the two columns read as one
   structure rather than two loose paragraphs. */
.lb-trust {
  width: 100%; margin-top: 12px; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--lb-rail); border: 1px solid var(--lb-hairline);
  border-radius: var(--lb-radius); overflow: hidden;
}
.lb-trust-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px;
  align-items: start; padding: 22px 24px; min-width: 0;
}
/* Subtle divider — the columns share one surface. */
.lb-trust-item + .lb-trust-item { border-left: 1px solid var(--lb-hairline); }
/* Fixed icon lane: the first text line sits on the icon's optical centre. */
.lb-trust-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.lb-trust-icon--yes { color: var(--lb-green-ink); }
.lb-trust-icon--no { color: var(--lb-muted-coral); }
.lb-trust p { margin: 0; font-size: 13.5px; line-height: 22px; color: var(--lb-ink-2); text-wrap: pretty; }
.lb-trust b { color: var(--lb-ink); font-weight: 600; }
/* Inline code, not a monospaced paragraph. `break-word` rather than `anywhere`:
   `anywhere` makes the path breakable at every character, which let the line
   breaker split off the closing full stop onto a line of its own. */
.lb-trust code { font-family: var(--lb-mono); font-size: 12.5px; color: var(--lb-ink); overflow-wrap: break-word; }
.lb-refs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; }
.lb-refs a { color: var(--lb-amber-deep); text-decoration: none; font-weight: 500; }
.lb-refs a:hover { text-decoration: underline; }
.lb-refs .k { color: var(--lb-ink-3); }

/* ==================================================================== *
 * Motion
 * -------------------------------------------------------------------- *
 * Entrance is transform + opacity only, so nothing reflows and the page
 * never resizes as a list arrives. Every duration is short enough to read
 * as feedback rather than as a loading delay.
 * ==================================================================== */

.lb-enter { animation: lb-rise 380ms cubic-bezier(.22,.8,.3,1) both; animation-delay: var(--lb-delay, 0ms); }
@keyframes lb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Restrained hover/focus feedback across the interactive surfaces. */
.lb-table tbody tr { transition: background-color 160ms ease, box-shadow 160ms ease; }
.lb-member, .lb-spot, .lb-challenge, .lb-feed li {
  transition: transform 160ms cubic-bezier(.22,.8,.3,1), border-color 160ms ease, background-color 160ms ease;
}
.lb-member:hover, .lb-spot:hover, .lb-feed li:hover { transform: translateY(-2px); border-color: var(--lb-hairline-strong); }
.lb-challenge:hover { transform: translateY(-2px); border-color: var(--lb-hairline-strong); }
.lb-page-btn, .lb-seg button, .lb-more, .lb-reset, .lb-btn, .lb-copy, .lb-tab {
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.lb-page-btn:hover:not(:disabled), .lb-seg button:hover { transform: translateY(-1px); }
.lb-btn:active, .lb-page-btn:active:not(:disabled) { transform: translateY(0); }
.lb-gchip { transition: transform 140ms ease, border-color 140ms ease; }
.lb-gchip:hover { transform: translateY(-1px); }

/* The board fades between result sets so a filter change reads as a swap
   rather than a flash. Height is not animated — that would jolt the page. */
.lb-table-wrap { transition: opacity 140ms ease; }
.lb-table-wrap[data-swapping="true"] { opacity: 0.35; }

/* Hero mascot resting loop: the canonical bob + tilt from the brand
   guidelines (±14px / ±1.5°), scaled down for a hero at 118px. Transform
   only, inside a reserved box, so it can never shift the layout. */
.lb-mascot-img { animation: lb-rest 1.6s ease-in-out infinite; will-change: transform; }
@keyframes lb-rest {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-1.2deg); }
}
/* An event reaction replaces the resting loop for its duration. */
.lb-mascot[data-react] .lb-mascot-img { animation-iteration-count: 1; }

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1080px) {
  .lb-hero-grid { flex-direction: column; }
  .lb-record { width: 100%; }
  .lb-participate { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lb-cols { grid-template-columns: 1fr; }
  .lb-pulse-row { flex-wrap: wrap; gap: 20px 0; }
  .lb-stat { flex: 1 1 44%; }
  .lb-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Stacked trust strip: same icon lane and text alignment, hairline between
   the two rather than two separate cards. */
/* Three abreast only when each column still clears ~280px; then two, then
   stacked. Below that the columns go ragged and the install-id path crowds. */
@media (max-width: 1099px) {
  .lb-trust { grid-template-columns: 1fr 1fr; }
  .lb-trust-item:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--lb-hairline); }
  .lb-trust-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 899px) {
  .lb-trust { grid-template-columns: 1fr; }
  .lb-trust-item { padding: 18px 20px; }
  .lb-trust-item + .lb-trust-item { border-left: 0; border-top: 1px solid var(--lb-hairline); }
  .lb-trust-item:nth-child(3) { grid-column: auto; }
}
/* The install-id path is set solid, so on the narrowest screens the column
   gives it the room instead of breaking it. */
@media (max-width: 400px) {
  .lb-trust-item { padding: 18px 16px; gap: 10px; }
  .lb-trust code { font-size: 11.5px; }
}

/* Below this the table stops being a table: each row becomes a card so every
   field stays readable instead of being dropped or squeezed. */
@media (max-width: 760px) {
  .lb-table-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .lb-table-scroll { overflow: visible; }
  .lb-table { min-width: 0; display: block; }
  .lb-table thead { display: none; }
  .lb-table tbody, .lb-table tr, .lb-table td { display: block; width: auto; }
  .lb-table tbody tr {
    border: 1px solid var(--lb-hairline); border-left-width: 3px; border-radius: 10px;
    margin-bottom: 10px; padding: 14px; position: relative;
  }
  .lb-table tbody td { border: 0; padding: 0; }
  .lb-table tbody td + td { margin-top: 10px; }
  .lb-cell-rank { position: absolute; top: 14px; right: 14px; }
  .lb-rank { width: auto; }
  .lb-model-alias { font-size: 14px; padding-right: 96px; }
  .lb-metric { justify-content: flex-start; }
  .lb-metric b { font-size: 24px; }
  .lb-num, .lb-when { text-align: left; }
  /* Runs + updated share one quiet meta line instead of stacking. */
  .lb-table tbody td.lb-cell-runs,
  .lb-table tbody td.lb-cell-when { display: inline-block; font-size: 12px; color: var(--lb-ink-3); margin-top: 8px; }
  .lb-cell-runs::before { content: "Runs: "; }
  .lb-table tbody td.lb-cell-when { margin-left: 14px; }
  .lb-spotlights { grid-template-columns: 1fr; }
  .lb-band-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-filters-left, .lb-filters-right { width: 100%; }
  .lb-search { width: 100%; }
  .lb-select, .lb-select select { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 560px) {
  /* Let the headline wrap naturally rather than overflow. */
  .lb-h1 br { display: none; }
  .lb-record { border-left-width: 2px; padding-left: 16px; margin-top: 16px; }
  .lb-record-band { gap: 8px; align-items: flex-end; }
  .lb-record-value b { font-size: clamp(40px, 13vw, 54px); }
  .lb-mascot { --m: 118px; }
  .lb-final-mascot { width: 112px; height: 112px; }
  .lb-band-grid { grid-template-columns: 1fr; }
  .lb-stat { flex: 1 1 100%; }
  .lb-pager { gap: 12px; }
  /* Comfortable touch targets for every pager on a phone. */
  .lb-page-btn, .lb-pages--mini .lb-page-btn { width: 38px; height: 38px; min-width: 38px; }
  .lb-seg button { min-height: 38px; padding-inline: 14px; }
  .lb-pages { gap: 8px; }
}

@media (max-width: 420px) {
  .lb-mascot { --m: 108px; }
}

/* -------------------------------------------------------- reduced motion - */

@media (prefers-reduced-motion: reduce) {
  .lb *, .lb *::before, .lb *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Final states render immediately; the arrows, medals and highlight stay
     because they carry information rather than decoration. */
  .lb-mascot-img,
  .lb-mascot[data-react] .lb-mascot-img,
  .lb-mascot[data-react] .lb-flag { animation: none !important; transform: none !important; }
  .lb-enter { animation: none !important; opacity: 1 !important; transform: none !important; }
  .lb-member:hover, .lb-spot:hover, .lb-feed li:hover,
  .lb-challenge:hover, .lb-page-btn:hover, .lb-gchip:hover { transform: none !important; }
  .lb-table-wrap[data-swapping="true"] { opacity: 1; }
  .lb-skel i { animation: none; background: var(--lb-rail); }
}

/* ---------------------------------------------- Community Benchmark beta - */

/* A second dataset, so it gets a second visual register — same tokens, same
   type ramp, but every surface is explicitly flagged beta and nothing here
   borrows the board's rank treatment (no medals, no gold, no ordinal). That
   is deliberate: these runs are not ranked against each other. */

.lb-beta-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 1000px; margin: 0 auto; }
.lb-beta-intro p { margin: 0; max-width: 900px; font-size: 16px; line-height: 1.65; color: var(--lb-ink-2); text-wrap: pretty; }

.lb-beta-status { display: inline-flex; align-items: center; gap: 10px; }
.lb-beta-pill {
  font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  color: var(--lb-amber-deep); background: var(--lb-amber-tint);
  border: 1px solid var(--lb-amber-line);
}
.lb-beta-note { font-family: var(--lb-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--lb-ink-3); }

.lb-beta-intro + .lb-tabs { margin-top: 28px; justify-content: center; }
.lb-beta-view { margin-top: 22px; }
.lb-beta-view[hidden] { display: none; }

.lb-beta-subhead { font-size: 13px; font-weight: 650; color: var(--lb-ink); margin: 22px 0 12px; letter-spacing: -0.01em; }
.lb-beta-view > .lb-beta-subhead:first-child { margin-top: 0; }

.lb-beta-summary, .lb-beta-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Paper sets the summary panel at 18px with a 7px stack; the run card sits at
   16. Both are taken to 18/8 here so the two card families share one rhythm
   inside the same section — at 359px wide the 16px version read as cramped
   against the 1180-wide column it lives in. */
.lb-beta-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 18px 20px; border: 1px solid var(--lb-hairline);
  border-radius: var(--lb-radius); background: var(--lb-raised);
}
.lb-beta-card--summary { background: var(--lb-rail); }
.lb-beta-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-beta-task {
  font-family: var(--lb-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lb-ink-2);
  border: 1px solid var(--lb-hairline-strong); border-radius: 999px; padding: 2px 8px;
}
.lb-beta-ago { font-size: 11.5px; color: var(--lb-ink-3); white-space: nowrap; }
.lb-beta-model { font-family: var(--lb-mono); font-size: 12.5px; color: var(--lb-ink); overflow-wrap: anywhere; }
/* Alias in front, exact repo id kept underneath — one model, one name, no guessing. */
.lb-beta-model-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-beta-repo { font-family: var(--lb-mono); font-size: 11px; color: var(--lb-ink-3); overflow-wrap: anywhere; }
.lb-beta-summary-note { margin: -6px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--lb-ink-3); max-width: 720px; text-wrap: pretty; }
.lb-beta-summary-note:empty { display: none; }
.lb-beta-result { font-size: 14px; font-weight: 600; color: var(--lb-ink); }
.lb-beta-result--more { font-weight: 500; color: var(--lb-ink-2); margin-top: 2px; }
.lb-beta-metric { display: flex; align-items: baseline; gap: 7px; }
.lb-beta-metric b { font-family: var(--lb-mono); font-size: 21px; font-weight: 700; color: var(--lb-ink); }
.lb-beta-metric span { font-size: 11.5px; color: var(--lb-ink-3); }
.lb-beta-meta { font-size: 11.5px; line-height: 1.5; color: var(--lb-ink-3); overflow-wrap: anywhere; }

/* Identity on a card: portrait + linked pseudonym, same as everywhere else. */
.lb-beta-who { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; text-decoration: none; color: inherit; min-width: 0; }
.lb-beta-who .lb-avatar { --av-box: 26px; border-radius: 7px; }
.lb-beta-who-name { font-family: var(--lb-mono); font-size: 11.5px; color: var(--lb-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-beta-who-name b { font-weight: 600; color: var(--lb-ink); }
.lb-beta-who-tag { color: var(--lb-ink-3); }
.lb-beta-who:hover .lb-beta-who-name b { color: var(--lb-amber-deep); }

.lb-beta-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.lb-beta-toolbar .lb-count { margin-left: auto; }
.lb-beta-foot { display: flex; justify-content: center; margin-top: 18px; }
.lb-beta-foot .lb-btn[hidden] { display: none; }

.lb-beta-atlas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.lb-beta-atlas-head .lb-beta-subhead { margin: 0 0 4px; }
.lb-beta-atlas-count { font-family: var(--lb-mono); font-size: 12px; color: var(--lb-amber-deep); white-space: nowrap; }

.lb-beta-people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.lb-beta-person {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0;
  padding: 16px 18px; border: 1px solid var(--lb-hairline);
  border-radius: var(--lb-radius); background: var(--lb-raised);
  text-decoration: none; color: inherit;
}
.lb-beta-person:hover { border-color: var(--lb-hairline-strong); }
.lb-beta-person-copy { min-width: 0; }
.lb-beta-person-name { font-family: var(--lb-mono); font-size: 12px; color: var(--lb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-beta-person:hover .lb-beta-person-name { color: var(--lb-amber-deep); }
.lb-beta-person-meta { margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--lb-ink-3); }
.lb-beta-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lb-beta-badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; white-space: nowrap;
  color: var(--lb-ink-2); background: var(--lb-rail);
  border: 1px solid var(--lb-hairline); border-radius: 999px;
}

.lb-beta-state { margin: 0; padding: 18px; font-size: 13.5px; line-height: 1.6; color: var(--lb-ink-3); border: 1px dashed var(--lb-hairline-strong); border-radius: var(--lb-radius); }
.lb-beta-state--error { display: flex; align-items: flex-start; gap: 9px; color: var(--lb-error); border-color: var(--lb-error-line); background: var(--lb-error-tint); }
.lb-beta-state--error svg { flex: 0 0 auto; margin-top: 1px; }

.lb-beta-source { margin: 26px 0 0; text-align: center; font-size: 12.5px; }
.lb-beta-source a { color: var(--lb-amber-deep); }

/* Profile links wrap a name block, so they must not inherit block layout. */
.lb-profile-link { display: block; min-width: 0; text-decoration: none; color: inherit; }
.lb-profile-link:hover .lb-spot-name,
.lb-profile-link:hover .lb-member-name { color: var(--lb-amber-deep); }
.lb-feed-who { font-family: var(--lb-mono); color: var(--lb-ink-2); }
a.lb-profile-link:hover .lb-feed-who { color: var(--lb-amber-deep); }

@media (max-width: 620px) {
  .lb-beta-toolbar { flex-direction: column; align-items: stretch; }
  .lb-beta-toolbar .lb-count { margin-left: 0; }
  .lb-beta-atlas-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* A two-line command must not be centred: the "$" prompts have to line up or
   the block stops reading as a terminal transcript. */
.lb-cmd--multi code { text-align: left; }
.lb-cmd--multi { align-items: flex-start; }
.lb-cmd--multi .lb-copy { margin-top: 2px; }

/* --------------------------------------------------------- earned badges - */

/* Data-derived, never stored: each pill is recomputed from the contributor's
   beta runs. The emoji is the shipped badge icon — distinct from the Lovart
   avatar art, and the thing that keeps the rail feeling like a community
   rather than a compliance table. */
.lb-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lb-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  border: 1px solid var(--lb-hairline-strong); background: var(--lb-rail);
  border-radius: 999px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--lb-ink);
  white-space: nowrap; cursor: default;
}
.lb-badge .g { font-size: 12px; line-height: 1; }
/* Hardware Scout reads apart from a contribution achievement. */
.lb-badge[data-kind="hardware"] {
  border-color: var(--lb-amber-line); background: var(--lb-amber-tint); color: var(--lb-amber-deep);
}
.lb-badge--more {
  font-family: var(--lb-mono); font-size: 10.5px; color: var(--lb-ink-3);
  background: transparent; padding: 5px 9px;
}
/* Smaller rail inside repeated cards, still above the readability floor. */
.lb-badges--sm .lb-badge { font-size: 10.5px; padding: 3px 8px; gap: 5px; }
.lb-badges--sm .lb-badge .g { font-size: 11px; }
