/* ========================================
🏆 ДОСКА ПОЧЁТА — Стили
======================================== */
.leaderboard-section {
    margin-bottom: 40px;
    animation: lbFadeIn 0.6s ease;
}
.lb-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}
.lb-section-title i { color: var(--accent-primary); }

.lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lb-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.lb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}
.lb-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.6;
}

.lb-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}
.lb-card-header i { font-size: 18px; color: var(--accent-secondary); }

.lb-list { display: flex; flex-direction: column; gap: 10px; }

.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}
.lb-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateX(4px);
}

.lb-rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    flex-shrink: 0;
}
.lb-rank.gold { background: linear-gradient(135deg, #ffd700, #ffaa00); }
.lb-rank.silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.lb-rank.bronze { background: linear-gradient(135deg, #cd7f32, #b87333); }

.lb-info { flex: 1; min-width: 0; }
.lb-title {
    font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-sub { font-size: 12px; color: var(--text-muted); }

.lb-stats { display: flex; flex-direction: column; gap: 12px; }
.lb-stat-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; background: rgba(255,255,255,0.03); border-radius: 10px;
}
.lb-stat-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
}
.lb-stat-val { font-size: 18px; font-weight: 700; color: var(--text-main); }
.lb-stat-label { font-size: 12px; color: var(--text-muted); }

/* Анимация появления */
@keyframes lbFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .lb-grid { grid-template-columns: 1fr; }
}