/* Rank-page profile grid. Ranking, profile pages, and power-map styles are unchanged. */
.rank-page .leaderboard { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.rank-page .leaderboard > .empty-state { grid-column: 1 / -1; }
.rank-page .leaderboard-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  min-width: 0; padding: 16px; border-radius: 14px;
}
.rank-page .leaderboard-row.is-me { border-color: #a88a52; box-shadow: inset 0 0 0 1px #a88a5233; background: #242219; }
.rank-page .rank-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; min-height: 21px; }
.rank-page .rank-position { align-self: auto; min-width: 0; padding: 0; margin: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 750; line-height: 1.4; }
.rank-page .rank-position.top-rank { background: transparent; color: var(--amber); }
.rank-page .mvp-badge { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 11px; gap: 4px; }
.rank-page .mvp-badge.is-empty { display: inline-flex; color: var(--muted); background: transparent; }
.rank-page .mvp-badge svg { width: 14px; height: 14px; }
.rank-page .rank-profile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding-bottom: 14px; }
.rank-page .rank-portrait { width: 64px; flex: none; }
.rank-page .rank-portrait .avatar-small { display: flex; width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; }
.rank-page .rank-portrait .avatar-small span { font-size: 20px; }
.rank-page .rank-name { width: 100%; font-size: 16px; line-height: 1.4; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-page .rank-mine { position: absolute; bottom: 0; color: var(--amber); font-size: 10px; line-height: 1.2; }
.rank-page .rank-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }
.rank-page .rank-stat span { font-size: 11px; line-height: 1.4; }
.rank-page .rank-stat b { font-size: 22px; font-weight: 750; line-height: 1.25; margin-top: 3px; }
.rank-page .rank-link { position: absolute; inset: 0; width: auto; height: auto; border-radius: inherit; }
.rank-page .rank-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (max-width: 900px) {
  .rank-page .leaderboard { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  .rank-page .header-inner { min-height: 58px; padding: 8px 12px; gap: 10px; }
  .rank-page .page-shell { padding: 18px 12px 30px; }
  .rank-page .page-heading { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
  .rank-page .page-heading .eyebrow { display: none; }
  .rank-page .page-heading h1 { font-size: 23px; white-space: nowrap; }
  .rank-page .power-view-switch { width: auto; flex-shrink: 0; padding: 3px; }
  .rank-page .power-view-switch button { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; font-size: 12px; min-height: 38px; }
  .rank-page .rank-toolbar { flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; }
  .rank-page .rank-toolbar p { font-size: 11px; }
  .rank-page .rank-summary { justify-content: space-between; gap: 6px 14px; font-size: 12px; }
  .rank-page .leaderboard { gap: 10px; }
  .rank-page .leaderboard-row { gap: 9px; padding: 11px; border-radius: 12px; }
  .rank-page .rank-position { font-size: 13px; }
  .rank-page .mvp-badge { font-size: 10px; gap: 3px; }
  .rank-page .mvp-badge svg { width: 12px; height: 12px; }
  .rank-page .rank-profile { gap: 6px; padding-bottom: 13px; }
  .rank-page .rank-portrait, .rank-page .rank-portrait .avatar-small { width: 48px; height: 48px; }
  .rank-page .rank-portrait .avatar-small span { font-size: 16px; }
  .rank-page .rank-name { font-size: 14px; }
  .rank-page .rank-stats { gap: 6px; padding-top: 8px; }
  .rank-page .rank-stat b { font-size: 19px; }
  .rank-page .status { font-size: 11px; margin: 12px 0; }
  .rank-page .bottom-nav { margin-top: 16px; }
}
@media (max-width: 360px) {
  .rank-page .leaderboard { gap: 8px; }
  .rank-page .leaderboard-row { padding: 9px; }
  .rank-page .rank-card-top { column-gap: 4px; }
  .rank-page .rank-stat b { font-size: 18px; }
}
