/* ============================================================
   SkinSignal / css / leaderboard-hall.css
   The leaderboard in the hall's materials (the design pass), for both
   views (js/leaderboard.js):
     the podium   each of the top three stands on the hall's own plinth
                  (assets/hall, the Prestige Hall's), its LED groove lit
                  in their tier's blade finish (--ba to --bb, from
                  js/hall-bands.js); 1st raised in the middle; an empty
                  seat's plinth stays unlit
     the rows     steel readouts: a brushed plate, the position in a
                  recessed mono readout, the tier's finish down the left
                  edge
   Rank only, as before: no figure is added anywhere. Only transform and
   opacity move.
   ============================================================ */

/* ---------- The plinth (both podiums) ---------- */
.lb-plinth { position: relative; z-index: 0; display: block; width: 100%; aspect-ratio: 520 / 202; }
.lb-plinth__img { display: block; width: 100%; height: auto; }
.lb-plinth__led {
  position: absolute;
  left: 14.66%;
  width: 70.68%;
  top: 33.8%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgb(var(--ba, 228, 174, 57)), rgb(var(--bb, 228, 174, 57)));
  box-shadow: 0 0 6px rgba(var(--ba, 228, 174, 57), 0.9), 0 0 16px rgba(var(--ba, 228, 174, 57), 0.45);
}
.lb-plinth.is-unlit .lb-plinth__led { opacity: 0.12; box-shadow: none; }
.lb-plinth.is-unlit .lb-plinth__img { filter: brightness(0.6); }

/* Signed in: the emblem stands on the stone inside the card. */
.lb-pod .lb-pod__emblem { margin-bottom: -22px; z-index: 2; }
.lb-pod--gold .lb-pod__emblem { margin-bottom: -28px; }
.lb-pod__plinth { width: 78%; margin: 0 auto 14px; }
.lb-pod--gold .lb-pod__plinth { width: 86%; }
.lb-pod--gold { box-shadow: var(--lb-plate-edge), 0 0 50px -24px rgba(var(--ba, 228, 174, 57), 0.6); }

/* Signed out: the emblem on the stone, the stone on the stepped
   pedestal, which is now its steel nameplate. */
.lbp-pod .lbp-pod__emblem { margin-bottom: -16%; z-index: 2; }
.lbp-pod--1 .lbp-pod__emblem { margin-bottom: -15%; }
.lbp-pod__stone { width: 84%; margin-bottom: -4px; z-index: 1; }
.lbp-pod--1 .lbp-pod__stone { width: 90%; }
.lbp-pod .lbp-pod__plinth { padding-top: 18px; }
.lbp-pod .lbp-pod__plinth::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--ba, 176, 190, 214), 0), rgb(var(--ba, 176, 190, 214)), rgba(var(--ba, 176, 190, 214), 0));
  opacity: 0.8;
}

/* ---------- The rows: steel readouts ---------- */
.lb-list { border: 0; background: none; box-shadow: none; overflow: visible; }
.lb-list__head { border-bottom: 0; }
.lb-row,
.lbp-row {
  position: relative;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(180deg, #121822, #0a0e14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 10px 22px -16px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.lb-list__head + .lb-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lbp-tbody .lbp-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }
/* The tier's finish down the left edge. */
.lb-row::before,
.lbp-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgb(var(--ba, 176, 190, 214)), rgb(var(--bb, 176, 190, 214)));
  box-shadow: 0 0 10px rgba(var(--ba, 176, 190, 214), 0.7);
}
.lb-row:hover,
a.lbp-row:hover { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 46%),
    linear-gradient(90deg, rgba(var(--ba, 61, 127, 255), 0.1), rgba(var(--ba, 61, 127, 255), 0) 60%),
    linear-gradient(180deg, #131a25, #0a0e14); }
/* The position, in a recessed readout. */
.lb-row__pos,
.lbp-row__pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: #05080d;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #d5dae3;
  text-shadow: 0 0 8px rgba(var(--ba, 176, 190, 214), 0.45);
}
.lb-row--you { border-color: rgba(61, 127, 255, 0.4); }
@media (max-width: 640px) {
  .lb-row__pos, .lbp-row__pos { min-width: 36px; height: 26px; font-size: 12.5px; }
}

/* ---------- Nothing moves when the page learns who is reading ----------
   ONE WIDTH FOR THE WRAP: it used to widen (1080 to 1320) when a visitor
   turned out to be signed out, moving everything (CLS 0.074). The wrap is
   the wide measure from the start; the signed in page keeps its measure
   inside it. YOUR SPOT HOLDS ITS PLACE while the board is still loading
   (its skeleton is up), so the card landing no longer pushes the podium
   down (CLS 0.066); a failed load empties it for real, no gap. */
.lb-wrap { max-width: 1320px; }
body:not(.lb--public) .lb-wrap > * { max-width: calc(1080px - 2 * clamp(16px, 3vw, 32px)); margin-left: auto; margin-right: auto; }
body:not(.lb--public) .lb-wrap:has(.lb-skel) #you:empty { display: block; min-height: 135px; }
@media (max-width: 640px) {
  body:not(.lb--public) .lb-wrap:has(.lb-skel) #you:empty { min-height: 236px; }
}
