/* Unified leaderboard: scoped to this page to preserve the rest of the site. */
.page-shell[data-page="about"] .leaderboard-section { padding-top: 32px; }
.page-shell[data-page="about"] .leaderboard-section { padding-bottom: 14px; }
.page-shell[data-page="about"] main { flex: 0 0 auto !important; }
.page-shell[data-page="about"] .unified-ranking {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ranking-head h2 { margin: 0; color: #63e6e8; font-size: .82rem; font-weight: 800; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }
.ranking-trophy { width: 40px; height: 40px; flex: 0 0 40px; color: #62dbe1; }
.ranking-picker { position: relative; display: inline-block; width: 176px; --picker-background: #0b1b2b; --picker-border: rgba(153, 183, 205, .10); }
.ranking-picker.is-open { border: 0; border-radius: 8px; background: transparent; }
.ranking-select { position: relative; z-index: 21; appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--picker-border); border-radius: 8px; background: var(--picker-background); color: #d4e1ed; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.ranking-select:hover { color: #f1f6ff; }
.ranking-select[aria-expanded="true"] { border-radius: 8px 8px 0 0; border-bottom-color: transparent; }
.ranking-select svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: #6adbe1; stroke-width: 1.8; transition: transform .15s ease; }
.ranking-select[aria-expanded="true"] svg { transform: rotate(180deg); }
.ranking-options { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: block; width: 100%; box-sizing: border-box; overflow: hidden; padding: 4px; border: 1px solid var(--picker-border); border-radius: 8px; background: var(--picker-background); box-shadow: 0 16px 28px rgba(0, 0, 0, .30); transform-origin: top; animation: ranking-menu-reveal .14s ease-out; }
.ranking-options[hidden] { display: none; }
.ranking-options [role="option"] { position: relative; display: block; width: 100%; min-height: 38px; padding: 8px 32px 8px 12px; border: 0; border-radius: 5px; background: transparent; color: #bfd0df; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.2; text-align: left; cursor: pointer; }
.ranking-options [role="option"]:hover { background: rgba(153, 183, 205, .07); color: #eefcff; }
.ranking-options [aria-selected="true"] { background: rgba(153, 183, 205, .10); color: #62e9ed; }
.ranking-options [aria-selected="true"]::after { content: ""; position: absolute; top: 50%; right: 13px; width: 9px; height: 5px; border-left: 2px solid #62e9ed; border-bottom: 2px solid #62e9ed; transform: translateY(-65%) rotate(-45deg); }
.unified-ranking .ranking-options:focus-visible { outline: none; }
@keyframes ranking-menu-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .ranking-options { animation: none; } }
.ranking-table--head { width: calc(100% - 17px); border: 1px solid rgba(153, 183, 205, .10); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ranking-scroll { position: relative; max-height: 660px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #3a5367 #091827; border: 1px solid rgba(153, 183, 205, .10); border-top: 0; border-radius: 0 0 10px 10px; }
.ranking-scroll::-webkit-scrollbar { width: 7px; }
.ranking-scroll::-webkit-scrollbar-track { background: #091827; margin-block: 7px; border-radius: 8px; }
.ranking-scroll::-webkit-scrollbar-thumb { background: #3a5367; border-radius: 8px; }
.ranking-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.ranking-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ranking-table--body { width: calc(100% + 10px); }
.ranking-table th { height: 40px; padding: 0 20px; background: #0b1b2b; border-bottom: 1px solid rgba(153, 183, 205, .10); color: #8298b1; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.ranking-table--head th:first-child { border-radius: 9px 0 0 0; }
.ranking-table--head th:last-child { border-radius: 0 9px 0 0; }
.ranking-table th:first-child { width: 92px; }
.ranking-table th:last-child { width: 230px; text-align: right; }
.ranking-table td:first-child { width: 92px; }
.ranking-table td:last-child { width: 230px; text-align: right; }
.ranking-table td.ranking-player { text-align: left; }
.ranking-table--head th:last-child { width: 230px; padding-right: 8px; }
.ranking-table--head .ranking-picker { width: 176px; max-width: 100%; margin-left: auto; }
.ranking-table--head .ranking-select { min-height: 30px; padding: 0 0 0 12px; border: 1px solid var(--picker-border); border-radius: 7px; background: transparent; color: #8298b1; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; justify-content: space-between; gap: 3px; white-space: nowrap; }
.ranking-table--head .ranking-select::after { content: ""; position: absolute; top: 4px; right: 30px; bottom: 4px; width: 1px; background: rgba(153, 183, 205, .10); pointer-events: none; }
.ranking-table--head .ranking-select span { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.ranking-table--head .ranking-select:hover, .ranking-table--head .ranking-select[aria-expanded="true"] { color: #d6e9f0; }
.ranking-table--head .ranking-picker.is-open .ranking-select { border-color: var(--picker-border); border-radius: 7px; background: var(--picker-background); box-shadow: none; }
.ranking-table--head .ranking-picker.is-open .ranking-options { border-color: var(--picker-border); }
.ranking-table--head .ranking-select svg { box-sizing: border-box; width: 14px; height: 14px; flex: 0 0 14px; margin: 0 8px; padding: 0; border: 0; }
.ranking-table td { height: 44px; padding: 6px 20px; border-bottom: 1px solid rgba(170, 191, 209, .065); }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: rgba(147, 206, 224, .035); }
.ranking-place { color: #8ea5be; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ranking-top-1 .ranking-place { color: #ffdb7e; }
.ranking-top-2 .ranking-place { color: #d4e1ef; }
.ranking-top-3 .ranking-place { color: #eba46e; }
.ranking-player a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #edf4ff; text-decoration: none; font-size: 16px; font-weight: 650; }
.ranking-player span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #edf4ff; font-size: 16px; font-weight: 650; }
.ranking-player a:hover { color: #7ce5e8; }
.ranking-value { text-align: right; color: #b9e9ef; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ranking-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-top: 12px; color: #8ea5bd; font-size: 12px; }
.ranking-pagination { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.ranking-pagination button, #ranking-retry { min-width: 40px; min-height: 38px; padding: 6px 12px; border: 1px solid rgba(153, 183, 205, .18); border-radius: 8px; background: #102335; color: #d4e8f4; font: inherit; cursor: pointer; }
.ranking-pagination button:hover:not(:disabled), #ranking-retry:hover { background: #193346; }
.ranking-pagination button:disabled { opacity: .35; cursor: default; }
.unified-ranking [hidden] { display: none !important; }
.ranking-value--pending { color: #849ab0; }
.ranking-self { position: static; z-index: auto; }
.ranking-self td { background: transparent !important; border-top-color: transparent; border-bottom-color: rgba(170, 191, 209, .065); }
.ranking-self:hover td { background: transparent !important; }
.ranking-self .ranking-player a, .ranking-self .ranking-player span { color: #7ce5e8; }
.ranking-owned td { background: transparent !important; }
.ranking-owned .ranking-player a, .ranking-owned .ranking-player span { color: #7ce5e8; }
.ranking-self .ranking-player small { display: block; margin-top: 2px; color: #6f91a8; font-size: 10px; font-weight: 500; }
.ranking-table--pinned { position: sticky; left: 0; bottom: 0; z-index: 4; width: calc(100% + 10px); pointer-events: none; margin: 0; }
.ranking-table--pinned tr { background: #091827; }
.ranking-table .ranking-empty { height: 310px; text-align: center; color: #8ea5bd; font-size: 14px; }
.unified-ranking :focus-visible { outline: 2px solid #85cdd0; outline-offset: 3px; }
.ranking-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .page-shell[data-page="about"] .unified-ranking { padding: 0; }
  .ranking-head { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 18px; }
  .ranking-picker { flex-basis: auto; width: 176px; max-width: 100%; align-self: flex-end; }
  .ranking-trophy { width: 32px; height: 32px; flex-basis: 32px; }
  .ranking-head h2 { gap: 12px; }
  .ranking-table th, .ranking-table td { padding-left: 12px; padding-right: 12px; }
  .ranking-table th:first-child { width: 62px; }
  .ranking-table th:last-child { width: 150px; }
  .ranking-player a, .ranking-player span, .ranking-value { font-size: 13px; }
  .ranking-place { font-size: 15px; }
  .ranking-footer { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .ranking-table th:first-child { width: 49px; }
  .ranking-table th:last-child { width: 105px; }
  .ranking-table th, .ranking-table td { padding-left: 8px; padding-right: 8px; }
  .ranking-table th { font-size: 9px; }
}
