/* Base Styles */
:root {
    --primary-color: #6f1581;
    --secondary-color: #8a1a9e;
    --accent-color: #ff9800;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --card-background: rgba(26, 26, 26, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 20px rgba(111, 21, 129, 0.5);
    --gradient-1: linear-gradient(45deg, #6f1581, #ff9800);
    --gradient-2: linear-gradient(45deg, #8a1a9e, #6f1581);
    --gradient-3: linear-gradient(45deg, #ff9800, #8a1a9e);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Enhanced Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--background-light) 0%, var(--background-dark) 100%);
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite;
    mix-blend-mode: screen;
}

.gradient-sphere:nth-child(1) {
    background: var(--gradient-1);
    width: 800px;
    height: 800px;
    top: -300px;
    left: -200px;
    animation: float1 25s infinite;
}

.gradient-sphere:nth-child(2) {
    background: var(--gradient-2);
    width: 600px;
    height: 600px;
    top: 40%;
    right: -150px;
    animation: float2 30s infinite;
}

.gradient-sphere:nth-child(3) {
    background: var(--gradient-3);
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: 40%;
    animation: float3 35s infinite;
}

/* Add a subtle grid overlay */
.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

/* Add floating particles */
.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    animation: particleFloat 15s linear infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg) scale(0.9);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-100px, -50px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(50px, -100px) rotate(240deg) scale(0.8);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(100px, -100px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) rotate(240deg) scale(0.9);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-30px) rotate(360deg);
    }
}

