.rank-board { width: min(100%, 960px); margin-inline: auto; }
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 20px; border-bottom: 1px solid var(--line); }
.board-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--accent); font-size: 13px; font-weight: 750; }
.board-kicker .icon { width: 15px; height: 15px; }
.board-header h1 { margin: 0; font-size: 33px; line-height: 1.16; letter-spacing: 0; }
.board-header-icon { display: grid; flex: 0 0 56px; place-items: center; width: 56px; height: 56px; border: 1px solid #6b4651; border-radius: 8px; color: #ffd293; background: #332024; }
.board-header-icon .icon { width: 29px; height: 29px; }
.board-controls, .board-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-controls { margin-block: 15px 22px; }
.board-tabs { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.board-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 39px; padding: 4px 17px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 750; white-space: nowrap; }
.board-tabs button:hover { background: var(--surface-2); color: var(--text); }
.board-tabs button[aria-pressed="true"] { border-color: #9b5376; color: var(--rose-white); background: #53283e; }
.board-tabs .icon { width: 15px; height: 15px; color: currentColor; }
.board-period, .board-section-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.board-section-heading { margin-bottom: 9px; }
.board-section-heading h2 { margin: 0; font-size: 15px; }
.board-podium, .board-standings { margin: 0; padding: 0; list-style: none; }
.board-podium { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 10px; }
.board-podium[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.board-podium[data-count="2"] { grid-template-columns: repeat(2,minmax(0, 1fr)); }
.board-medalist { --medal: #ffda99; --medal-frame: #795e3c; --medal-surface: #392924; display: grid; grid-template-rows: auto auto auto auto; justify-items: center; align-content: start; gap: 10px; min-width: 0; padding: 14px 8px 12px; border: 1px solid var(--medal-frame); border-top-width: 2px; border-radius: 8px; background: linear-gradient(180deg, var(--medal-surface), var(--surface) 72%); text-align: center; }
.board-medalist[data-place="2"] { --medal: #d4e2f6; --medal-frame: #566276; --medal-surface: #272b39; }
.board-medalist[data-place="3"] { --medal: #f1ae96; --medal-frame: #875953; --medal-surface: #3d252a; }
.board-medal { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--medal); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.board-medal .icon { width: 16px; height: 16px; }
.board-medal-avatar.avatar { width: 48px; height: 48px; border-color: var(--medal-frame); color: var(--medal); background: var(--medal-surface); box-shadow: 0 0 0 3px var(--surface); font-size: 19px; }
.board-medalist[data-place="1"] .board-medal-avatar { box-shadow: 0 0 0 3px #503326; }
.board-player { min-width: 0; max-width: 100%; overflow: hidden; }
.board-player h3, .board-player p { margin: 0; }
.board-player h3 { color: var(--text); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.board-medalist .board-player h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.board-player p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-metrics { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-metric { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-metric .icon { align-self: center; width: 13px; height: 13px; }
.board-metric strong { color: var(--text); font-size: 12px; }
.board-metric small { color: var(--muted); font-size: 11px; }
.board-metric:first-child strong { font-size: 17px; }
.board-medalist .board-metric:first-child strong, .board-medalist .board-metric:first-child .icon { color: var(--medal); }
.board-row .board-score .icon { color: var(--gold); }
.board-standings { margin-block-start: 14px; border-top: 1px solid var(--line); }
.board-row { display: grid; grid-template-columns: 24px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 55px; padding: 8px; border-bottom: 1px solid var(--line); }
.board-place { color: var(--muted); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; }
.board-row .board-metric:first-child strong { font-size: 14px; }

@media (max-width: 650px) {
  .board-header { padding-block: 8px 14px; }
  .board-header h1 { font-size: 25px; }
  .board-header-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .board-header-icon .icon { width: 23px; height: 23px; }
  .board-controls { margin-block: 11px 15px; }
  .board-tabs button { min-height: 36px; padding-inline: 12px; }
  .board-podium { gap: 6px; }
  .board-medalist { gap: 8px; padding: 10px 5px 9px; }
  .board-podium[data-count="3"] .board-player h3 { min-height: 2.6em; }
  .board-medal-avatar.avatar { width: 39px; height: 39px; font-size: 16px; }
  .board-medalist .board-metrics { flex-direction: column; gap: 2px; }
  .board-medalist .board-metric:first-child strong { font-size: 16px; }
  .board-row { grid-template-columns: 18px 29px minmax(0, 1fr) auto; gap: 7px; padding-inline: 4px; }
  .board-row .board-metrics { flex-direction: column; align-items: flex-end; gap: 2px; }
}
