@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");

:root {
    --primary-bg: #1a1526;
    --secondary-bg: #211c2e;
    --card-bg: #2a223a;
    --accent-purple: #8e44ad;
    --accent-gold: #f39c12; /* Rank 1 */
    --accent-green: #27ae60; /* Rank 2 */
    --accent-orange: #cd7f32; /* Rank 3 */
    --text-light: #e0e0e0;
    --text-dark: #333;
    --text-muted: #a0a0a0;
    --border-color: #3b324b;
    --success-color: var(--accent-green); /* Re-using green for winnings */
    --info-color: #3498db;
    --live-red: #e74c3c;
    --top-bar-height: 66px; /* NEW: Variable for top bar height */
}

/* General Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* UPDATED FONT RULES */
    font-family: 'rawline', sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    font-weight: 400;
    
    background: linear-gradient(135deg, #1a1526 0%, #2e2444 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex; /* Added for sticky footer */
    flex-direction: column; /* Added for sticky footer */
}

/* 1. Top Branding Bar (Unchanged) */
.top-branding-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-bg);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: var(--top-bar-height); /* Set fixed height */
}
.top-branding-bar .brand-logo { display: flex; align-items: center; gap: 0.75rem; }
.top-branding-bar .brand-logo img { height: 40px; width: 40px; border-radius: 50%; background-color: var(--card-bg); border: 1px solid var(--accent-purple); }
.top-branding-bar .brand-logo h1 { font-size: 1.5rem; color: var(--accent-gold); margin: 0; font-weight: 700; letter-spacing: 0.5px; }
.top-branding-bar .stream-link { display: flex; align-items: center; gap: 0.5rem; background-color: var(--accent-purple); color: var(--text-light); padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: background-color 0.2s ease; }
.top-branding-bar .stream-link:hover { background-color: #a053c8; }
.top-branding-bar .stream-link .live-dot { width: 10px; height: 10px; background-color: var(--live-red); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } }

/* 2. Main Layout Container (Unchanged) */
.main-layout { 
    display: flex; 
    flex-grow: 1; 
    /* min-height removed, flex-grow handles it */
}

/* 3. Side Menu (UPDATED) */
.side-menu { 
    width: 240px; 
    flex-shrink: 0; 
    background-color: var(--secondary-bg); 
    border-right: 1px solid var(--border-color); 
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2); 
    /* overflow-y: auto; <-- REMOVED */
      text-align: center;

    
    /* --- NEW STYLES --- */
    position: fixed; /* <-- CHANGED from sticky */
    top: var(--top-bar-height); /* Stick below the top bar */
    height: calc(100vh - var(--top-bar-height)); /* Fill remaining height */
    /* --- END NEW STYLES --- */
}
.side-menu h3 { padding: 0 1.5rem 1rem 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.side-menu ul { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.side-menu li a { display: block; padding: 0.85rem 1.5rem; text-decoration: none; color: var(--text-light); font-weight: 500; border-left: 3px solid transparent; transition: all 0.2s ease; }
.side-menu li a:hover { background-color: var(--card-bg); border-left-color: var(--accent-purple); }
.side-menu li a.active { background-color: var(--card-bg); border-left-color: var(--accent-gold); color: var(--accent-gold); font-weight: 600; }

/* 4. Main Content Area (Unchanged) */
.content-area { 
    flex-grow: 1; 
    /* overflow-y: auto; <-- REMOVED */
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-left: 240px; /* <-- ADDED this margin */
}

/* 4b. NEW: Kick Stream Embed */
.video-stream-wrapper {
    width: 100%;
    max-width: 900px; /* Match the .leaderboard-section width */
    margin-bottom: 2rem; /* Add spacing */
    border-radius: 12px; /* Match site aesthetic */
    overflow: hidden; /* To contain the iframe's corners */
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #000; /* BG for while video loads */
}

.video-stream-wrapper iframe {
    width: 100%; /* Make it responsive */
    height: auto; /* Make it responsive */
    aspect-ratio: 16 / 9; /* Maintain 16:9 ratio */
    display: block; /* Remove bottom margin/space */
}


/* MODIFIED: Main Leaderboard Section */
.leaderboard-section {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.leaderboard-header { text-align: center; margin-bottom: 2rem; }
.leaderboard-header .prize-pool { /* This class is no longer used by default */ }
.leaderboard-header h2 { font-size: 2.2rem; color: var(--accent-gold); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.leaderboard-header p { font-size: 0.95rem; color: var(--text-muted); }

/* UPDATED: Top Players Podium */
.top-players {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    align-items: flex-end; /* Aligns cards to the bottom for the podium effect */
}

.player-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 100%;
    max-width: 220px; /* Slightly wider */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease-in-out;
}
.player-card:hover { transform: translateY(-5px); }

/* UPDATED: Rank 1 is elevated */
.player-card.rank-1 {
    transform: translateY(-20px);
    /* max-width: 240px; <-- REMOVED to match other cards */
}
.player-card.rank-1:hover { transform: translateY(-25px); } /* Keep hover effect */

.player-card .rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid var(--primary-bg);
}

.player-card .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    border: 3px solid var(--accent-purple);
    margin: 1rem auto;
    overflow: hidden;
}
.player-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card .username { font-weight: 600; font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.75rem; /* More space */ }

/* NEW: Wagered/Prize Styles */
.player-card .wagered-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.player-card .wagered-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-light); /* Wagered amount is white in image */
    margin-bottom: 1rem;
}
/* This replaces the old .button */
.player-card .prize-button {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700; /* Bolder */
    font-size: 1rem; /* Larger */
    transition: background-color 0.2s ease-in-out;
}

