body {
    font-family: 'Roboto', sans-serif;
    background-color: #151719;
    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;
    align-items: center;
    animation: fadeIn 0.1s ease-in forwards;
}

/* Hide header-gem completely for dollar theme */
.header-gem {
    display: none !important;
}

.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 {
    position: relative;
    background-color: #222222;
    border-radius: 5px;
    padding: 20px;
    padding-top: 35px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-out;
    animation: fadeIn 0.1s ease-in forwards;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.podium:hover {
    transform: translateY(-5px);
}

.podium.first {
    transform: translateY(-20px);
}

.podium.first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ffd700;
    box-shadow: 0 0 100px 9px #ffd700, 0 0 25px #ffd700;
    z-index: -1;
    border-radius: 5px 5px 0 0;
    border-top: 5px solid #ffd700;
}

.podium.first:hover {
    transform: translateY(-25px);
}

.podium.second::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #c0c0c0;
    box-shadow: 0 0 100px 9px #c0c0c0, 0 0 25px #c0c0c0;
    z-index: 0;
    border-radius: 5px 5px 0 0;
    border-top: 5px solid #c0c0c0;
}

.podium.third::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #cd7f32;
    box-shadow: 0 0 100px 9px #cd7f32, 0 0 25px #cd7f32;
    z-index: 0;
    border-radius: 5px 5px 0 0;
    border-top: 5px solid #cd7f32;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    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;
}

/* Updated reward for dollar theme (green color, no gems) */
.reward {
    font-size: 1.1em;
    font-weight: bold;
    color: #37ff73;
    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: #333333;
    padding: 8px 0;
    font-weight: bold;
    color: #ffffff;
    border-radius: 5px;
    border-bottom: 2px solid #37ff73; /* Updated to match dollar green */
    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: #222222;
    border-radius: 5px;
    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: 5px;
    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: #37ff73; /* Green for dollars */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    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;
    pointer-events: auto;
    margin-bottom: 15px;
}

.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: #37ff73;
    text-shadow: 0 0 10px rgb(162 255 60 / 52%), 0 0 20px rgb(110 255 49 / 59%);
}

.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: #333333;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.1s ease-in forwards;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.previous-btn:hover {
    background-color: #222222;
}

.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: #37ff73; /* Updated to green for consistency */
}

.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: 5px;
    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%, #37ff73 50%, transparent 100%) top / 100% 2px no-repeat; /* Green gradient */
    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: #37ff73; /* Green hover */
}

.podium-rank {
    position: absolute;
    top: -10px;
    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;
}

.logo-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Dual-logo navigation – works on every page */
/* ────────────────────────────────────────────────────────────────────────── */

.dual-logos a {
    display: block;
    line-height: 0; /* remove extra space from inline-block */
}

