/* Community directory and support desk */
@font-face{font-family:FF Community;src:url(/assets/profile-oswald-cyrillic-600-normal.woff2?v=bb0df5efa29b0a40) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0400-052F}
@font-face{font-family:FF Community;src:url(/assets/profile-oswald-latin-600-normal.woff2?v=f6cb541f4d9794b8) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0000-024F}
.clan-home:has(.ff-directory),.ff-desk{--ff-panel:#1c1e24;--ff-edge:#30343e;--ff-dim:#a5afc0;--ff-blue:#1478c8;color:#f5f7fb}
.ff-clans-hero{text-align:center;padding:clamp(28px,5vw,76px) 12px 32px}
.ff-clans-hero h1,.ff-directory h2,.ff-clan-rank-head h3,.ff-directory-card h3,.ff-desk .support-hero h1,.ff-desk h2{font:600 clamp(24px,3vw,42px)/1.12 "FF Community",sans-serif;text-transform:uppercase;letter-spacing:.015em;margin:0}
.ff-clans-hero h1{font-size:clamp(42px,5vw,74px)}.ff-clans-hero em{font-style:normal;color:#389de7}
.ff-clans-hero p,.ff-directory header p,.ff-desk .support-hero p{color:var(--ff-dim);margin:12px 0 24px}
.ff-clans-hero>div,.ff-directory-actions,.desk-toolbar>div,.desk-foot{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.ff-directory .clan-view-btn,.ff-clans-hero .clan-view-btn,.ff-directory-actions .lb-blue-btn,.ff-clans-hero .lb-blue-btn,.ff-desk .desk-button{display:inline-flex;justify-content:center;align-items:center;gap:.5em;min-height:42px;padding:8px 18px;border:1px solid var(--ff-edge);border-radius:5px;color:#fff;background:#23252d;text-decoration:none;font:600 16px/1.2 "FF Community",sans-serif;letter-spacing:.045em;text-transform:uppercase;cursor:pointer}
.ff-directory-actions .lb-blue-btn,.ff-clans-hero .lb-blue-btn,.ff-desk .desk-button{background:var(--ff-blue);border-color:#2184d2}
.ff-clans-hero svg,.ff-directory svg,.ff-desk .desk-button svg{width:1.1em;height:1.1em}
.ff-rank-stage{display:flex;align-items:flex-end;justify-content:center;gap:clamp(14px,2.4vw,44px);margin:16px auto clamp(48px,6vw,90px);max-width:1460px}
.ff-rank-spot{--base:#146fbc;--height:230px;flex:1;min-width:0;max-width:500px;text-align:center;order:1}
.ff-rank-spot[data-place="1"]{--base:#c29b0b;--height:288px;order:2}.ff-rank-spot[data-place="3"]{--base:#c9343d;--height:185px;order:3}
.ff-champion{display:block;color:#ffda3b;margin-bottom:38px}.ff-champion svg{width:48px;height:48px}
.ff-clan-rank-head,.ff-directory-card{background:var(--ff-panel);border:1px solid var(--ff-edge);border-radius:9px}
.ff-clan-rank-head{display:block;position:relative;padding:36px 12px 16px;margin:26px 0 18px;color:inherit;text-decoration:none}
.ff-clan-rank-head .clan-avatar{position:absolute;width:52px;height:52px;border-radius:50%;top:-27px;left:50%;transform:translateX(-50%);background:#121419;object-fit:cover}
.ff-clan-rank-head h3{font-size:clamp(24px,2vw,34px);overflow-wrap:anywhere}.ff-clan-rank-head p,.ff-directory-card p{color:var(--ff-dim);overflow-wrap:anywhere;margin:10px 0}
.ff-clan-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ff-clan-rank-head .ff-clan-chips{justify-content:center}
.ff-clan-chips>span{display:inline-flex;gap:5px;align-items:center;background:#2a2d36;color:#dce1ea;padding:4px 8px;border-radius:6px;font-size:13px}
.ff-rank-base{background:var(--base);padding:12px 10px 18px;min-height:var(--height);border-radius:6px}
.ff-rank-base ol{list-style:none;padding:0;margin:0 0 13px}.ff-rank-base li{display:flex;align-items:center;text-align:left;gap:6px;padding:9px 7px;background:#090e1640;border-radius:5px;margin-bottom:7px;font-size:14px;color:#fff}
.ff-rank-base li>b{font:600 19px "FF Community",sans-serif}.ff-rank-base li a{display:flex;align-items:center;gap:5px;min-width:0;flex:1;color:#fff;text-decoration:none}.ff-rank-base li a span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ff-rank-base li>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:58%}.ff-rank-base li>div>span{white-space:nowrap}.ff-rank-base .avatar,.ff-rank-base .avatar img{width:25px;height:25px;border-radius:50%;flex:none}
.ff-rank-base> a{color:white;background:#09101c55;border-radius:4px;padding:5px 10px;text-decoration:none}.ff-rank-stage .stat-icon,.ff-rank-stage .metric-icon,.ff-rank-stage span[title]>img{width:16px;height:16px;object-fit:contain;vertical-align:middle}
.ff-directory{scroll-margin:90px}.ff-directory>header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px;margin-bottom:18px}.ff-directory>header p{margin:8px 0 0}
.ff-directory form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ff-directory :is(select,.lb-search){min-height:42px;border:1px solid var(--ff-edge);border-radius:6px;background:#1a1d23;color:#e4e9f2}
.ff-directory select{padding:8px 30px 8px 12px}.ff-directory .lb-search{margin:0;width:210px}.ff-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ff-directory-card{min-width:0;padding:19px;display:flex;flex-direction:column}.ff-directory-card header{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ff-edge);padding-bottom:14px}.ff-directory-card header .clan-avatar{width:46px;height:46px;border-radius:50%;object-fit:cover}.ff-directory-card h3{font-size:23px}.ff-directory-card h3 a{color:inherit;text-decoration:none}
.ff-directory-card p{flex:1}.ff-directory-actions{margin-top:16px;align-items:stretch}.ff-directory-actions>*{flex:1}.ff-directory-actions form>*{width:100%}.ff-own-clan{margin-top:32px}
.ff-desk .support-top{align-items:center}.desk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:26px 0}.desk-toolbar nav{display:flex;gap:3px;padding:4px;border:1px solid var(--ff-edge);border-radius:8px;background:#1b1d23}
.desk-toolbar nav a,.desk-back{color:var(--ff-dim);text-decoration:none}.desk-toolbar nav a{padding:8px 12px;border:1px solid transparent;border-radius:5px}.desk-toolbar nav a[aria-current=page]{background:#252931;border-color:#404653;color:white}
.desk-toolbar small{color:#69bdff;background:#152838;border-radius:5px;padding:1px 5px}.ff-desk .desk-appeal{color:#ff8580;border-color:#aa5254;background:#321f23}
.desk-empty{padding:clamp(40px,6vw,78px) 20px;text-align:center;background:#181a20;border:1px dashed #464b59;border-radius:7px}.desk-empty>svg{width:26px;height:26px;color:#949eaf;margin:0 auto 13px}.desk-empty h2{font-size:24px}.desk-empty p{max-width:370px;margin:13px auto 22px;color:var(--ff-dim)}
.desk-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px;background:var(--ff-panel);border:1px solid var(--ff-edge);border-radius:6px;margin:7px 0;color:inherit;text-decoration:none}.desk-row strong{flex:1}.desk-row small,.desk-row time{color:var(--ff-dim)}.desk-foot{margin:18px 0;justify-content:space-between}.desk-back{display:inline-block;margin-bottom:18px}.ff-desk .ticket-thread{margin:0}
.ff-directory a:hover,.ff-clans-hero a:hover,.ff-desk a:hover,.ff-rank-stage a:hover{filter:brightness(1.15)}
@media(max-width:850px){.ff-rank-stage{align-items:stretch;flex-direction:column}.ff-rank-spot,.ff-rank-spot[data-place]{order:initial;max-width:none;--height:auto}.ff-champion{margin-bottom:20px}.ff-clan-rank-head{margin-bottom:9px}.ff-rank-base{padding-bottom:14px}.ff-directory-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.desk-toolbar nav{width:100%;justify-content:space-between}.desk-toolbar nav a{padding:7px}.desk-toolbar>div,.desk-toolbar .desk-button{flex:1}.ff-directory form{width:100%}.ff-directory .lb-search{width:100%}.ff-directory select{flex:1;min-width:0}.ff-directory-actions .lb-blue-btn,.ff-directory .clan-view-btn{font-size:14px;padding:8px}.desk-row time{width:100%}}

.ff-clans-hero .ff-clan-primary > .lb-blue-btn {
  flex: 0 0 auto;
  width: fit-content;
  min-height: 42px;
  padding-inline: 20px;
}
.ff-directory form.ff-clan-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ff-clan-query, .ff-server-options {
  box-sizing: border-box;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid #383e49;
  border-radius: 7px;
  background: #191c22;
}
.ff-clan-query { width: clamp(185px,17vw,265px); }
.ff-clan-search-row { display:flex; align-items:center; gap:8px; max-width:100%; min-width:0; }
.ff-clan-filters .ff-my-clan {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  min-height: 46px; box-sizing: border-box; padding: 5px 11px;
  max-width: min(185px, 52%); border: 1px solid #625e68; border-radius: 12px;
  background: linear-gradient(155deg, #39363e, #28262c 72%); color: #faf8f6;
  box-shadow: inset 0 1px #ffffff12; text-decoration: none; text-align: left;
}
.ff-my-clan img {width: 27px; height: 27px; object-fit: contain; flex: none}
.ff-my-clan .ff-my-clan-copy {display: grid; min-width: 0; gap: 2px}
.ff-my-clan strong {font: 700 14px/1.1 Inter, system-ui, sans-serif; white-space: nowrap}
.ff-my-clan small {overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #d0cbd5; font: 500 11px/1.15 Inter, system-ui, sans-serif}
.ff-clan-filters .ff-my-clan > svg {width: 12px; height: 12px; flex: none; margin-left: auto; color: #d2cbd8}
@media (hover: hover) {
  .ff-clan-filters .ff-my-clan:hover {border-color: #9c93a4; background: #403c45}
}
.ff-clan-filters .ff-my-clan:focus-visible {outline: 2px solid #eee6f4; outline-offset: 3px}
.ff-clan-filters .ff-my-clan:active {background: #211f25}
@media (max-width: 400px) {
  .ff-clan-filters .ff-my-clan {gap: 6px; padding-inline: 8px; max-width: 47%}
  .ff-my-clan img {width: 24px; height: 24px}
}

.ff-clan-query input {
  flex: 1; width: 0; min-width: 0; padding: 9px 0 9px 13px;
  color: #f0f3f8; background: transparent; border: 0; box-shadow: none; font: inherit;
}
.ff-clan-query input::placeholder { color: #a4adbb; }
.ff-clan-query:focus-within { outline: 2px solid #54aff2; outline-offset: 2px; }
.ff-clan-query input:focus { outline: 0; }
.ff-clan-query button, .ff-server-options button {
  min-width: 0; width: auto; margin: 0; border: 0;
  background: transparent; color: #bcc6d4; cursor: pointer; font: inherit;
}
.ff-clan-query button { display: grid; place-items: center; width: 42px; height: 40px; padding: 0; }
.ff-clan-query button svg { width: 20px; height: 20px; }
.ff-server-options { padding: 3px; gap: 2px; }
.ff-server-options button {
  min-height: 36px; border-radius: 4px; padding: 5px 12px; white-space: nowrap;
  font-size: 14px; font-weight: 600;
}
.ff-server-options button[aria-pressed="true"] { background: #244363; color: #e6f4ff; }
.ff-server-options button:hover, .ff-clan-query button:hover { color: #fff; background-color: #2c3542; }
.ff-clan-filters button:focus-visible { outline: 2px solid #68b7ff; outline-offset: 1px; }
@media (max-width: 620px) {
  .ff-directory form.ff-clan-filters { width: 100%; gap: 8px; }
  .ff-clan-search-row { width:100%; }
  .ff-clan-query { flex:1; min-width:0; }
  .ff-server-options { width: 100%; }
  .ff-server-options button { flex: 1; }
}

.ff-rank-spot[data-place="1"] { --rank-light: 255 209 58; --rank-glow: .22; }
.ff-rank-spot[data-place="2"] { --rank-light: 59 162 255; --rank-glow: .13; }
.ff-rank-spot[data-place="3"] { --rank-light: 255 97 99; --rank-glow: .12; }
.ff-rank-spot[data-place] .ff-clan-rank-head {
  border-color: rgb(var(--rank-light) / .42);
  box-shadow: 0 8px 38px -7px rgb(var(--rank-light) / var(--rank-glow));
}
.ff-champion svg { filter: drop-shadow(0 2px 8px rgb(255 211 47 / .48)); }

/* Keep the same content width on short and long pages and jump straight to hash targets. */
html:has(body.project-frostfire) { scrollbar-gutter:stable; scroll-behavior:auto; }
.project-frostfire > .head .brand-mark { animation: none; }

.ff-store-promo {display:block;width:min(100%,600px);margin:clamp(16px,3vw,32px) auto;border-radius:18px;}
.ff-store-promo img {display:block;width:100%;height:auto;}
.ff-store-promo:focus-visible {outline:2px solid currentColor;outline-offset:3px;}

/* Leaderboard controls and totals share the same server and period context. */
.lb-page .lb-shell {
  width: calc(100% - clamp(20px, 3vw, 64px));
  min-width: 0;
  gap: 14px;
  padding-top: 16px;
  scroll-margin-top: 82px;
}
.lb-page .lb-overview {
  display: block;
  padding: 0;
  color: #f3f4f7;
  background: #101114;
  border: 1px solid #282a30;
  border-radius: 12px;
}
.lb-overview-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 20px;
}
.lb-context { min-width: 0; }
.lb-context-title, .lb-context-live, .lb-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.lb-context-title h1 {
  margin: 0;
  color: #fff;
  font: 750 21px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}
.lb-context-title strong { color: #c1c5cf; font: 650 14px/1.3 Inter, sans-serif; }
.lb-context-live { margin-top: 7px; color: #c5c8d2; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-context-live b { color: #fff; }
.lb-context-live .lb-plaque-bar { width: 76px; height: 5px; }
.lb-overview .lb-board-tools { padding: 0; gap: 10px; min-width: 0; }
.lb-overview .lb-search-form { width: clamp(196px, 18vw, 310px); margin: 0; }
.lb-overview .lb-search { margin: 0; width: 100%; min-width: 0; height: 44px; }
.lb-overview .lb-period summary { min-height: 44px; justify-content: center; }
.lb-overview .lb-period-arrow { width: 44px; }
.lb-overview span.lb-period-arrow { opacity: .3; pointer-events: none; }
.lb-overview :is(summary,a,input):focus-visible { outline: 2px solid #c5ddff; outline-offset: -2px; }
.lb-summary-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid #26282e;
}
.lb-summary-values > div { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; background: #191b20; border-radius: 7px; font: 500 13px/1.35 Inter, system-ui, sans-serif; }
.lb-summary-values dt { color: #b7bfcc; }
.lb-summary-values dd { margin: 0; color: #f2f4f8; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-page .lb-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.lb-filter-row .lb-tabs, .lb-filter-row .lb-servers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: auto;
}
.lb-filter-row .lb-tabs a, .lb-filter-row .lb-server {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid #303239;
  border-radius: 9px;
  background: #101114;
  color: #c6c8cf;
  font: 650 16px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.lb-filter-row .lb-tabs { grid-column: 1 / -1; width: 100%; gap: 8px; }
.lb-filter-row .lb-tabs a {
  position: relative; justify-content: center; min-width: 0; min-height: 66px;
  font-size: 17px; font-weight: 720; letter-spacing: .01em;
}
.lb-filter-row .lb-tabs a[aria-current="page"] {
  background: #25272c; border-color: #646973;
}
.lb-filter-row .lb-tabs a[aria-current="page"] .lb-action-icon { color: white; }
.lb-filter-row .lb-servers-track { justify-content: flex-start; }
.lb-filter-row .lb-servers { flex: 0 1 auto; }
.lb-filter-row .lb-servers-wrap { max-width: 100%; }
.lb-page .lb-cats { border: 1px solid #303239; }
.lb-page .lb-cats a[aria-current="page"] { background: #292c32; }
.lb-page .lb-compare-btn { display: inline-flex; gap: 7px; align-items: center; min-height: 38px; border: 1px solid #565d6a; border-radius: 6px; background: #252931; color: #fff; }
.lb-page .lb-compare-btn:is(:hover,:focus-visible) { background: #373c45; }
.lb-compare-btn .lb-action-icon { width: 17px; height: 17px; }

/* An opaque surface also keeps sticky cells readable while the table scrolls. */
.lb-page .lb-board .leaderboard-table tbody tr { --rank-row: #111215; background: var(--rank-row); }
.lb-page .lb-board .leaderboard-table tbody tr:is(:hover,:focus-within) { --rank-row: #1c1e23; }
.lb-page .lb-board .leaderboard-table tbody tr > td { background-color: var(--rank-row); border-bottom: 1px solid #26282e; }
.lb-page .lb-board .leaderboard-table tbody tr > td.selected-metric { color: #f3f4f6; }

.lb-filter-row .lb-tabs svg { width: 22px; height: 22px; }
.lb-filter-row :is(.lb-tabs a,.lb-server)[aria-current="page"] {
  color: white; border-color: #727982; background: #202226;
}
.lb-filter-row :is(.lb-tabs a,.lb-server):hover { background: #1c1e22; border-color: #646970; }
.lb-filter-row .lb-servers-wrap { padding: 0; min-width: 0; }
.lb-filter-row :is(.lb-servers-label,.lb-servers-arrow,.lb-server-orb-label,.lb-server-online) { display: none; }
.lb-filter-row .lb-server { position: relative; flex-direction: row; width: auto; min-width: 166px; padding: 8px 26px 8px 12px; }
.lb-filter-row .lb-server-orb { width: 36px; height: 36px; }
.lb-filter-row .lb-server-orb img { opacity: 1; }
.lb-filter-row .lb-server[aria-current="page"] .lb-server-orb { border-color: #565a61; }
.lb-server-copy { display: grid; gap: 4px; min-width: 0; }
.lb-filter-row .lb-server-name { text-align: left; text-transform: none; font: inherit; }
.lb-server-copy small { color: #adb1ba; font-size: 11px; font-weight: 500; }
.lb-selected-server { position: absolute; right: 7px; top: 8px; line-height: 1; }
.lb-selected-server svg { width: 15px; height: 15px; }
.lb-filter-row > .lb-blue-btn { margin-left: auto; min-height: 44px; }
.lb-page .lb-board, .lb-page .lb-cats, .lb-overview .lb-period, .lb-overview .lb-search { background-color: #101114; }
@media (max-width: 730px) {
  .lb-page .lb-filter-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .lb-filter-row .lb-servers { flex: 1; }
  .lb-filter-row .lb-tabs, .lb-filter-row .lb-servers-wrap { width: 100%; }
  .lb-filter-row > .lb-blue-btn { justify-self: start; margin: 0; }
  .lb-filter-row .lb-server, .lb-filter-row .lb-tabs a { min-width: 0; }
  .lb-filter-row .lb-tabs a { min-height: 56px; }
}
.lb-page .lb-nav { gap: 10px; }
.lb-page .lb-cats a { min-height: 44px; }
@media (max-width: 820px) {
  .lb-overview .lb-board-tools { flex: 1 1 100%; }
  .lb-overview .lb-search-form { flex: 1 1 180px; }
}
@media (max-width: 560px) {
  .lb-overview-row { padding: 14px; }
  .lb-overview .lb-period, .lb-overview .lb-search-form { width: 100%; }
  .lb-overview .lb-period details { min-width: 0; flex: 1; }
  .lb-overview .lb-period-menu { left: -44px; min-width: 0; width: calc(100% + 88px); }
  .lb-summary-values { justify-content: flex-start; padding: 10px; gap: 5px; }
  .lb-summary-values > div { padding: 5px 7px; }
  .lb-filter-row > .lb-blue-btn { margin-left: 0; }
}

@media (prefers-reduced-motion:no-preference) {
  .bar nav a:is(:hover,:focus-visible) .service-mark[data-glyph="tournaments"] > g {
    transform-origin: 5px 18px;
    animation: frost-tournament-flag .42s ease-in-out;
  }
  @keyframes frost-tournament-flag { 35% { transform: rotate(-9deg) } 70% { transform: rotate(4deg) } }
}

/* Server selector and active leaderboard filters */
.lb-page {
  --lb-active-bg:#2b3038; --lb-active-border:#535c6a; --lb-active-text:#f3f5f8;
  --lb-tab-fill:#b9bbc2; --lb-tab-border:#c3c5ca; --lb-tab-ink:#1a1b1e;
}
.lb-page .lb-servers-wrap { padding: 14px 14px 10px; gap: 7px; background: #141519; border: 1px solid #2e3036; border-radius: 12px; }
.lb-page .lb-servers-label { padding-left: 48px; color: #b6b7bf; font-size: 10px; }
.lb-page .lb-servers { flex: 1; gap: 6px; padding: 2px; }
.lb-page .lb-server { box-sizing: border-box; width: 100px; gap: 7px; padding: 8px 4px; border: 1px solid transparent; }
.lb-page .lb-server[aria-current=page] { background: var(--lb-active-bg); border-color: var(--lb-active-border); }
.lb-page .lb-server[aria-current=page] .lb-server-orb { border-color: #a4afbe; }
.lb-page .lb-server-orb img { opacity: .44; }
.lb-page .lb-server-copy { text-align: center; gap: 1px; }
.lb-page .lb-server-copy small { font-size: 10px; }
.lb-page .lb-servers-arrow[aria-hidden] { opacity: .38; cursor: default; }
.lb-page .lb-filter-row .lb-tabs { grid-column: 1; }
.lb-page .lb-filter-row .lb-tabs a { min-height: 48px; }
.lb-page .lb-filter-row .lb-tabs a[aria-current=page],
.lb-page .lb-cats a[aria-current=page] { background:var(--lb-tab-fill); border-color:var(--lb-tab-border); text-decoration:none; }
.lb-page .lb-cats a[aria-current=page] { box-shadow:none; border-radius:6px; }
.lb-page .lb-filter-row .lb-tabs a[aria-current=page] .lb-action-icon { color:var(--lb-tab-ink); }
.lb-page .lb-summary-values .lb-current-metric,
.lb-page .leaderboard-table th[aria-sort] { border-radius: 12px; background: var(--lb-active-bg); box-shadow: inset 0 0 0 1px var(--lb-active-border); }
.lb-page .lb-summary-values .lb-current-metric :is(dt,dd),
.project-frostfire .lb-page .leaderboard-table th[aria-sort] a,
.lb-page .lb-sort-chevron,
.lb-page .lb-board .leaderboard-table tbody tr > td.selected-metric { color: var(--lb-active-text); }
.lb-page .lb-board .leaderboard-table tbody tr > td.selected-metric { background-color: #20242b; font-weight: 700; }
.lb-page .lb-board .leaderboard-table tbody tr:is(:hover,:focus-within) > td.selected-metric { background-color: #2b3038; }
.lb-page .lb-summary-values .lb-current-metric { border-radius: 10px; }
.lb-page .lb-summary-values .lb-current-metric dd { font-weight: 750; }
html:has(.lb-page), .lb-page :is(.leaderboard-table,.lb-cats,.lb-period-menu,.lb-compare-dialog) { scrollbar-color: #626c7a #202127; }
@media (max-width: 550px) {
  .lb-page .lb-servers-wrap { padding: 10px 6px 6px; }
  .lb-page .lb-servers-label { padding-left: 34px; }
  .lb-page .lb-servers-track { gap: 4px; }
  .lb-page .lb-servers-arrow { width: 28px; height: 36px; }
  .lb-page .lb-server { width: 87px; }
}
.lb-page #lb-results { border-radius: 12px; scroll-margin-top: 106px; }
.lb-page .lb-board .leaderboard-table { padding: 6px 0 0; }
.lb-page .leaderboard-table .lb-rank-col {
  box-sizing: border-box;
  width: 64px;
  padding-inline: 8px;
  text-align: center;
  white-space: nowrap;
}
.lb-page .lb-rank-col span {
  display: inline-block;
  min-width: 24px;
  color: #a7b3c2;
  font-size: .82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.lb-page tr:is([data-rank="1"],[data-rank="2"],[data-rank="3"]) .lb-rank-col span {
  padding: 3px 4px;
  border-radius: 7px;
  background: #28303b;
  color: #edf2f8;
}
.lb-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 13px 16px;
  border-top: 1px solid #2b3038;
  background: #17191e;
}
.lb-results-footer p { margin: 0; color: #aeb8c6; font-size: .875rem; }
.lb-results-footer strong { color: #eef1f6; font-variant-numeric: tabular-nums; }
.lb-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lb-pagination .lb-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding-inline: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c2cbd8;
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.lb-pagination .lb-page-link[aria-current=page] {
  border-color: var(--lb-active-border);
  background: var(--lb-active-bg);
  color: var(--lb-active-text);
}
.lb-pagination a.lb-page-link:hover { background: #252a33; color: #fff; }
.lb-pagination a.lb-page-link:focus-visible { outline: 2px solid #bccde4; outline-offset: -2px; }
.lb-pagination .lb-page-arrow[aria-hidden] { opacity: .35; }
.lb-page-gap { width: 12px; color: #aeb8c6; text-align: center; }
@media (max-width: 530px) {
  .lb-results-footer { justify-content: center; padding-inline: 8px; }
  .lb-pagination { justify-content: center; gap: 2px; }
  .lb-pagination .lb-page-link { min-width: 34px; min-height: 42px; }
  .lb-page .leaderboard-table .lb-rank-col { width: 49px; padding-inline: 4px; }
}

/* Animate a few initial content blocks while the page shell stays opaque. */
@media (prefers-reduced-motion: no-preference) {
  .lb-page :is(.lb-tabs,.lb-cats) a {
    transition:background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }
  .stats-filter-navigation .lb-page .lb-board {
    animation:lb-results-arrive 240ms var(--ease-out,cubic-bezier(.23,1,.32,1)) both;
  }
  .project-frostfire > main.wrap > :nth-child(-n+4 of :not(dialog, script, style, template, [hidden])):not(:only-child, .lb-page),
  .project-frostfire > main.wrap > :only-child:not(.lb-page) > :nth-child(-n+4 of :not(dialog, script, style, template, [hidden])),
  html:not(.stats-filter-navigation) .lb-page :is(.lb-servers-wrap, .lb-filter-row, .lb-cats, .lb-overview, .lb-board) {
    animation: ff-block-arrive 190ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)) var(--ff-arrival-delay, 0ms) backwards;
  }
  .project-frostfire > main.wrap > :nth-child(2 of :not(dialog, script, style, template, [hidden])),
  .project-frostfire > main.wrap > :only-child > :nth-child(2 of :not(dialog, script, style, template, [hidden])),
  .lb-page .lb-filter-row { --ff-arrival-delay: 32ms; }
  .project-frostfire > main.wrap > :nth-child(3 of :not(dialog, script, style, template, [hidden])),
  .project-frostfire > main.wrap > :only-child > :nth-child(3 of :not(dialog, script, style, template, [hidden])),
  .lb-page .lb-cats { --ff-arrival-delay: 64ms; }
  .project-frostfire > main.wrap > :nth-child(4 of :not(dialog, script, style, template, [hidden])),
  .project-frostfire > main.wrap > :only-child > :nth-child(4 of :not(dialog, script, style, template, [hidden])),
  .lb-page :is(.lb-overview, .lb-board) { --ff-arrival-delay: 96ms; }
  .lb-page .lb-board { --ff-arrival-delay: 120ms; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-page :is(.lb-tabs,.lb-cats) a {transition:none}
}
@keyframes lb-results-arrive {
  from {opacity:.78}
  to {opacity:1}
}
@keyframes ff-block-arrive {
  from { opacity: .68; translate: 0 4px; }
  to { opacity: 1; translate: 0 0; }
}

/* Clan directory */
.clan-home .ff-directory-grid {grid-template-columns:minmax(0,1fr);gap:10px}
.clan-home .ff-clan-row {
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) max-content;align-items:center;
  gap:clamp(12px,2vw,24px);min-height:96px;padding:14px clamp(14px,2.4vw,36px);
  border:1px solid #ffffff0f;border-radius:16px;background:#1a1b1e;color:#f5f5f6;
}
.ff-clan-row>.clan-avatar {width:clamp(46px,4.4vw,66px);height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover}
.ff-clan-row .ff-row-copy h3 {font:700 clamp(16px,1.3vw,20px)/1.22 Inter,system-ui,sans-serif;letter-spacing:-.02em;text-transform:none;overflow-wrap:anywhere}
.ff-clan-row h3 a::after {content:"";position:absolute;inset:0;border-radius:16px}
.ff-clan-row h3 a:focus-visible::after {outline:2px solid #e8d8ae;outline-offset:1px}
.ff-clan-row .ff-row-copy p {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#b8bac1;margin:4px 0 0;font:400 14px/1.35 Inter,system-ui,sans-serif}
.ff-row-stats {display:grid;justify-items:end;gap:8px;color:#c5c6cb;font:650 14px/1.15 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.ff-row-stats>span,.ff-row-actions,.ff-row-actions :is(a,button) {display:flex;align-items:center;gap:7px}
.ff-row-stats svg {color:#999ca5}
.ff-row-actions {flex-wrap:wrap;gap:4px 12px;margin-top:5px}
.ff-row-actions :is(a,button,form) {position:relative;z-index:1}
.ff-row-actions :is(a,button) {font:600 13px/1.2 Inter,system-ui,sans-serif;min-height:28px;background:none;color:#c3c6ce;border:0;text-decoration:none;padding:0;cursor:pointer}
.ff-directory .ff-row-actions form {width:auto;margin:0}
.ff-row-actions .ff-row-social {width:28px;justify-content:center}
.ff-row-actions .ff-row-social svg {width:18px;height:18px}
.ff-row-actions :is(a,button):focus-visible,.ff-row-actions :is(a,button):hover {color:white;text-decoration:underline}
.clan-home .ff-server-options {border-radius:11px;background:#121316;border-color:#32343a;gap:3px}
.clan-home .ff-server-options button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border-radius:8px}
.clan-home .ff-server-options button[aria-pressed="true"] {color:#fff;background:#393c43;box-shadow:inset 0 0 0 1px #ffffff20}
.clan-home .ff-server-options svg {width:16px;height:16px;flex:none}
.clan-home .ff-rank-stage {max-width:none;gap:clamp(10px,1.4vw,24px);margin-bottom:clamp(32px,4vw,60px)}
.ff-rank-stage .ff-rank-spot {max-width:none;--height:auto;--crest:56px;--step:28px;--share:1;--inset:5px}
.ff-rank-stage .ff-rank-spot[data-place="1"] {--crest:68px;--step:0px;--share:1.13;--inset:0px;--height:auto}
.ff-rank-stage .ff-rank-spot[data-place="3"] {--crest:46px;--step:56px;--share:.91;--inset:10px;--height:auto}
.ff-rank-stage .ff-rank-spot .ff-clan-rank-head {margin:0;padding:16px 14px 14px;background:linear-gradient(180deg,rgb(var(--rank-light) / .105),transparent 90%),#191a1d;border-radius:16px 16px 0 0;border-bottom:0;box-shadow:none}
.ff-clan-rank-head .ff-place {display:flex;align-items:center;justify-content:center;gap:6px;color:rgb(var(--rank-light));font:700 13px/1.2 Inter,system-ui,sans-serif}
.ff-place svg {width:17px;height:17px}
.ff-rank-stage .ff-clan-rank-head .clan-avatar {position:static;transform:none;display:block;margin:10px auto 8px;width:var(--crest);height:var(--crest);box-shadow:0 0 0 2px rgb(var(--rank-light) / .58)}
.ff-rank-stage .ff-rank-base {border-radius:0 0 16px 16px;border:1px solid rgb(var(--rank-light) / .35);border-top-color:#ffffff12;background:var(--base)}
.ff-rank-stage .ff-rank-base li {background:#11151d73}
.ff-rank-stage .ff-rank-base li>b {color:white}
.ff-rank-stage .ff-rank-base>a {background:#11151d73;color:white}
@media(min-width:851px){
  .clan-home .ff-rank-stage {align-items:stretch}
  .ff-rank-stage .ff-rank-spot {display:flex;flex-direction:column;flex:var(--share) 1 0%;margin-top:var(--step)}
  .ff-rank-stage .ff-rank-spot .ff-clan-rank-head {flex:1}
}
@media(max-width:850px){
  .ff-rank-stage .ff-rank-spot {margin-inline:var(--inset)}
}
@media(max-width:540px){
  .clan-home .ff-clan-row {padding:12px;gap:10px}
  .clan-home .ff-server-options button {padding:6px 4px;gap:4px;font-size:12px}
  .ff-row-actions :is(a,button){min-height:32px}
}


/* Homepage actions and header access */
.ff-skip { position:fixed; top:8px; left:8px; z-index:9999; transform:translateY(calc(-100% - 12px)); padding:12px 18px; border-radius:8px; background:#fff; color:#15251c; }
.ff-skip:focus { transform:none; }
.project-frostfire .head :is(a,button,summary):focus-visible,
.project-frostfire .home-store-offer :is(a,button):focus-visible { outline:3px solid var(--tool-focus,currentColor); outline-offset:2px; }
.project-frostfire .head .ff-mode { min-width:40px; min-height:40px; border:1px solid var(--pref-line); background:var(--pref-hover); }
.project-frostfire .home-server-cards { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:16px; }
.home-server-cards .server-promo-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.home-server-cards .home-help { display:inline-flex; align-items:center; min-height:40px; padding:0 12px; color:#fff; background:#252529; text-decoration:underline; text-underline-offset:3px; border-radius:8px; }
.ffvip-ad .home-vip-discount { padding:.16em .28em; border-radius:.18em; color:#271508; background:#ffad64; font:850 clamp(42px,8vw,104px)/1 system-ui,sans-serif; letter-spacing:-.06em; white-space:nowrap; }
.project-frostfire .ffvip-ad .ffvip-cta { color:#291706; background:#ffb36b; }
.project-frostfire .ffvip-ad .ffvip-cta:hover { background:#ffc991; filter:none; }
.home-store-offer { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(16px,3vw,40px); margin-block:18px; border-radius:16px; background:var(--panel); border:1px solid var(--stroke); color:var(--text); overflow:hidden; }
.home-store-offer picture,.home-store-offer img { display:block; width:100%; height:auto; }
.home-store-offer>div { padding:18px; }
.home-store-offer h2,.home-store-offer p { margin:0 0 10px; }
.home-store-offer strong { letter-spacing:.08em; }
.home-store-offer .promo-actions { display:flex; flex-wrap:wrap; gap:8px; }
.home-store-offer [hidden] { display:none; }
.promo-feedback:not(:empty) { display:block; margin-top:8px; }
.home-faq { margin-block:16px; }
@media (max-width:620px) {
  .project-frostfire .home-server-cards,.home-store-offer { grid-template-columns:1fr; }
  .ffvip-ad:has(.home-vip-discount) { flex-direction:row; align-items:center; padding:18px; gap:8px; }
  .home-store-offer { gap:0; }
}

/* Individual leaderboard rank rows. */
.lb-page .lb-board {min-width:0; background:transparent; border:0; box-shadow:none}
.lb-page .lb-board .leaderboard-table {padding:2px 0 0}
.lb-page .lb-board .leaderboard-table table {border-collapse:separate; border-spacing:0 6px}
.lb-page .lb-board .leaderboard-table :is(th,td) {
  padding:10px clamp(8px,1vw,15px); text-align:center; white-space:nowrap;
}
.lb-page .lb-board .leaderboard-table thead th {
  border:0; background:transparent; color:#b3b6bd; box-shadow:none;
  font:500 13px/1.25 Inter,system-ui,sans-serif; text-transform:none; letter-spacing:0;
}
.lb-page .lb-board .leaderboard-table thead th[aria-sort] a {
  padding:0 8px; border:1px solid #42454c; border-radius:8px; background:#212328;
}
.lb-page .lb-board .leaderboard-table tr > :nth-child(2) {position:relative; min-width:182px; text-align:left}
.lb-page .lb-board .leaderboard-table tbody tr {
  --rank-row:#1a1b1d; --lb-rank-accent:transparent; background:transparent;
}
.lb-page .lb-board .leaderboard-table tbody tr:is(:hover,:focus-within) {--rank-row:#232529}
.lb-page .lb-board .leaderboard-table tbody tr[data-rank="1"] {--lb-rank-accent:#e9bd67}
.lb-page .lb-board .leaderboard-table tbody tr[data-rank="2"] {--lb-rank-accent:#aebdcd}
.lb-page .lb-board .leaderboard-table tbody tr[data-rank="3"] {--lb-rank-accent:#c99372}
.lb-page .lb-board .leaderboard-table tbody tr > td {
  position:relative; border:0; background-color:var(--rank-row);
  color:#b6bac1; font-variant-numeric:tabular-nums;
}
.lb-page .lb-board .leaderboard-table tbody tr > td:first-child {
  border:0; border-inline-start:4px solid var(--lb-rank-accent); border-radius:11px 0 0 11px;
}
.lb-page .lb-board .leaderboard-table tbody tr > td:last-child {border-radius:0 11px 11px 0}
.lb-page .lb-board .leaderboard-table tbody tr:is([data-rank="1"],[data-rank="2"],[data-rank="3"]) > td:nth-child(-n+2) {
  background-image:linear-gradient(90deg,color-mix(in srgb,var(--lb-rank-accent) 9%,transparent),transparent);
}
.lb-page .lb-board .leaderboard-table tbody tr:is([data-rank="1"],[data-rank="2"],[data-rank="3"]) .lb-rank-col span {
  padding:0; color:var(--lb-rank-accent); background:none;
}
.lb-page .lb-board .leaderboard-table tbody tr > td.selected-metric {color:#f3f4f6; background-color:var(--rank-row)}
.lb-page .lb-board .leaderboard-table .lb-rank-col {width:56px; padding-inline:4px}
.lb-page .lb-board .leaderboard-table .roster-identity {gap:10px; max-width:225px; padding:0; color:#f2f3f5; font:600 14px/1.25 Inter,system-ui,sans-serif}
.lb-page .lb-board .leaderboard-table .roster-identity:is(:hover,:focus-visible) {background:transparent; color:white}
.lb-page .leaderboard-table .roster-identity .roster-arrow {display:none}
.lb-page .leaderboard-table .roster-name strong {overflow:hidden; text-overflow:ellipsis}
.lb-page .leaderboard-table .roster-name small {margin-top:4px; color:#adb0b8; font:400 12px/1.2 Inter,system-ui,sans-serif; user-select:text}
.lb-page .leaderboard-table .roster-identity :is(.avatar,.clan-avatar) {width:42px; height:42px; flex:none; border-radius:50%}
.lb-page .leaderboard-table .roster-identity .avatar img {width:100%; height:100%; object-fit:cover}
.lb-page .leaderboard-table .lb-table-crown {position:absolute; z-index:1; top:5px; left:10px; color:#e9bd67; pointer-events:none}
.lb-page .leaderboard-table .lb-table-crown svg {width:15px; height:15px}
.lb-page .leaderboard-table .lb-compare-col {position:static}
.lb-page .leaderboard-table .lb-compare-btn {width:36px; min-height:36px; padding:0; border-color:#4a4e56; border-radius:8px; background:#2a2d32}
.lb-page .leaderboard-table .lb-compare-btn:is(:hover,:focus-visible) {background:#424650}
.lb-snapshot-name {color:#f2f3f5; font-weight:650}
@media (max-width:680px) {
  .lb-page .lb-board .leaderboard-table .lb-rank-col {width:44px}
  .lb-page .lb-board .leaderboard-table tr > :nth-child(-n+2) {position:sticky; z-index:2}
  .lb-page .lb-board .leaderboard-table tr > :first-child {left:0}
  .lb-page .lb-board .leaderboard-table tr > :nth-child(2) {left:44px; min-width:145px}
  .lb-page .lb-board .leaderboard-table thead tr > :nth-child(-n+2) {background:#141517}
  .lb-page .lb-board .leaderboard-table .roster-identity {max-width:162px}
  .lb-page .leaderboard-table .roster-identity :is(.avatar,.clan-avatar) {width:34px; height:34px}
}


/* Clan directory rows retain their size while the three figures slide into view. */
.ff-row-summary {display:grid;align-items:center;justify-items:end;min-width:0}
.ff-row-summary > * {grid-area:1/1}
.ff-row-showcase {position:relative;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;text-decoration:none}
.ff-clan-row .ff-row-showcase .score-chip {
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;line-height:1.15;
  padding:9px 13px;border-radius:11px;border:1px solid #3d4044;background:#111214;color:#f5f5f5;
  font:700 clamp(17px,1.35vw,20px)/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
.ff-row-showcase .score-chip b {font:inherit}
.ff-clan-row .ff-row-showcase .lb-metric-icon {width:clamp(26px,2.1vw,32px);height:clamp(26px,2.1vw,32px);object-fit:contain}
@media (hover:hover) and (pointer:fine) {
  .ff-row-showcase {opacity:0;visibility:hidden;transform:translateX(7px)}
  .ff-row-stats,.ff-row-showcase {transition:opacity .16s ease,transform .2s ease-out,visibility .16s}
  .ff-clan-row:is(:hover,:focus-within) .ff-row-showcase {opacity:1;visibility:visible;transform:none}
  .ff-clan-row:is(:hover,:focus-within) .ff-row-stats {opacity:0;visibility:hidden;transform:translateX(-5px)}
}
@media (hover:none),(pointer:coarse) {
  .ff-row-summary > * {grid-area:auto}
  .ff-row-summary {gap:6px}
  .ff-row-summary .ff-row-stats {display:flex;gap:10px}
}
@media (max-width:620px) {
  .clan-home .ff-clan-row {grid-template-columns:auto minmax(0,1fr)}
  .ff-clan-row .ff-row-summary {grid-column:1/-1;justify-items:start}
  .ff-row-showcase {justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce) {
  .ff-clan-row .ff-row-summary > * {transition:none;transform:none}
}

.ff-rank-index,.ff-player-detail {min-width:0;color:var(--text);font-variant-numeric:tabular-nums}
.ff-rank-filters {display:grid;grid-template-columns: minmax(140px,180px) minmax(140px,180px) minmax(170px,1fr) auto;gap:12px;align-items:end;margin:0 0 22px}
.ff-rank-filters label {display:grid;gap:7px;min-width:0;color:var(--muted);font:500 14px/1.3 system-ui,sans-serif}
.ff-rank-filters :is(select,input,button) {box-sizing:border-box;min-width:0;min-height:48px;border:1px solid var(--stroke,#343539);border-radius:11px;background:var(--card,#202123);color:var(--text,#eee);padding:0 13px;font:inherit}
.ff-rank-filters select {width:100%;cursor:pointer;color-scheme:dark}
html[data-brightness=light] .ff-rank-filters select {color-scheme:light}
.ff-rank-filters .ff-rank-search {position:relative}
.ff-rank-search svg {position:absolute;width:18px;height:18px;left:14px;top:15px;pointer-events:none}
.ff-rank-filters input[type=search] {width:100%;padding-inline-start:42px}
.ff-rank-filters button {cursor:pointer;font-size:14px;font-weight:650}
.ff-rank-filters :focus-visible,.ff-rank-scroll a:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.ff-rank-scroll {max-width:100%;overflow-x:auto}
.ff-rank-scroll table {border-collapse:collapse;width:100%;font-size:14px;color:inherit}
.ff-rank-scroll :is(th,td) {padding:12px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--stroke,#353537)}
.ff-rank-scroll thead th {font-weight:550;color:var(--muted);height:44px}
.ff-rank-index .ff-rank-scroll th:nth-child(2),.ff-stat-group th:first-child {text-align:left}
.ff-rank-scroll th a {display:inline-flex;align-items:center;min-height:32px;gap:6px;color:inherit}
.ff-ranked-player {font-weight:650;text-align:left}
.ff-ranked-player span:last-child {white-space:normal;overflow-wrap:anywhere}
.ff-rank-scroll .lb-metric-icon {width:22px;height:22px;vertical-align:middle;object-fit:contain}
.ff-rank-empty a {text-decoration:underline;text-underline-offset:4px}
.ff-rank-empty {padding:18px 0;color:var(--muted)}
.ff-player-detail {padding:clamp(12px,2vw,24px)}
.ff-detail-season {grid-template-columns:minmax(140px,200px) auto;justify-content:start;margin-block:16px}
.ff-stat-group {border-bottom:1px solid var(--stroke,#343536)}
.ff-stat-group summary {cursor:pointer;padding:15px 3px;font-weight:650}
@media(max-width:680px){
  .ff-rank-filters {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ff-rank-search {grid-column:1/-1}
  .ff-rank-filters:not(.ff-detail-season) button {grid-column:1/-1}
  .ff-rank-scroll :is(td,th) {padding-inline:8px}
}

.ff-rank-index {
  --rank-surface: #202123;
  --rank-hover: #292b2e;
  --rank-border: #45484c;
  --rank-secondary: #b6bac1;
}
html[data-brightness=light] .ff-rank-index {
  --rank-surface: #eeeef0;
  --rank-hover: #e2e4e6;
  --rank-border: #b4b8be;
  --rank-secondary: #50565e;
}
.ff-rank-index .ff-rank-scroll table {border-collapse:separate;border-spacing:0 6px}
.ff-rank-index .ff-rank-scroll :is(th,td) {border:0;text-align:center;padding:8px 12px}
.ff-rank-index .ff-rank-scroll tbody :is(th,td) {background:var(--rank-surface);height:64px;box-sizing:border-box}
.ff-rank-index .ff-rank-scroll tbody tr:is(:hover,:focus-within) > * {background:var(--rank-hover)}
.ff-rank-index .ff-rank-scroll tbody .ff-rank-place {
  border-radius:12px 0 0 12px;width:50px;
  box-shadow:inset 4px 0 0 var(--placement,transparent);
}
.ff-rank-index tr[data-place="1"] {--placement:#eab947}
.ff-rank-index tr[data-place="2"] {--placement:#aeb8c7}
.ff-rank-index tr[data-place="3"] {--placement:#c78d61}
.ff-rank-index .ff-rank-scroll tbody td:last-child {border-radius:0 12px 12px 0}
.ff-rank-index .ff-ranked-player {gap:10px;max-width:290px;text-decoration:none}
.ff-rank-index .ff-ranked-player .stat-avatar {flex:none;width:42px;height:42px;border-radius:50%;overflow:hidden}
.ff-ranked-player .stat-avatar img {display:block;width:100%;height:100%;object-fit:cover}
.ff-rank-identity {display:grid;gap:4px;line-height:1.2}
.ff-rank-identity strong {white-space:normal;overflow-wrap:anywhere}
.ff-rank-identity small,.ff-rank-deaths {color:var(--rank-secondary);font-weight:450}
.ff-rank-identity small {font-size:12px;white-space:nowrap}
.ff-rank-footer,.ff-rank-pages,.ff-ranking-links {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ff-rank-footer {justify-content:space-between;gap:14px 24px;margin-top:16px}
.ff-rank-index :is(.ff-page-step,.ff-ranking-links a) {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;
  box-sizing:border-box;padding:8px 14px;border:1px solid var(--rank-border);border-radius:10px;
  color:inherit;background:var(--rank-surface);font:inherit;font-size:14px;font-weight:600;text-decoration:none;
}
.ff-rank-index :is(.ff-rank-pages,.ff-ranking-links) svg {width:17px;height:17px;flex:none}
.ff-page-step[data-dir="prev"] svg {transform:rotate(180deg)}
.ff-rank-index .ff-page-step[aria-disabled] {color:var(--rank-secondary);background:transparent;border-color:transparent;opacity:.72}
.ff-rank-index :is(.ff-page-step,.ff-ranking-links a):any-link:hover {background:var(--rank-hover);border-color:currentColor}
.ff-rank-index :is(.ff-page-step,.ff-ranking-links a):focus-visible {outline:2px solid currentColor;outline-offset:2px}
.ff-rank-page-count {min-width:6ch;text-align:center;color:var(--rank-secondary);font-size:14px}
.ff-ranking-links {margin:0}
.ff-rank-index > .ff-ranking-links {margin-top:16px}
@media(max-width:680px){
  .ff-rank-footer {align-items:stretch;flex-direction:column}
  .ff-rank-pages {justify-content:space-between}
  .ff-rank-index .ff-ranking-links a {padding-inline:10px}
}
