.voostats-monthly-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px
}

.voostats-monthly-head h2 {
  margin: 5px 0 3px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.03em
}

.voostats-monthly-head p {
  margin: 0;
  color: #8192aa;
  font-size: 13px
}

.voostats-podium-player {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px
}

.voostats-podium-player strong {
  overflow: hidden;
  color: #f2f6ff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.voostats-podium-player span {
  color: #c6d0df;
  font-size: 11px
}

.voostats-podium-player i {
  color: #e6b95d;
  font-style: normal
}

.voostats-monthly-empty {
  position: relative;
  z-index: 1
}

.voostats-history-card {
  padding: 16px;
  border: 1px solid #263753;
  border-radius: 12px;
  background: #0d1727
}

.voostats-history-card h3 {
  margin: 0 0 12px;
  color: #e8eefb;
  font-size: 15px
}

.voostats-history-player {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #1c2a3e
}

.voostats-history-player span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px
}

.voostats-history-player strong {
  overflow: hidden;
  color: #e4ecf8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.voostats-history-player small {
  color: #8191a8;
  font-size: 10px
}

.voostats-history-player em {
  color: #61d3ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900
}

.voostats-server-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px
}

.voostats-monthly-head p,
.voostats-podium-player span,
.voostats-history-player small { color: var(--muted); }
.voostats-podium-player strong,
.voostats-history-card h3,
.voostats-history-player strong { color: var(--text); }
.voostats-podium-player i { color: var(--accent); }
.voostats-history-card { border-color: var(--line); border-radius: var(--r-lg); background: var(--surface); }
.voostats-history-player { border-top-color: var(--line); }
.voostats-history-player em { color: var(--accent); font-variant-numeric: tabular-nums; }

.ranks-table {
  overflow-x: auto;
  overflow-y: hidden;
}
.ranks-table .table-head,
.ranks-table .rank-row {
  display: grid;
  grid-template-columns: 48px minmax(160px, 1.5fr) repeat(4, minmax(82px, .55fr)) minmax(100px, .7fr);
  align-items: center;
  gap: 12px;
  min-width: 760px;
  padding: 15px 20px;
}
.ranks-table .table-head {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}
.ranks-table .table-head span,
.ranks-table .rank-row > span { min-width: 0; }
.ranks-table .table-head span:nth-child(3),
.ranks-table .rank-name { display: block; }
.ranks-table .player { min-width: 0; }
.ranks-table .player b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranks-table .rank-stat,
.ranks-table .rank-name,
.ranks-table .score { font-variant-numeric: tabular-nums; }
.ranks-table .rank-stat,
.ranks-table .rank-name { color: var(--muted); }
.ranks-table .rank-headshot-rate { color: var(--accent); }
.ranks-table .score { color: var(--accent); font-weight: 800; text-align: right; }
.ranks-table .table-head span:last-child { text-align: right; }

.rank-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 28px;
}
.rank-pagination a {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.rank-pagination a:hover {
  transform: none;
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text);
}
.rank-pagination a.active {
  transform: none;
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line-strong));
  background: var(--surface-active);
  color: var(--text);
}
.rank-pagination-ellipsis {
  display: inline-grid;
  min-width: 24px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .ranks-table .table-head,
  .ranks-table .rank-row { gap: 10px; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rank-pagination a { transition: none; }
}

.page-intro.voostats-ranks-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.voostats-ranks-intro > div:first-child { flex: 1 1 auto; width: auto; min-width: 0; }
.voostats-ranks-intro .voostats-server-picker { justify-content: flex-start; min-width: 0; margin: 0; }
.voostats-ranks-intro .voostats-server-tabs {
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border-color: var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  scrollbar-width: none;
}
.voostats-ranks-intro .voostats-server-tabs::-webkit-scrollbar { display: none; }
.voostats-ranks-intro .voostats-server-tab {
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--r-md);
  color: var(--muted);
  font: 700 11px/1 var(--font-ui);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.voostats-ranks-intro .voostats-server-tab:hover { background: var(--surface-hover); color: var(--text); }
.voostats-ranks-intro .voostats-server-tab.active {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong));
  background: var(--surface-active);
  box-shadow: none;
  color: var(--text);
}
.voostats-ranks-intro .voostats-server-dot,
.voostats-ranks-intro .voostats-server-tab.active .voostats-server-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: none;
}
.voostats-ranks-intro .voostats-server-tab.active .voostats-server-dot { background: var(--accent); }
.voostats-ranks-intro > .pill {
  position: static;
  align-self: center;
  padding: 7px 10px;
  transform: none;
  border-color: var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .page-intro.voostats-ranks-intro { gap: 8px; }
  .voostats-ranks-intro .voostats-server-tab { min-height: 32px; padding: 0 8px; font-size: 10px; }
  .voostats-ranks-intro > .pill { padding: 6px 8px; font-size: 10px; }
}

@media (max-width: 420px) {
  .page-intro.voostats-ranks-intro { align-items: flex-start; flex-direction: column; }
  .voostats-ranks-intro > .pill { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .voostats-ranks-intro .voostats-server-tab { transition: none; }
}