/* Add a subtle noise texture */
.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
    white-space: nowrap;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(111, 21, 129, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background: rgba(111, 21, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.nav-button i {
    font-size: 1.2rem;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-block {
    background: var(--card-background);
    padding: 1rem;
    border-radius: 15px;
    min-width: 80px;
    flex: 1;
    max-width: 120px;
    border: 1px solid var(--card-border);
    box-shadow: var(--neon-glow);
    transition: transform 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
}

.time-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Podium Section */
.podium-section {
    padding: 1rem 0;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.podium-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 250px;
    overflow: hidden;
    cursor: pointer;
    transform: transition-all duration-500;
}

.podium-card:hover {
    transform: translateY(-5px) scale(1.02) rotate(-1deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Add gradient overlay for each podium card */
.podium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0.4;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.podium-card:hover::before {
    opacity: 0.6;
}

/* Add animated circles */
.podium-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(to top right, rgba(255, 255, 255, 0.1), transparent);
    filter: blur(20px);
    opacity: 0.3;
    transform: scale(1);
    transition: all 0.7s ease;
    animation: pulseCircle 2s infinite;
}

.podium-card:hover::after {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Add floating particles */
.podium-card .floating-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.podium-card:hover .floating-particle {
    opacity: 0.3;
}

.podium-card .floating-particle:nth-child(1) {
    top: 20%;
    left: 20%;
    width: 16px;
    height: 16px;
    animation: floatParticle 3s infinite;
}

.podium-card .floating-particle:nth-child(2) {
    bottom: 30%;
    right: 20%;
    width: 12px;
    height: 12px;
    animation: floatParticle 3s infinite 1s;
}

.podium-card .floating-particle:nth-child(3) {
    top: 40%;
    right: 30%;
    width: 8px;
    height: 8px;
    animation: floatParticle 3s infinite 2s;
}

/* Custom styles for each podium position */
.first-place {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 3;
    margin-bottom: 2rem;
}

.first-place::after {
    background: linear-gradient(to top right, rgba(255, 215, 0, 0.2), transparent);
}

.second-place {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border: 1px solid rgba(192, 192, 192, 0.2);
    z-index: 2;
    margin-bottom: 1rem;
}

.second-place::after {
    background: linear-gradient(to top right, rgba(192, 192, 192, 0.2), transparent);
}

.third-place {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border: 1px solid rgba(205, 127, 50, 0.2);
    z-index: 1;
}

.third-place::after {
    background: linear-gradient(to top right, rgba(205, 127, 50, 0.2), transparent);
}

/* Enhanced podium avatar styles */
.podium-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

.podium-card:hover .podium-avatar {
    transform: scale(1.1) rotate(12deg);
}

/* Add pulsing border to avatar */
.podium-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulseBorder 2s infinite;
}

/* Add shimmer effect */
.podium-card .shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.podium-card:hover .shimmer {
    transform: translateX(100%);
}

/* Animations */
@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(10px);
    }
    75% {
        transform: translateY(-15px) translateX(5px);
    }
}

@keyframes pulseBorder {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Podium rank styling */
.podium-rank {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 8rem;
    color: var(--text-primary);
    opacity: 0.15;
    z-index: 1;
    transition: all 0.3s ease;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Custom styles for each rank */
.first-place .podium-rank {
    color: #FFD700;
    opacity: 0.12;
    font-size: 9rem;
}

.second-place .podium-rank {
    color: #C0C0C0;
    opacity: 0.1;
    font-size: 8.5rem;
}

.third-place .podium-rank {
    color: #CD7F32;
    opacity: 0.08;
    font-size: 8rem;
}

/* Remove the ::before pseudo-elements since we don't need them anymore */
.first-place .podium-rank::before,
.second-place .podium-rank::before,
.third-place .podium-rank::before {
    display: none;
}

/* Update hover effects */
.podium-card:hover .podium-rank {
    opacity: 0.2;
    transform: translateY(-50%) scale(1.05);
}

.first-place:hover .podium-rank {
    opacity: 0.18;
}

.second-place:hover .podium-rank {
    opacity: 0.15;
}

.third-place:hover .podium-rank {
    opacity: 0.12;
}

/* Remove the pulse animation since we want a more subtle effect */
@keyframes rankPulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.2;
    }
}

.first-place .podium-rank {
    animation: none;
}

.second-place .podium-rank {
    animation: none;
}

.third-place .podium-rank {
    animation: none;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .podium-rank {
        right: -15px;
        font-size: 6rem;
    }
    
    .first-place .podium-rank {
        font-size: 7rem;
    }
    
    .second-place .podium-rank {
        font-size: 6.5rem;
    }
    
    .third-place .podium-rank {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .podium-rank {
        right: -10px;
        font-size: 4rem;
    }
    
    .first-place .podium-rank {
        font-size: 4.5rem;
    }
    
    .second-place .podium-rank {
        font-size: 4.2rem;
    }
    
    .third-place .podium-rank {
        font-size: 4rem;
    }
}

.podium-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.podium-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.medal-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.5));
}

.first-place .podium-avatar {
    border-color: rgba(255, 215, 0, 0.3);
    animation: glow 2s infinite alternate;
}

.second-place .podium-avatar {
    border-color: rgba(192, 192, 192, 0.3);
}

.third-place .podium-avatar {
    border-color: rgba(205, 127, 50, 0.3);
}

.podium-info {
    text-align: center;
    width: 100%;
}

