* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.or {
    font-weight: 400;
    font-style: italic;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.goal-line {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #333;
    border-radius: 50px;
    font-weight: 600;
    color: #888;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.join-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #ffffff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 0;
}

.player-card {
    background: #141414;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rank {
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    min-width: 50px;
}

.rank.first { color: #ffd700; }
.rank.second { color: #c0c0c0; }
.rank.third { color: #cd7f32; }

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.player-stats {
    text-align: right;
}

.biggest-day {
    font-size: 2rem;
    font-weight: 900;
}

.date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.proof-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.proof-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

.progress-container {
    position: relative;
    height: 40px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    min-width: 60px;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.7);
}

/* Rainbow colors for each rank */
.color-0 { background: linear-gradient(90deg, #ff0000, #ff3333); }
.color-1 { background: linear-gradient(90deg, #ff8000, #ff9933); }
.color-2 { background: linear-gradient(90deg, #ffcc00, #ffdd33); }
.color-3 { background: linear-gradient(90deg, #00cc00, #33dd33); }
.color-4 { background: linear-gradient(90deg, #0099ff, #33aaff); }
.color-5 { background: linear-gradient(90deg, #6600cc, #8833dd); }
.color-6 { background: linear-gradient(90deg, #cc00cc, #dd33dd); }
.color-7 { background: linear-gradient(90deg, #ff0066, #ff3388); }
.color-8 { background: linear-gradient(90deg, #ff6600, #ff8833); }
.color-9 { background: linear-gradient(90deg, #99cc00, #aadd33); }

/* Glow effect matching bar color */
.glow-0 { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
.glow-1 { box-shadow: 0 0 20px rgba(255, 128, 0, 0.3); }
.glow-2 { box-shadow: 0 0 20px rgba(255, 204, 0, 0.3); }
.glow-3 { box-shadow: 0 0 20px rgba(0, 204, 0, 0.3); }
.glow-4 { box-shadow: 0 0 20px rgba(0, 153, 255, 0.3); }
.glow-5 { box-shadow: 0 0 20px rgba(102, 0, 204, 0.3); }
.glow-6 { box-shadow: 0 0 20px rgba(204, 0, 204, 0.3); }
.glow-7 { box-shadow: 0 0 20px rgba(255, 0, 102, 0.3); }
.glow-8 { box-shadow: 0 0 20px rgba(255, 102, 0, 0.3); }
.glow-9 { box-shadow: 0 0 20px rgba(153, 204, 0, 0.3); }

/* Winner state */
.player-card.winner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a1a 100%);
    border: 2px solid #ffd700;
}

.winner-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 8px 20px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #444;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .player-stats {
        text-align: left;
    }

    .biggest-day {
        font-size: 1.5rem;
    }

    .rank {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .player-name {
        font-size: 1.2rem;
    }
}
