.rankings {
  max-width: 960px;
  margin: auto;
}
.ranking-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.ranking-tabs a,
.ranking-tabs button {
  padding: 12px 16px;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
}
.ranking-tabs button {
  border: 0;
  background: transparent;
  color: #246a54;
  cursor: pointer;
}
.ranking-tabs a[aria-current] {
  color: #fff;
  background: #246a54;
}
.ranking-table-wrap {
  background: #fffaf0;
  border: 1px solid #dfd1b3;
  border-radius: 22px;
  overflow: hidden;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table caption {
  padding: 18px;
  text-align: left;
  color: #586d62;
}
.ranking-table th,
.ranking-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e9dfc9;
}
.ranking-table th:last-child,
.ranking-table td:last-child {
  text-align: right;
  font-weight: 800;
}
.ranking-table td:nth-child(2) {
  overflow-wrap: anywhere;
}
.ranking-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  color: white;
  background: #246a54;
}
.ranking-empty {
  padding: 24px;
}
#amr-details {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 560px);
  max-height: 85dvh;
  border: 0;
  border-radius: 28px 28px 0 0;
  color: #183e32;
  background: #fff7e7;
  transform: translateY(100%);
  transition: transform 280ms ease;
}
#amr-details.is-visible {
  transform: translateY(0);
}
#amr-details::backdrop {
  background: #07161266;
  backdrop-filter: blur(7px);
}
.amr-handle {
  padding: 18px;
  touch-action: none;
  cursor: grab;
}
.amr-handle span {
  display: block;
  width: 44px;
  height: 5px;
  margin: auto;
  background: #9caa9a;
  border-radius: 5px;
}
.amr-content {
  padding: 0 24px 28px;
  font-size: 17px;
  line-height: 1.5;
}
.amr-content h2 {
  font-size: 26px;
}
.amr-content button {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  #amr-details {
    transition: none;
  }
}
