:root {
    --primary: #ff3b5c;
    --primary-glow: rgba(255, 59, 92, 0.4);
    --bg: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 15, 20, 0.8);
}

body {
    background-color: var(--bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 59, 92, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leaderboard-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.player-row {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    margin-bottom: 8px;
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.rank-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffae00); color: #000; box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #8e8e8e); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.score-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.top-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.podium-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--card-border);
    object-fit: cover;
}

.rank-1 .podium-avatar { width: 140px; height: 140px; border-color: #ffd700; }

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
