/* ===============================
   RANKING LIST
=============================== */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 20px;
}

.rank-row.normal-rank {
    margin-bottom: 0;
}

.rank-card.top-rank {
    margin-bottom: 10px;
}

/* ===============================
   TOP 1~3
=============================== */



    .rank-card.top-rank.rank-1 {
        outline-color: #b388ff;
    }

    .rank-card.top-rank.rank-2 {
        outline-color: #9c7bff;
    }

    .rank-card.top-rank.rank-3 {
        outline-color: #7f63ff;
    }


.rank-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: linear-gradient( 180deg, rgba(10, 10, 16, 0.18) 0%, rgba(10, 10, 16, 0.22) 38%, rgba(10, 10, 16, 0.62) 100% );
}

    .rank-overlay .rank-num {
        font-size: 22px;
        font-weight: 800;
        color: #ffd700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .rank-overlay .rank-name {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        color: #f3e2fe;
        text-shadow: -1px -1px 0 rgba(15, 15, 20, 0.95), 1px -1px 0 rgba(15, 15, 20, 0.95), -1px 1px 0 rgba(15, 15, 20, 0.95), 1px 1px 0 rgba(15, 15, 20, 0.95), 0 2px 8px rgba(0, 0, 0, 0.65);
        word-break: keep-all;
    }

.rank-card .rank-elo {
    font-size: 14px;
    color: #ffd84d;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(255, 216, 77, 0.6);
}

/* ===============================
   NORMAL RANK
=============================== */



.rank-row .rank-num {
    font-weight: 800;
    font-size: 14px;
    color: var(--accent);
    text-align: left;
}

.rank-row .rank-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #f3e2fe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}





/* ===============================
   CLICKABLE EFFECT
=============================== */

.clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

    .clickable:hover {
        transform: translateY(-2px);
    }

    .clickable:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

.rank-card.top-rank.clickable:hover {
    box-shadow: 0 0 0 2px rgba(140, 90, 255, 0.9), 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* ===============================
   RANKING SKELETON
=============================== */

.rank-skeleton {
    position: relative;
    overflow: hidden;
    cursor: default;
    pointer-events: none;
}

    .rank-skeleton:hover,
    .rank-skeleton:active {
        transform: none;
        opacity: 1;
    }

.rank-skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: var(--skeleton-shimmer-bg);
    transform: translateX(-100%);
    animation: rankSkeletonMove 1.25s linear infinite;
}

.rank-card.top-rank.rank-skeleton {
    background: var(--skeleton-card-bg);
}

.rank-top-skeleton-overlay {
    position: absolute;
    inset: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rank-top-skeleton-num {
    width: 18px;
    height: 22px;
    border-radius: 8px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}

.rank-top-skeleton-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-top-skeleton-name {
    width: 46%;
    height: 18px;
    border-radius: 999px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}

.rank-top-skeleton-elo {
    width: 24%;
    height: 14px;
    border-radius: 999px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}

.rank-row.normal-rank.rank-skeleton {
    background: var(--skeleton-card-bg);
}

.rank-row-normal-skeleton-num {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}


.rank-row-normal-skeleton-name {
    width: 72%;
    height: 15px;
    border-radius: 999px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}

.rank-row-normal-skeleton-elo {
    justify-self: end;
    width: 46px;
    height: 14px;
    border-radius: 999px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: rankSkeletonPulse 1.2s linear infinite;
}

@keyframes rankSkeletonMove {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes rankSkeletonPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
.rank-card.top-rank {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 2;
    border-radius: 16px;
    overflow: hidden;
    background: #12121a;
    box-shadow: var(--shadow);
}

    .rank-card.top-rank::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        pointer-events: none;
        box-shadow: inset 0 0 0 2px rgba(140, 90, 255, 0.95), inset 0 0 0 4px rgba(140, 90, 255, 0.18);
        z-index: 3;
    }

    .rank-card.top-rank.rank-1::before {
        box-shadow: inset 0 0 0 2px #b388ff, inset 0 0 0 4px rgba(179, 136, 255, 0.2);
    }

    .rank-card.top-rank.rank-2::before {
        box-shadow: inset 0 0 0 2px #9c7bff, inset 0 0 0 4px rgba(156, 123, 255, 0.2);
    }

    .rank-card.top-rank.rank-3::before {
        box-shadow: inset 0 0 0 2px #7f63ff, inset 0 0 0 4px rgba(127, 99, 255, 0.2);
    }

.rank-bg {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.68);
    transform: scale(1.14);
    transform-origin: center center;
    border-radius: 14px;
}



.rank-row .rank-elo {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    color: #ffd84d;
    font-weight: 700;
}

.rank-row.normal-rank {
    display: grid;
    grid-template-columns: 28px 80px minmax(0, 1fr) max-content;
    align-items: center;
    min-height: 80px;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 9px 13px;
    gap: 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.rank-img {
    width: 80px;
    height: 53px;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-row-normal-skeleton-img {
    width: 80px;
    height: 53px;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background: var(--skeleton-card-bg);
    border: 1px solid var(--skeleton-border);
}