body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    background-image: linear-gradient(135deg, rgb(255 79 243 / 6%) 0%, /* semi-transparent purple */ rgba(18, 18, 18, 0.8) 50%, /* mostly opaque dark center */ rgb(249 121 240 / 12%) 100% /* semi-transparent pinkish purple */);
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #b0b0b0;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 5px;
    margin-top: -25px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.1s ease-in forwards;
}

.update-info {
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.podium-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 25px;
    margin-top: 55px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.podium {
    background-color: #1a1a1a;
    border-radius: 0;
    padding: 20px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    position: relative;
    animation: fadeIn 0.1s ease-in forwards;
}

.podium:hover {
    transform: translateY(-5px);
}

.podium.first {
    transform: translateY(-20px);
    border-top: 5px solid #ffd700;
}

.podium.first::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ffd700;
    box-shadow: 0 0 100px 9px #ffd700, 0 0 25px #ffd700;
    z-index: -1;
}

.podium.first:hover {
    transform: translateY(-25px);
}

.podium.second {
    border-top: 5px solid #c0c0c0;
}

.podium.second::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #c0c0c0;
    box-shadow: 0 0 100px 9px #c0c0c0, 0 0 25px #c0c0c0;
    z-index: 0;
}

.podium.third {
    border-top: 5px solid #cd7f32;
}

.podium.third::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #cd7f32;
    box-shadow: 0 0 100px 9px #cd7f32, 0 0 25px #cd7f32;
    z-index: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 0;
    margin-bottom: 10px;
    animation: fadeIn 0.1s ease-in forwards;
}

.username {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeIn 0.1s ease-in forwards;
}

.podium.first .username {
    color: #ffd700;
}

.podium.second .username {
    color: #c0c0c0;
}

.podium.third .username {
    color: #cd7f32;
}

.stats {
    font-size: 1em;
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 5px;
    animation: fadeIn 0.1s ease-in forwards;
}

.stats.wager-amount {
    font-weight: normal;
    margin-bottom: 20px;
    color: #ffffff;
}

.reward {
    font-size: 1.1em;
    font-weight: bold;
    color: #2ecc71;
    animation: fadeIn 0.1s ease-in forwards;
}