/* UPDATED: Card Colors (Gold, Green, Orange) */
.player-card.rank-1 .avatar { border-color: var(--accent-gold); }
.player-card.rank-1 .rank-badge { background-color: var(--accent-gold); }
.player-card.rank-1 .prize-button { background-color: var(--accent-gold); }
.player-card.rank-1 .prize-button:hover { background-color: #e0b800; }

.player-card.rank-2 .avatar { border-color: var(--accent-green); }
.player-card.rank-2 .rank-badge { background-color: var(--accent-green); }
.player-card.rank-2 .prize-button { background-color: var(--accent-green); }
.player-card.rank-2 .prize-button:hover { background-color: #2ccf70; }

.player-card.rank-3 .avatar { border-color: var(--accent-orange); }
.player-card.rank-3 .rank-badge { background-color: var(--accent-orange); }
.player-card.rank-3 .prize-button { background-color: var(--accent-orange); }
.player-card.rank-3 .prize-button:hover { background-color: #b36b2b; }

/* NEW: Countdown Timer Styles */
.countdown-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.countdown-section h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    min-width: 70px;
}
.timer-block span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}
.timer-block {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* UPDATED: Full Leaderboard Table */
.full-leaderboard {
    width: 100%;
    margin-top: 0; /* Handled by countdown margin */
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.full-leaderboard table { width: 100%; border-collapse: collapse; }
.full-leaderboard th,
.full-leaderboard td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.full-leaderboard th {
    background-color: var(--accent-purple);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
/* ADDED: Center 3rd and 4th table headers */
.full-leaderboard th:nth-child(3),
.full-leaderboard th:nth-child(4) {
    text-align: center;
}

.full-leaderboard tbody tr { transition: background-color 0.2s ease-in-out; }
.full-leaderboard tbody tr:hover { background-color: rgba(142, 68, 173, 0.1); }
.full-leaderboard tbody tr:last-child td { border-bottom: none; }

.full-leaderboard .rank-cell { font-weight: 600; color: var(--text-light); width: 10%; }
.full-leaderboard .username-cell { display: flex; align-items: center; gap: 10px; }
.full-leaderboard .username-cell .avatar-small { width: 30px; height: 30px; border-radius: 50%; background-color: var(--secondary-bg); border: 1px solid var(--border-color); overflow: hidden; }
.full-leaderboard .username-cell .avatar-small img { width: 100%; height: 100%; object-fit: cover; }

/* UPDATED: Table cell styles */
.full-leaderboard .wagered-cell {
    font-weight: bold;
    color: var(--text-light); /* Wagered is white in image */
    text-align: center; /* CHANGED from right */
    width: 25%;
}
.full-leaderboard .prize-cell {
    font-weight: bold;
    color: var(--accent-gold); /* Prize is gold */
    text-align: center; /* CHANGED from right */
    width: 20%;
}


/* MODIFIED: Rules and Eligibility */
.rules-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-top: 2rem; /* Added margin-top */
    margin-bottom: 2rem;
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.rules-section h3 { font-size: 1.4rem; color: var(--accent-gold); margin-bottom: 1rem; }
.rules-section ul { list-style: disc; padding-left: 2rem; }
.rules-section li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.5rem; }


/* --- NEW: Fading Link Styles --- */
.stream-link-wrapper {
    position: relative;
    /* Wrapper size is determined by the links inside it */
}

.stream-link-wrapper .stream-link {
    /* Apply animation to both links */
    opacity: 0;
    animation: fade-in-out 8s infinite;
    /* Center text since width is 100% on the absolute one */
    justify-content: center;
    pointer-events: none; /* <-- UPDATED: Not clickable by default */
}

.stream-link.stream-link-live {
    /* This link is in-flow to set the wrapper size */
    position: relative; 
}

.stream-link.stream-link-discord {
    /* This link stacks on top of the other one */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Match the size of the live link */
    background-color: var(--info-color);
    animation-delay: 4s; /* Start 4s into the 8s animation */
}
.stream-link.stream-link-discord:hover {
    background-color: #5dade2; /* Lighter blue */
}

/* UPDATED: The 8-second fading animation */
@keyframes fade-in-out {
    0%   { opacity: 0; pointer-events: none; }
    10%  { opacity: 1; pointer-events: auto; } /* Fade in and become clickable */
    40%  { opacity: 1; pointer-events: auto; } /* Hold and stay clickable */
    50%  { opacity: 0; pointer-events: none; } /* Fade out and become un-clickable */
    100% { opacity: 0; pointer-events: none; }
}
/* --- END: Fading Link Styles --- */


/* 5. NEW: Footer */
.main-footer {
    /* width: 100%; <-- THIS WAS THE PROBLEM. REMOVED. */
    padding: 2rem;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto; /* Pushes footer to bottom */
    flex-shrink: 0; /* Prevents footer from shrinking */
    
    /* This will also need the margin, but only for desktop */
    margin-left: 240px;
}
.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.social-links-footer a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.social-links-footer a:hover {
    color: var(--accent-gold);
}
.main-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .main-layout { flex-direction: column; min-height: 0; }
    .top-branding-bar { 
        position: sticky; /* 1. CHANGED from static */
        top: 0; 
    }
    
    /* UPDATED: Side menu on mobile */
    .side-menu { 
        width: 100%; 
        height: auto; /* Unset fixed height */
        position: sticky; /* 2. CHANGED from static */
        top: var(--top-bar-height); /* 3. ADDED: Sticks below top bar */
        z-index: 999; /* Make sure it's below top bar but above content */
        border-right: none; 
        border-bottom: 1px solid var(--border-color); 
        display: flex; 
        flex-direction: row; 
        align-items: center; 
        justify-content: center; /* Center the links */
        padding: 0.5rem 1rem; 
        overflow-y: hidden; 
    }
    .side-menu h3 { display: none; }
    .side-menu ul { display: flex; gap: 0.5rem; margin: 0; }
    .side-menu li a { padding: 0.75rem; border-left: none; border-bottom: 3px solid transparent; }
    .side-menu li a:hover { border-left: none; border-bottom-color: var(--accent-purple); }
    .side-menu li a.active { border-left: none; border-bottom-color: var(--accent-gold); }
    
    .content-area { 
        padding: 1.5rem; 
        margin-left: 0; /* <-- RESET margin for mobile */
    }

    .main-footer {
        margin-left: 0; /* <-- RESET margin for mobile */
    }

    /* NEW: Hide the video stream on mobile */
    .video-stream-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-branding-bar { padding: 0.75rem 1.5rem; }
    .top-branding-bar .brand-logo h1 { font-size: 1.2rem; }
    .top-branding-bar .stream-link { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

    /* Mobile side menu (now just nav links) */
    .side-menu {
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 0.5rem; 
    }
    .side-menu ul {
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 0.25rem;
    }

    .content-area { padding: 1rem; }
    .leaderboard-section { padding: 1rem; }
    .leaderboard-header h2 { font-size: 1.8rem; }

    /* UPDATED: Top players stack vertically */
    .top-players {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    /* Reset podium elevation for mobile */
    .player-card.rank-1 {
        transform: translateY(0);
        max-width: 250px;
        order: 1; /* <-- FIX: Stack 1st */
    }
    .player-card.rank-2 {
        order: 2; /* <-- FIX: Stack 2nd */
    }
    .player-card.rank-3 {
        order: 3; /* <-- FIX: Stack 3rd */
    }
    .player-card {
        max-width: 250px;
        padding: 1.5rem;
    }
    
    #countdown-timer { flex-wrap: wrap; gap: 0.5rem; }
    .timer-block { padding: 0.5rem; min-width: 60px; }
    .timer-block span { font-size: 1.5rem; }

    .full-leaderboard th,
    .full-leaderboard td { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .full-leaderboard .username-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
    .rules-section { padding: 1rem; }
    .rules-section h3 { font-size: 1.2rem; }
    .rules-section li { font-size: 0.85rem; padding-left: 0.5rem; }
    
    .main-footer { padding: 1.5rem 1rem; }
    .social-links-footer { gap: 1rem; }
    .social-links-footer a { font-size: 1rem; }
    .main-footer p { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .top-branding-bar .brand-logo h1 { display: none; }
    .top-branding-bar .stream-link { font-size: 0.8rem; }
    .leaderboard-header h2 { font-size: 1.5rem; }
    .player-card .username { font-size: 1rem; }
    .player-card .wagered-amount { font-size: 1.1rem; }
    .player-card .prize-button { font-size: 0.9rem; padding: 0.7rem; }
    
    #countdown-timer { gap: 0.5rem; }
    .timer-block { flex-grow: 1; } /* Make blocks fill the space */

    /* --- RESPONSIVE TABLE STYLES --- */
    .full-leaderboard {
        background-color: transparent; /* Remove table bg */
        border: none;
        box-shadow: none;
    }
    .full-leaderboard thead {
        display: none; /* Hide table headers */
    }
    .full-leaderboard table,
    .full-leaderboard tbody,
    .full-leaderboard tr,
    .full-leaderboard td {
        display: block; /* Make table elements block-level */
        width: 100%;
    }
    .full-leaderboard tr {
        margin-bottom: 1rem;
        border-radius: 8px;
        background-color: var(--card-bg); /* Each row is a card */
        border: 1px solid var(--border-color);
        overflow: hidden; /* For rounded corners */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .full-leaderboard td {
        padding: 0.75rem 1rem;
        padding-left: 45%; /* Make space for the label */
        position: relative;
        text-align: right; /* Align value to the right */
        border-bottom: 1px solid var(--border-color);
        font-size: 0.95rem;
    }
    .full-leaderboard tr:last-child td {
        border-bottom: none;
    }
    .full-leaderboard td:last-child {
        border-bottom: none;
    }
    .full-leaderboard td::before {
        content: attr(data-label); /* Get label from data-label attribute */
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 40%; /* Width of the label area */
        text-align: left;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.8rem;
    }

    /* Special handling for username cell -- THIS BLOCK WAS DELETED */
    /*
    .full-leaderboard .username-cell {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        padding-left: 45%;
    }
    */
    .full-leaderboard .username-cell .avatar-small {
        width: 25px;
        height: 25px;
    }
    /* THIS RULE WAS MODIFIED */
    .full-leaderboard .username-cell span {
        display: block; /* ADDED this */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* max-width: 120px; <-- REMOVED this */
    }

    /* Special handling for rank cell */
    .full-leaderboard .rank-cell {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .full-leaderboard .wagered-cell,
    .full-leaderboard .prize-cell {
        font-size: 0.95rem; /* Reset font size */
        text-align: right; /* ADDED: Override center-align for mobile view */
    }
    /* --- END RESPONSIVE TABLE STYLES --- */
}

/* --- ADD THIS CODE TO THE END OF YOUR style.css FILE --- */

/* --- NEW: Cleaner Home Page Styles --- */

/* 1. This styles the new single content box */
.home-content-box {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 2.5rem; /* Added more padding */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px; /* Matches video player width */
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* 2. Style the prize pool badge */
.home-prize-pool {
    display: inline-block;
    background-color: var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* 3. Style the main text */
.home-content-box h2 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.home-content-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px; /* Keep text from getting too wide */
    margin-left: auto;
    margin-right: auto;
}

/* 4. Style the muted call-to-action text */
.home-content-box .home-cta-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 5. Style the main button */
.home-cta-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.home-cta-button:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive fix */
@media (max-width: 768px) {
    .home-content-box {
        padding: 2rem 1.5rem;
    }
    .home-content-box h2 {
        font-size: 1.8rem;
    }
}

/* --- Rainbet Signup Banner - REVISED to match provided image --- */
.rainbet-banner {
    background-color: #2a2c3a; /* Darker blue-gray as in the image */
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color); /* Kept existing border style */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
    text-decoration: none; /* Remove underline from the link */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover */
}

.rainbet-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.rainbet-banner .rainbet-logo {
    width: 150px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(1.2); /* Slightly brighten the logo if needed */
}

.rainbet-banner .rainbet-promo-text {
    font-size: 0.9rem;
    color: var(--text-light); /* Lighter text for "USE CODE" */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem; /* Small gap before code */
}

.rainbet-banner .rainbet-code {
    font-size: 2.5rem; /* Large and prominent */
    font-weight: 800; /* Extra bold */
    color: var(--accent-gold); /* Gold color for the code */
    margin-bottom: 1rem; /* Space before bonus text */
    letter-spacing: 2px;
}

.rainbet-banner .rainbet-bonus-text {
    font-size: 0.95rem; /* Smaller text for bonus details */
    color: var(--text-light);
    line-height: 1.4;
}

/* Responsive for banner */
@media (max-width: 768px) {
    .rainbet-banner {
        padding: 1rem 1.5rem;
    }
    .rainbet-banner .rainbet-logo {
        width: 120px;
        margin-bottom: 0.8rem;
    }
    .rainbet-banner .rainbet-promo-text {
        font-size: 0.8rem;
    }
    .rainbet-banner .rainbet-code {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    .rainbet-banner .rainbet-bonus-text {
        font-size: 0.85rem;
    }
}
/* --- ADD THIS CODE TO THE END OF YOUR style.css FILE --- */

/* --- NEW: Leaderboard Controls --- */
.leaderboard-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.leaderboard-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.leaderboard-toggle button {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--secondary-bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.leaderboard-toggle button:first-child {
    border-right: 1px solid var(--border-color);
}

.leaderboard-toggle button:hover {
    color: var(--text-light);
    background-color: var(--card-bg);
}

.leaderboard-toggle button.active {
    background-color: var(--accent-purple);
    color: var(--text-light);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.leaderboard-toggle button .live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--live-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.leaderboard-snapshot-select select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 16px;
}

.leaderboard-snapshot-select select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.3);
}

.leaderboard-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}