.dual-logos .logo {
    width: 300px;
    height: 100px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 3-Logo Navigation */
/* ────────────────────────────────────────────────────────────────────────── */

.logo-wrapper.triple-logos {
    display: flex;
    gap: 60px;
    align-items: center;
}

.triple-logos a {
    display: block;
    line-height: 0;
}

.triple-logos .logo {
    width: 200px;
    height: 80px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 4-Logo Navigation (Quad) – New for Winovo */
/* ────────────────────────────────────────────────────────────────────────── */

.logo-wrapper.quad-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Tighter gap for 4 logos */
}

.quad-logos a {
    display: block;
    line-height: 0;
}

.quad-logos .logo {
    width: 220px; /* Slightly smaller base size to fit 4 */
    height: 85px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Responsive adjustments */
/* ────────────────────────────────────────────────────────────────────────── */

@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;
}

/* Hide reward-gem completely */
.reward-gem {
    display: none !important;
}

/* Podium reward alignment */
.podium .reward {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.podium .reward .reward-container {
    margin-left: 0;
}

/* Responsive – General + Logo Overrides */
@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;
        border-radius: 5px;
        padding: 20px;
        padding-top: 35px;
    }
    .podium.first::before,
    .podium.second::before,
    .podium.third::before {
        border-radius: 5px 5px 0 0;
    }
    .podium.first {
        order: 1;
    }
    .podium.second {
        order: 2;
    }
    .podium.third {
        order: 3;
    }
    .logo-menu {
        gap: 30px;
    }
    .list-container {
        max-width: 90%;
    }
    .list-header {
        font-size: 0.9em;
        border-bottom: 2px solid #37ff73;
    }
    .list-item .username {
        font-size: 0.9em;
    }
    .list-item .wager,
    .list-item .reward {
        font-size: 0.85em;
    }
    .avatar {
        width: 60px;
        height: 60px;
        border-radius: 5px;
    }
    .list-item .info img {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        left: 5px;
    }
    .podium-rank {
        top: -10px;
        width: 30px;
        height: 30px;
    }

    /* Dual logos responsive */
    .dual-logos .logo {
        width: 240px;
        height: 80px;
    }
    .logo-wrapper.dual-logos,
    .logo-menu {
        gap: 30px;
    }

    /* Triple logos responsive */
    .triple-logos .logo {
        width: 160px;
        height: 60px;
    }
    .logo-wrapper.triple-logos,
    .logo-menu {
        gap: 30px;
    }

    /* Quad logos responsive */
    .quad-logos .logo {
        width: 170px;
        height: 68px;
    }
    .logo-wrapper.quad-logos,
    .logo-menu {
        gap: 25px;
    }
}

@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;
        padding-top: 35px;
        border-radius: 5px;
    }
    .podium.first::before,
    .podium.second::before,
    .podium.third::before {
        border-radius: 5px 5px 0 0;
    }
    .podium.first {
        order: 1;
    }
    .podium.second {
        order: 2;
    }
    .podium.third {
        order: 3;
    }
    .avatar {
        width: 60px;
        height: 60px;
        border-radius: 5px;
    }
    .list-item .info img {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        left: 5px;
    }
    .list-item .placement {
        font-size: 0.9em;
        flex: 0 0 40px;
    }
    .list-item .username {
        font-size: 0.85em;
        margin-left: 45px;
    }
    .list-item .wager {
        font-size: 0.8em;
    }
    .list-item .reward {
        font-size: 0.85em;
    }
    .logo-menu {
        gap: 15px;
    }
    .countdown-container {
        font-size: 1em;
    }
    .list-container {
        max-width: 100%;
    }
    .list-header {
        font-size: 0.8em;
        border-bottom: 2px solid #37ff73;
    }
    .list-item {
        padding: 8px 0;
        min-height: 50px;
    }
    .footer-content {
        padding: 15px 0;
    }
    .footer-content p {
        font-size: 0.8em;
    }
    .podium-rank {
        top: -10px;
        width: 30px;
        height: 30px;
    }

    /* Dual logos responsive */
    .dual-logos .logo {
        width: 180px;
        height: 60px;
    }
    .logo-wrapper.dual-logos,
    .logo-menu {
        gap: 15px;
    }

    /* Triple logos responsive */
    .triple-logos .logo {
        width: 120px;
        height: 50px;
    }
    .logo-wrapper.triple-logos,
    .logo-menu {
        gap: 15px;
    }

    /* Quad logos responsive */
    .quad-logos .logo {
        width: 130px;
        height: 52px;
    }
    .logo-wrapper.quad-logos,
    .logo-menu {
        gap: 15px;
    }
}

/* Additional responsive for quad-logos on medium screens (e.g., tablets) */
@media (max-width: 1100px) and (min-width: 769px) {
    .quad-logos .logo {
        width: 190px;
        height: 75px;
    }
    .logo-wrapper.quad-logos {
        gap: 30px;
    }
}

@media (max-width: 850px) and (min-width: 769px) {
    .quad-logos .logo {
        width: 150px;
        height: 60px;
    }
    .logo-wrapper.quad-logos {
        gap: 20px;
    }
}