/* =========================================================
   ASHUNT RANKING PAGE
========================================================= */

:root {
    --rk-bg: #07090d;
    --rk-gold: #dca72f;
    --rk-gold-soft: #efc657;
    --rk-text: #eef2f7;
    --rk-muted: rgba(238, 242, 247, 0.6);
    --rk-line: rgba(220, 167, 47, 0.22);
    --rk-font: "Manrope", "Segoe UI", sans-serif;
    --rk-display: "Cinzel", Georgia, serif;
}

body.ashunt-ranking-body {
    min-height: 100vh;
    color: var(--rk-text);
    font-family: var(--rk-font);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(220, 167, 47, 0.12), transparent 55%),
        linear-gradient(180deg, #0b0e14 0%, var(--rk-bg) 45%, #05070a 100%);
}

.ashunt-rk-page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 160px 0 64px;
}

@media (max-width: 991px) {
    .ashunt-rk-page {
        padding-top: 72px;
    }
}

.ashunt-rk-hero {
    text-align: center;
    margin-bottom: 28px;
}

.ashunt-rk-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--rk-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ashunt-rk-hero h1 {
    margin: 0 0 10px;
    color: #fff8e8;
    font-family: var(--rk-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.ashunt-rk-hero p {
    margin: 0 auto;
    max-width: 560px;
    color: var(--rk-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.ashunt-rk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}

.ashunt-rk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(220, 167, 47, 0.22);
    background: rgba(12, 14, 18, 0.88);
    color: rgba(238, 242, 247, 0.78);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: 0.18s ease;
}

.ashunt-rk-tab:hover,
.ashunt-rk-tab.is-active {
    color: #1a1205;
    background: linear-gradient(180deg, #efc657, #c89020);
    border-color: #efc657;
}

.ashunt-rk-panel {
    border-radius: 22px;
    border: 1px solid var(--rk-line);
    background:
        radial-gradient(circle at 10% 0%, rgba(220, 167, 47, 0.08), transparent 40%),
        rgba(12, 14, 18, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.ashunt-rk-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(220, 167, 47, 0.16);
}

.ashunt-rk-panel-head h2 {
    margin: 0;
    color: #fff8e8;
    font-family: var(--rk-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.ashunt-rk-panel-head span {
    color: var(--rk-muted);
    font-size: 0.84rem;
}

.ashunt-rk-panel .public-rank-toolbar {
    --rank-line: rgba(220, 167, 47, 0.16);
}

.ashunt-rk-panel .public-rank-position {
    gap: 6px;
    padding: 0 10px;
}

.ashunt-rk-panel .public-rank-position i {
    font-size: 0.78rem;
}

.ashunt-rk-table-wrap {
    overflow-x: auto;
}

.ashunt-rk-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.ashunt-rk-table th,
.ashunt-rk-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.ashunt-rk-table th {
    color: var(--rk-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.18);
}

.ashunt-rk-table tbody tr:hover {
    background: rgba(220, 167, 47, 0.05);
}

.ashunt-rk-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(220, 167, 47, 0.25);
    background: rgba(220, 167, 47, 0.08);
    color: var(--rk-gold-soft);
    font-weight: 800;
}

.ashunt-rk-rank.is-1 {
    background: linear-gradient(180deg, #efc657, #c89020);
    border-color: #efc657;
    color: #1a1205;
}

.ashunt-rk-rank.is-2 {
    background: rgba(192, 192, 192, 0.18);
    border-color: rgba(210, 210, 210, 0.4);
    color: #e8e8e8;
}

.ashunt-rk-rank.is-3 {
    background: rgba(176, 112, 58, 0.22);
    border-color: rgba(196, 132, 72, 0.45);
    color: #f0c090;
}

.ashunt-rk-player {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ashunt-rk-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(220, 167, 47, 0.3);
    background: #0a0c10;
}

.ashunt-rk-player strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
}

.ashunt-rk-player small {
    display: block;
    color: var(--rk-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.ashunt-rk-value {
    color: var(--rk-gold-soft);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ashunt-rk-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--rk-muted);
}

@media (max-width: 720px) {
    .ashunt-rk-page {
        width: calc(100% - 20px);
    }

    .ashunt-rk-tabs {
        justify-content: flex-start;
    }
}