.list-container {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.list-header {
    display: flex;
    background-color: #2a2a2a;
    padding: 8px 0;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 2px solid #ea6ee1;
    animation: fadeIn 0.1s ease-in forwards;
}

.header-item {
    flex: 1;
    text-align: center;
    font-size: 1em;
}

.header-item:nth-child(1) {
    flex: 0 0 50px;
    text-align: center;
}

.header-item:nth-child(2) {
    flex: 2;
    text-align: left;
}

.header-item:nth-child(2) .player-header {
    display: inline-block;
    margin-left: 10px;
}

.header-item:nth-child(3) {
    flex: 1.5;
}

.header-item:nth-child(4) {
    flex: 1;
}

.list-item {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    margin-bottom: 8px;
    min-height: 60px;
    animation: fadeIn 0.1s ease-in forwards;
}

.list-item .placement {
    flex: 0 0 50px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item .info {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.list-item .info img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    position: absolute;
    left: 10px;
    animation: fadeIn 0.1s ease-in forwards;
}

.list-item .username {
    font-size: 1em;
    font-weight: normal;
    color: #ffffff;
    margin: 0 0 0 60px;
    text-align: left;
    overflow: visible;
    white-space: nowrap;
}

.list-item .wager {
    flex: 1.5;
    text-align: center;
    font-size: 0.9em;
    font-weight: normal;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item .reward {
    flex: 1;
    text-align: center;
    font-size: 1em;
    font-weight: normal;
    color: #2ecc71;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    display: inline-block;
    vertical-align: top;
    line-height: 100px;
}

.logo {
    width: 200px;
    height: 100px;
    margin: 0;
    display: block;
    position: relative;
    z-index: 1;
    cursor: pointer;
    animation: fadeIn 0.1s ease-in forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
    object-position: center;
}

.logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.countdown-container {
    margin: 20px 0;
    color: #ffffff;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.countdown-text {
    margin-bottom: 5px;
}

.countdown-timer {
    font-weight: bold;
    color: #b398f7;
    text-shadow: 0 0 10px rgba(251, 0, 199, 0.8), 0 0 20px rgba(133, 39, 150, 0.95);
}

.previous-leaderboard {
    margin: 20px 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.previous-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 0;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.1s ease-in forwards;
}

.previous-btn:hover {
    background-color: #d056eb;
}

.header-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    animation: fadeIn 0.1s ease-in forwards;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-links {
    display: flex;
    gap: 15px;
}

.menu-item {
    color: #ffffff;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    animation: fadeIn 0.1s ease-in forwards;
}

.menu-item:hover {
    color: #d056eb;
}

.separator {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 50%, transparent 100%);
    opacity: 0.9;
    animation: fadeIn 0.1s ease-in forwards;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username-header {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    animation: fadeIn 0.1s ease-in forwards;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0;
    animation: fadeIn 0.1s ease-in forwards;
}

.footer-content {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 2px solid transparent;
    background: linear-gradient(to right, transparent 0%, #ea6ee1 50%, transparent 100%) top / 100% 2px no-repeat;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #b0b0b0;
}

.footer-content .copyright {
    font-weight: bold;
    color: #ffffff;
}

.footer-content .disclaimer {
    font-style: italic;
    opacity: 0.8;
}

.footer-content .footer-links {
    margin-top: 10px;
}

.footer-content .footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    animation: fadeIn 0.1s ease-in forwards;
}

.footer-content .footer-links a:hover {
    color: #d056eb;
}

.podium-rank {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    z-index: 1;
    animation: fadeIn 0.1s ease-in forwards;
}

.podium.first .podium-rank {
    background-color: #ffd700;
}

.podium.second .podium-rank {
    background-color: #c0c0c0;
}

.podium.third .podium-rank {
    background-color: #cd7f32;
}

.podium {
    padding-top: 35px;
    transition: transform 0.3s ease-out;
}

.podium.first::before,
.podium.second::before,
.podium.third::before {
    top: 0;
    height: 5px;
}

.logo-menu {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin: 20px 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-menu {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .right-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 50px;
    }

    .podium {
        width: 80%;
        max-width: 300px;
    }

    .podium.first {
        order: 1;
    }

    .podium.second {
        order: 2;
    }

    .podium.third {
        order: 3;
    }

    .logo {
        width: 160px;
        height: 80px;
    }

    .logo-menu {
        gap: 30px;
    }

    .list-container {
        max-width: 90%;
    }

    .list-header {
        font-size: 0.9em;
    }

    .list-item .username {
        font-size: 0.9em;
    }

    .list-item .wager,
    .list-item .reward {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
        margin-top: -15px;
    }

    .update-info {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .header-menu {
        top: 10px;
        left: 10px;
        right: 10px;
        gap: 10px;
    }

    .right-menu {
        gap: 10px;
    }

    .menu-item {
        font-size: 0.9em;
    }

    .username-header {
        font-size: 0.9em;
    }

    .header-avatar {
        width: 30px;
        height: 30px;
    }

    .podium-container {
        margin-top: 40px;
        gap: 20px;
    }

    .podium {
        width: 90%;
        max-width: 250px;
        padding: 15px;
    }

    .podium.first {
        order: 1;
    }

    .podium.second {
        order: 2;
    }

    .podium.third {
        order: 3;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .username {
        font-size: 1em;
    }

    .stats {
        font-size: 0.9em;
    }

    .reward {
        font-size: 1em;
    }

    .logo {
        width: 120px;
        height: 60px;
    }

    .logo-menu {
        gap: 15px;
    }

    .countdown-container {
        font-size: 1em;
    }

    .list-container {
        max-width: 100%;
    }

    .list-header {
        font-size: 0.8em;
    }

    .list-item {
        padding: 8px 0;
        min-height: 50px;
    }

    .list-item .placement {
        font-size: 0.9em;
        flex: 0 0 40px;
    }

    .list-item .info img {
        width: 30px;
        height: 30px;
        left: 5px;
    }

    .list-item .username {
        font-size: 0.85em;
        margin-left: 45px;
    }

    .list-item .wager {
        font-size: 0.8em;
    }

    .list-item .reward {
        font-size: 0.85em;
    }

    .footer-content {
        padding: 15px 0;
    }

    .footer-content p {
        font-size: 0.8em;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.current-leaderboard-btn {
    display: block;
    margin: 10px auto;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.current-leaderboard-btn:hover {
    background-color: #d056eb;
}