/* LegendGF Ranking — matches Official unified shell; data is loaded only via SELECT queries. */
.legendgf-ranking-page { background: #030813; color: #eef4ff; min-height: 100vh; }
.legendgf-ranking-page .portal-shell { position: relative; margin: 0 auto; max-width: 1440px; }
.rank-main { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 94px; }
.rank-hero { position: relative; padding: 18px 0 40px; }
.rank-hero::before { content: ''; pointer-events: none; position: absolute; z-index: 0; width: min(520px,90%); height: 320px; top: -80px; right: 2%; background: radial-gradient(ellipse,rgba(67, 193, 177,.12),transparent 68%); }
.rank-hero > * { position: relative; }
.rank-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #65eddd; font-size: 11px; font-weight: 900; letter-spacing: 2.5px; }
.rank-kicker-line { width: 28px; height: 1px; background: #e4b762; }
.rank-kicker-dot { display: inline-block; height: 4px; width: 4px; border-radius: 50%; background: #e4b762; }
.rank-hero h1 { margin: 18px 0 8px; color: #fff6e6; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.08; letter-spacing: -1.1px; }
.rank-hero h1::after { display: none; }
.rank-hero p { margin: 0; color: #a6b6c9; font-size: 15px; line-height: 1.7; }
.rank-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 28px; padding: 6px; border-radius: 12px; background: #0a1422; border: 1px solid #23354a; width: fit-content; max-width: 100%; }
.rank-tabs a { padding: 12px 19px; text-align: center; color: #a3b5c9; font-size: 12px; font-weight: 850; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: all .16s; }
.rank-tabs a:hover { color: #e8f6f5; background: #172c3c; }
.rank-tabs a.active { color: #071421; background: linear-gradient(135deg,#78eee1,#e4c477); box-shadow: 0 2px 18px #5fead522; }
.rank-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 18px; margin-bottom: 28px; border: 1px solid #223750; border-radius: 12px; background: #0b1525; }
.rank-field { display: flex; min-width: min(260px,100%); flex-direction: column; gap: 9px; }
.rank-field > span { font-size: 10px; color: #72eada; letter-spacing: 1.4px; font-weight: 900; }
.rank-field select, .rank-field input { width: 100%; min-height: 44px; font-family: inherit; font-size: 13px; color: #ecf5fe; border: 1px solid #36526c; border-radius: 8px; background: #07101d; padding: 11px 12px; outline: none; color-scheme: dark; }
.rank-field input:focus, .rank-field select:focus { border-color: #6ae5d9; box-shadow: 0 0 0 3px #70ebdd24; }
.rank-search { flex: 1 1 250px; }
.rank-apply { cursor: pointer; min-height: 44px; padding: 0 20px; border: none; border-radius: 8px; background: #e0b45d; color: #091523; font-weight: 900; font-size: 12px; }
.rank-apply:hover { background: #ffe199; }
.rank-reset { color: #8fcaca; text-decoration: none; font-size: 12px; padding: 13px 3px; }
.rank-table-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 12px 0 16px; }
.rank-table-topline > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rank-table-topline strong { color: #eef3fa; font-size: 11px; letter-spacing: 1.3px; }
.rank-live-indicator { width: 7px; height: 7px; border-radius: 50%; background: #69e9cf; box-shadow: 0 0 12px #65e9cf55; }
.rank-subline, .rank-count { color: #8e9fb4; font-size: 12px; }
.rank-count { background: #102238; border: 1px solid #234458; border-radius: 20px; padding: 6px 12px; }
.rank-table-scroll { overflow-x: auto; border: 1px solid #26374f; border-radius: 13px; background: #07101e; box-shadow: 0 18px 52px #0004; }
.rank-table { width: 100%; border-collapse: collapse; table-layout: auto; font-variant-numeric: tabular-nums; }
.rank-table thead { background: #0f2035; }
.rank-table th { padding: 18px 19px; font-size: 11px; font-weight: 900; text-align: left; color: #9bb0c8; letter-spacing: 1px; white-space: nowrap; }
.rank-table td { padding: 17px 19px; border-top: 1px solid #1a2a3e; font-size: 13px; color: #d6e1ee; white-space: nowrap; }
.rank-table tbody tr:hover { background: #112238; }
.rank-position { color: #d5e4f5; font-weight: 900; }
.rank-player { color: #fff6e7 !important; font-weight: 800; }
.rank-player small { display: block; color: #8da4b9; margin-top: 4px; font-size: 10px; font-weight: 500; }
.rank-score { font-weight: 900; color: #f8da8c; font-size: 14px; }
.rank-class-name { color: #83e5df; }
.rank-green { color: #6fe1af; font-weight: 900; }
.rank-muted { color: #8ca0b8; }
.rank-podium-1 { background: linear-gradient(90deg, #9d76271e, transparent 42%); }
.rank-podium-2 { background: linear-gradient(90deg, #9babb015, transparent 42%); }
.rank-podium-3 { background: linear-gradient(90deg, #ab7f5715, transparent 42%); }
.rank-alert, .rank-empty { color: #b6c6d8; border: 1px solid #29425a; border-radius: 12px; padding: 32px; text-align: center; background: #0b1929; }
.rank-alert { color: #ffd3ac; border-color: #76523c; }
.rank-footnote { font-size: 12px; color: #7c92a6; margin-top: 20px; line-height: 1.6; }
@media(max-width: 700px) {
 .rank-main { width: calc(100% - 28px); padding: 40px 0 60px; }
 .rank-hero { padding-bottom: 24px; }
 .rank-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; }
 .rank-tabs a { white-space: normal; padding: 12px 7px; }
 .rank-filters { padding: 13px; }
 .rank-field { flex: 1 1 100%; min-width: 0; }
 .rank-apply { flex: 1 1 auto; }
 .rank-table th, .rank-table td { padding: 14px 13px; }
}
@media(prefers-reduced-motion: reduce) { .rank-tabs a, .rank-apply { transition: none; } }
