/* «Снежные короли» screen (T-36, the «Снежные короли» mockup in docs/gdd.md «Интерфейс») and the
   league bar any screen can show — leagueBar() in js/leaderboard.js. Built on the kit in ui.css.

   League bar  .lg-bar.<silver|gold|diamond|none>[.max] > .lg-cell[.on][.new] … + the next gem.
               .on — a point earned today, in the league's color; .new — just earned (glows). */

.board-screen .screen-title { font-size: 14px; line-height: 20px; }

/* ---------- my league ---------- */

.board-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 170px; }
.board-gem { display: flex; justify-content: center; }
.board-gem.ghost .px-ico { opacity: 0.25; filter: grayscale(1); }
.board-league { font-family: var(--font-title); font-size: 14px; line-height: 20px; text-transform: uppercase; }
.board-league.silver { color: #c3ccd6; }
.board-league.gold { color: var(--gold); }
.board-league.diamond { color: #8fe8f5; }
.board-line { font-family: var(--font-text); font-size: 18px; line-height: 22px; color: var(--muted); }
.board-clock {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 12px; line-height: 16px; color: var(--muted);
}

/* ---------- league bar ---------- */

.lg-bar { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lg-cell { width: 36px; height: 20px; box-sizing: border-box; background: var(--panel); border: 4px solid var(--ink); }
.lg-bar.silver .lg-cell.on { background: #a7b4c2; }
.lg-bar.gold .lg-cell.on { background: var(--gold); }
.lg-bar.diamond .lg-cell.on { background: #8fe8f5; }
.lg-bar .lg-cell.on.new { background: var(--gold-3); box-shadow: 0 0 0 4px rgba(242, 196, 67, 0.5); }
.lg-bar .px-ico { margin-left: 4px; }

/* ---------- today's table ---------- */

.board-table { align-self: stretch; }
.board-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-row {
  height: 52px; box-sizing: border-box; display: flex; align-items: center; gap: 12px;
  padding: 0 14px; text-align: left; background: var(--panel); border: 4px solid var(--ink);
}
.board-row.me { background: #2f4e6d; border-color: var(--gold); }
.board-place { flex: none; width: 28px; font-family: var(--font-title); font-size: 14px; color: #fff; }
.board-row-gem { flex: none; display: flex; }
.board-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-text); font-size: 20px; line-height: 24px; color: #fff;
}
.board-row.me .board-name { color: var(--gold); }
.board-pts { flex: none; font-family: var(--font-title); font-size: 14px; color: var(--gold); }
.board-gap { display: flex; justify-content: center; align-items: center; gap: 8px; height: 12px; }
.board-gap span { width: 6px; height: 6px; background: var(--muted); }

/* ---------- short screens ---------- */

@media (max-height: 700px) {
  .board-hero { gap: 10px; min-height: 0; }
  .board-gem .px-ico { width: 80px; height: 56px; }
  .board-row { height: 44px; }
  .board-rows { gap: 6px; }
}
