/* Leaderboard - KitsuMC */
.leaderboard-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 5% 6rem;
    flex-wrap: wrap;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.rank-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2rem;
    width: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
    box-shadow: 0 4px 20px rgba(255,140,26,0.05);
}

.rank-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(255,140,26,0.05), transparent 60%);
    pointer-events: none;
}

.rank-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(255,140,26,0.15);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-header h2 { font-size: 1.5rem; font-family: var(--font-mc); margin-bottom: 2px; }
.card-header .subtitle { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Card themes */
.gold { border-top: 3px solid #ffe066; }
.gold .card-header i { color: #ffe066; filter: drop-shadow(0 0 10px rgba(255,224,102,0.5)); }

.emerald { border-top: 3px solid var(--accent); }
.emerald .card-header i { color: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); }

.purple { border-top: 3px solid #c5a8ff; }
.purple .card-header i { color: #c5a8ff; filter: drop-shadow(0 0 10px rgba(197,168,255,0.5)); }

.rank-list { display: flex; flex-direction: column; gap: 0.7rem; }

.rank-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255,140,26,0.04);
    gap: 12px;
    transition: all 0.2s var(--ease-smooth);
    border: 1px solid transparent;
}

.rank-item:hover {
    background: rgba(255,140,26,0.08);
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

.rank-item.first {
    background: linear-gradient(90deg, rgba(255,224,102,0.12), transparent);
    border: 1px solid rgba(255,224,102,0.25);
}
.rank-item.second {
    background: linear-gradient(90deg, rgba(255,160,80,0.1), transparent);
    border: 1px solid rgba(255,160,80,0.2);
}
.rank-item.third {
    background: linear-gradient(90deg, rgba(197,168,255,0.1), transparent);
    border: 1px solid rgba(197,168,255,0.2);
}

.rank {
    font-family: var(--font-mc);
    font-weight: 400;
    font-size: 1.1rem;
    width: 35px;
    text-align: center;
    color: var(--text-dim);
    flex-shrink: 0;
}

.avatar { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-subtle); }
.avatar img { width: 100%; height: 100%; }

.name { flex-grow: 1; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.value {
    font-family: var(--font-mc);
    font-weight: 400;
    color: var(--accent);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.first .rank { color: #ffe066; font-size: 1.4rem; width: 40px; }
.second .rank { color: var(--plush-light); }
.third .rank { color: #c5a8ff; }

.first .avatar { width: 44px; height: 44px; border-color: rgba(255,224,102,0.4); }
.second .avatar { width: 38px; height: 38px; }

.first .name { font-size: 1.05rem; }

@media (max-width: 800px) {
    .leaderboard-container { flex-direction: column; align-items: center; }
    .rank-card { width: 100%; max-width: 400px; }
}
