.rank-limit {
  color: var(--purple-dark);
  background: var(--lavender);
  border-radius: 4px;
  padding: 3px 6px;
  font: 700 11px/1.15 var(--ui-font);
}
.rank-rule {
  margin: 0;
  padding: 0 20px 15px;
  color: var(--muted);
  font-size: 13px;
}
.rank-data {
  border-top: 1px solid var(--line);
  max-height: 26rem;
  overflow: auto;
}
.rank-empty {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rank-table th, .rank-table td {
  padding: 10px;
  border-bottom: 1px solid #efedf3;
}
.rank-table thead th {
  position: sticky;
  top: 0;
  background: #faf9fc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.rank-table tbody th { overflow-wrap: anywhere; }
.rank-table tbody th small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.rank-table tbody tr:last-child > * { border-bottom: 0; }
.rank-table tr > :first-child { width: 16%; text-align: center; }
.rank-number {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 4px;
  color: #655e70;
  font: 700 15px/1 var(--ui-font);
}
.rank-place-1 { background: #ffedb4; color: #755008; }
.rank-place-2 { background: #e5e8f1; color: #4b5468; }
.rank-place-3 { background: #f8e4d7; color: #7a4b31; }
.rank-table .rank-score {
  padding-right: 20px;
  text-align: right;
  white-space: nowrap;
}
td.rank-score { color: var(--purple-dark); font-weight: 700; }
.rank-score small { margin-left: 3px; font-size: 11px; font-weight: 500; }
