.rankings { padding-block: 40px 64px; }
.rank-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.rank-heading h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.rank-controls { display: flex; align-items: center; gap: 8px; }
.rank-controls input, .rank-controls select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  min-height: 40px; padding: 6px 9px; border-radius: 4px;
}
.rank-limit { position: relative; display: inline-flex; }
.rank-limit select {
  appearance: none; width: 116px; padding-inline: 12px 32px; text-align: left;
}
.rank-limit::after {
  content: ""; position: absolute; inset-inline-end: 14px; top: calc(50% - 5px);
  width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); pointer-events: none;
}
.rank-tabs { display: flex; margin-top: 26px; border-bottom: 1px solid var(--line); gap: 22px; }
.rank-tabs button { border: 0; padding: 11px 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; }
.rank-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 650; }
.rankings table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rankings th, .rankings td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); }
.rankings th { background: var(--surface); color: var(--muted); font-weight: 500; font-size: 13px; }
.rankings .place { width: 72px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rankings .score { width: 150px; text-align: right; font-variant-numeric: tabular-nums; }
.rankings td.score { font-weight: 650; }
.rankings tr:first-child td.place { color: var(--accent); font-weight: 650; }
.rankings td:nth-child(2) { overflow-wrap: anywhere; }
.rank-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-inline-start: 4px; }
@media (max-width: 700px) {
  .rankings { padding-block-start: 25px; }
  .rank-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .rank-heading h1 { font-size: 26px; }
  .rank-tabs { margin-top: 15px; gap: 17px; font-size: 13px; }
  .rankings th, .rankings td { padding-inline: 8px; }
  .rankings .place { width: 49px; }
  .rankings .score { width: 100px; }
}
.rankings th { white-space: nowrap; }
.rank-name { font-weight: 550; }
.rank-uid { display: block; margin-top: 3px; color: var(--muted); font-size: 11px;
  line-height: 1.35; font-variant-numeric: tabular-nums; }
@media (min-width: 861px) {
  .rank-tabs { display: none; }
  #rank-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 29px; }
  .rank-panel { min-width: 0; }
  .rank-panel h2 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
  .rank-panel .place { width: 48px; padding-inline: 9px; }
  .rank-panel .score { width: 90px; }
}
@media (max-width: 860px) {
  .rank-panel:not(.selected), .rank-panel h2 { display: none; }
}
