div#container {
    padding: 3vw !important;
    display: flex;
    justify-content: center;
}

section#main {
    background: var(--color-surface);
    padding: 3vw;
    width: 100%;
    box-shadow: var(--shadow-soft);
    border-radius: 0.5vw;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-strong);
}

section#main:hover {
    box-shadow: var(--shadow-hover);
}

#header {
    margin-bottom: 3vw;
}

#header #title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#header #title h1 {
    color: var(--color-heading);
    font-size: 2.5vw;
    background: linear-gradient(135deg, #7D45FF, #FF095A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

#header #title hr {
    margin-top: 0.2vw;
    width: 3vw;
    border: 0.05vw #8B0FE8 solid;
}

#header #title h4 {
    margin-top: 0.5vw;
    color: var(--color-text-secondary);
    font-size: 1.2vw;
}

#stats-grid {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.stats-section {
    background: var(--color-surface-muted);
    padding: 2vw;
    border-radius: 0.5vw;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-strong);
}

.stats-section:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stats-section h2 {
    color: var(--color-heading);
    font-size: 1.8vw;
    margin-bottom: 1.5vw;
    padding-bottom: 0.5vw;
    border-bottom: 0.2vw solid var(--color-border-strong);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15vw, 1fr));
    gap: 1.5vw;
}

.stat-card {
    background: var(--color-surface);
    padding: 2vw;
    border-radius: 0.5vw;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0.2vw 0.8vw rgba(7, 10, 24, 0.28);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.3vw;
    background: linear-gradient(90deg, #7D45FF, #8B0FE8);
}

.stat-card.purple::before {
    background: linear-gradient(90deg, #7D45FF, #8B0FE8);
}

.stat-card.blue::before {
    background: linear-gradient(90deg, #8B0FE8, #DA1EFF);
}

.stat-card.pink::before {
    background: linear-gradient(90deg, #DA1EFF, #E80FC0);
}

.stat-card.red::before {
    background: linear-gradient(90deg, #E80FC0, #FF095A);
}

.stat-card.gradient-purple {
    background: linear-gradient(135deg, rgba(125, 69, 255, 0.1), rgba(139, 15, 232, 0.1));
}

.stat-card.gradient-blue {
    background: linear-gradient(135deg, rgba(139, 15, 232, 0.1), rgba(218, 30, 255, 0.1));
}

.stat-card.gradient-pink {
    background: linear-gradient(135deg, rgba(218, 30, 255, 0.1), rgba(255, 9, 90, 0.1));
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3vw;
    margin-bottom: 1vw;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-value {
    font-size: 2.5vw;
    font-weight: bold;
    color: var(--color-heading);
    margin-bottom: 0.5vw;
}

.stat-label {
    font-size: 1vw;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.full-width {
    grid-column: 1 / -1;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    padding: 1.5vw 2vw;
    border-radius: 0.5vw;
    box-shadow: 0 0.2vw 0.5vw rgba(7, 10, 24, 0.25);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-strong);
}

.leaderboard-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.rank {
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #8B0FE8, #DA1EFF);
    margin-right: 2vw;
    flex-shrink: 0;
}

.rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 1vw rgba(255, 215, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 0 1vw rgba(192, 192, 192, 0.5);
}

.rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    box-shadow: 0 0 1vw rgba(205, 127, 50, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.3vw;
    font-weight: bold;
    color: var(--color-heading);
    margin-bottom: 0.3vw;
}

.player-stats {
    font-size: 1vw;
    color: var(--color-text-secondary);
}

.activity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 20vw;
    background: var(--color-surface);
    padding: 2vw;
    border-radius: 0.5vw;
    gap: 1vw;
    border: 1px solid var(--color-border-strong);
    box-shadow: 0 0.2vw 0.8vw rgba(7, 10, 24, 0.25);
    transition: all 0.3s ease;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, #7D45FF, #FF095A);
    border-radius: 0.3vw 0.3vw 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 -0.2vw 0.5vw rgba(125, 69, 255, 0.3);
}

.bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 -0.3vw 1vw rgba(125, 69, 255, 0.5);
}

.bar span {
    position: absolute;
    bottom: -2vw;
    font-size: 0.9vw;
    color: var(--color-text-secondary);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    #header #title h1 {
        font-size: 4vw;
    }
    
    .stat-icon {
        font-size: 5vw;
    }
    
    .stat-value {
        font-size: 4vw;
    }
}