.podium-username {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.podium-wagered {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.podium-prize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.podium-prize i {
    color: var(--accent-color);
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

/* Leaderboard Table */
.leaderboard-section {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--card-border);
}

.table-container {
    overflow-x: auto;
}

#leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

#leaderboard-table th,
#leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

#leaderboard-table th {
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

#leaderboard-table tbody tr:hover {
    background: rgba(111, 21, 129, 0.1);
    transform: scale(1.01);
}

/* Info Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    display: block;
    opacity: 1;
}

.popup-content {
    position: relative;
    background: var(--card-background);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--neon-glow);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.info-content {
    margin-top: 1.5rem;
}

.info-list {
    list-style: none;
    margin: 1.5rem 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.info-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .podium-card {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }

    /* Header styles for tablet */
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.75rem;
    }

    .logo-container {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .nav-menu {
        justify-content: flex-end;
    }

    .nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .first-place {
        order: -1;
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    }

    .second-place {
        background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    }

    .third-place {
        background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    }

    .podium-rank {
        position: static;
        transform: none;
        margin-right: 1rem;
        width: 35px;
        height: 35px;
    }

    .podium-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }

    .podium-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }

    .podium-info {
        text-align: left;
        flex: 1;
    }

    .podium-username {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .podium-wagered {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .podium-prize {
        margin-top: 0.25rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .nav-menu {
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-button span {
        display: none;
    }

    .nav-button i {
        font-size: 1.1rem;
        margin: 0;
    }

    .podium-section {
        padding: 0.5rem 0;
        margin: 0.5rem 0;
    }

    .podium-card {
        padding: 0.75rem;
    }

    .podium-rank {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .podium-avatar {
        width: 45px;
        height: 45px;
    }

    .podium-username {
        font-size: 1rem;
    }

    .podium-wagered {
        font-size: 0.9rem;
    }

    .podium-prize {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .podium-content {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .nav-button {
        padding: 0.4rem 0.6rem;
    }

    .podium-section {
        padding: 0.5rem 0;
        margin: 0.5rem 0;
    }

    .podium-card {
        padding: 0.75rem;
    }

    .podium-rank {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .podium-avatar {
        width: 45px;
        height: 45px;
    }

    .podium-username {
        font-size: 1rem;
    }

    .podium-wagered {
        font-size: 0.9rem;
    }

    .podium-prize {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .podium-content {
        gap: 0.75rem;
    }

    .show-more-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-card,
.time-block,
.leaderboard-section {
    animation: fadeIn 0.5s ease-out forwards;
}

.podium-card:nth-child(1) { animation-delay: 0.1s; }
.podium-card:nth-child(2) { animation-delay: 0.2s; }
.podium-card:nth-child(3) { animation-delay: 0.3s; }

/* Multipliers Section */
.multipliers-section {
    margin: 1rem 0 3rem;
    padding: 0 1rem;
}

.multipliers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.multiplier-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.multiplier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.multiplier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.multiplier-header i {
    font-size: 1.3rem;
}

.multiplier-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multiplier-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.multiplier-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-name {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
}

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

.win-amount, .multiplier-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.5rem;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive adjustments for multipliers section */
@media (max-width: 1024px) {
    .multipliers-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .multiplier-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

.section-divider {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 152, 0, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    margin: 2rem auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent-color),
        transparent
    );
    opacity: 0.5;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
}

.show-more-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(111, 21, 129, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background: rgba(111, 21, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.show-more-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.show-more-button:hover i {
    transform: translateY(2px);
}

.show-more-button.hidden {
    display: none;
}

/* Rain animation background */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    background: var(--background-dark);
    background-image: 
        radial-gradient(4px 100px at 0px 235px, var(--primary-color), transparent),
        radial-gradient(4px 100px at 800px 235px, var(--primary-color), transparent),
        radial-gradient(1.5px 1.5px at 400px 117.5px, var(--accent-color) 100%, transparent 150%),
        radial-gradient(4px 100px at 200px 252px, var(--primary-color), transparent),
        radial-gradient(4px 100px at 1000px 252px, var(--primary-color), transparent),
        radial-gradient(1.5px 1.5px at 600px 126px, var(--accent-color) 100%, transparent 150%),
        radial-gradient(4px 100px at 400px 150px, var(--primary-color), transparent),
        radial-gradient(4px 100px at 1200px 150px, var(--primary-color), transparent),
        radial-gradient(1.5px 1.5px at 800px 75px, var(--accent-color) 100%, transparent 150%),
        radial-gradient(4px 100px at 600px 299px, var(--primary-color), transparent),
        radial-gradient(4px 100px at 1400px 299px, var(--primary-color), transparent),
        radial-gradient(1.5px 1.5px at 1000px 149.5px, var(--accent-color) 100%, transparent 150%),
        radial-gradient(4px 100px at 800px 215px, var(--primary-color), transparent),
        radial-gradient(4px 100px at 1600px 215px, var(--primary-color), transparent),
        radial-gradient(1.5px 1.5px at 1200px 107.5px, var(--accent-color) 100%, transparent 150%);
    background-size:
        1600px 235px,
        1600px 235px,
        1600px 235px,
        1600px 252px,
        1600px 252px,
        1600px 252px,
        1600px 150px,
        1600px 150px,
        1600px 150px,
        1600px 299px,
        1600px 299px,
        1600px 299px,
        1600px 215px,
        1600px 215px,
        1600px 215px;
    animation: rainFall 200s linear infinite;
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

@keyframes rainFall {
    0% {
        background-position:
            0px 220px,
            3px 220px,
            151.5px 337.5px,
            25px 24px,
            28px 24px,
            176.5px 150px,
            50px 16px,
            53px 16px,
            201.5px 91px,
            75px 224px,
            78px 224px,
            226.5px 350.5px,
            100px 19px,
            103px 19px,
            251.5px 121px;
    }
    100% {
        background-position:
            0px 6800px,
            3px 6800px,
            151.5px 6917.5px,
            25px 13632px,
            28px 13632px,
            176.5px 13758px,
            50px 5416px,
            53px 5416px,
            201.5px 5491px,
            75px 17175px,
            78px 17175px,
            226.5px 17301.5px,
            100px 5119px,
            103px 5119px,
            251.5px 5221px;
    }
}

/* Update container styles to accommodate the rain effect */
.container {
    position: relative;
    overflow: hidden;
}

/* Update header to ensure it's above the rain effect */
.header {
    position: relative;
    z-index: 2;
}

/* Update countdown section to ensure it's above the rain effect */
.countdown-section {
    position: relative;
    z-index: 2;
}

/* Update podium section to ensure it's above the rain effect */
.podium-section {
    position: relative;
    z-index: 2;
} 

/* Leaderboard Header Styles */
.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.leaderboard-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(111, 21, 129, 0.3);
}

.xp-info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gradient-1);
    border: none;
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    text-decoration: none;
}

.xp-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 21, 129, 0.6);
    background: var(--gradient-2);
}

.xp-info-btn i {
    font-size: 1rem;
    color: var(--accent-color);
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.last-updated:hover {
    background: rgba(111, 21, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 21, 129, 0.4);
    border-color: var(--accent-color);
}

.last-updated i {
    color: var(--accent-color);
    font-size: 1rem;
    text-shadow: 0 0 10px var(--accent-color);
}

.last-updated span {
    color: var(--text-primary);
    font-weight: 600;
}

/* XP Info Popup Styles */
.xp-info-popup {
    display: none;
}

.xp-info-popup.active {
    display: flex;
}

.xp-popup-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.xp-info-content {
    padding: 20px 0;
}

.xp-info-title {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.xp-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

.xp-scaling-info {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-background);
    border-radius: 15px;
    border: 1px solid var(--card-border);
}

.xp-scaling-info h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.xp-examples {
    list-style: none;
    padding: 0;
}

.xp-examples li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-examples li:last-child {
    border-bottom: none;
}

.example-highlight {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.xp-calculator-section {
    margin-top: 30px;
}

.xp-calculator-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.calculator-description {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.xp-calculator {
    background: var(--card-background);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    box-shadow: var(--neon-glow);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input {
    padding: 12px 16px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.calculator-result {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(111, 21, 129, 0.2);
    border-radius: 10px;
    border: 1px solid var(--accent-color);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px var(--accent-color);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--neon-glow);
}

.calculate-btn:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 21, 129, 0.6);
}

.calculate-btn i {
    color: var(--accent-color);
}

/* XP Result Animation */
@keyframes xpResultPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced input focus effects */
.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Placeholder styling */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Smooth transitions for all interactive elements */
.xp-calculator * {
    transition: all 0.3s ease;
}

/* Enhanced hover effects for calculator */
.xp-calculator:hover {
    box-shadow: 0 0 30px rgba(111, 21, 129, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .leaderboard-title {
        font-size: 2rem;
    }
    
    .last-updated {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .xp-popup-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
} 