/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #0f1535;
    --accent-blue: #1a2850;
    --bright-blue: #2563eb;
    --light-blue: #3b82f6;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --success: #10b981;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--accent-blue) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-left: 1px solid rgba(37, 99, 235, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bright-blue), var(--light-blue));
    border-radius: 10px;
    border: 2px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--light-blue), var(--bright-blue));
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bright-blue) var(--primary-dark);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-icons {
    font-size: 4rem;
    color: var(--bright-blue);
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bright-blue), var(--light-blue));
    width: 0%;
    animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
    to { width: 100%; }
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 400px;
    height: 400px;
    bottom: 5%;
    left: 50%;
    animation-delay: 10s;
}

.circle-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, 40px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
        opacity: 0.6;
    }
}

/* Home Button */
.home-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--bright-blue);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.5);
}

/* Site Logo */
.site-logo {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.7));
}

/* Leaderboard Container */
.leaderboard-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 2rem 4rem;
}

/* Title Section */
.leaderboard-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-title {
    margin-bottom: 1rem;
}

.prize-pool-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.prize-pool-amount {
    color: var(--success);
    font-weight: 700;
}

/* Countdown Timer */
.timer-container {
    background: rgba(15, 21, 53, 0.8);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    margin: 3rem auto;
    max-width: 800px;
}

.timer-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bright-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--bright-blue);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.timer-time {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.timer-separator {
    font-size: 3rem;
    font-weight: 900;
    color: var(--bright-blue);
    line-height: 1;
    padding: 0 0.5rem;
}

/* Race Disabled Container */
.race-disabled-container {
    background: rgba(15, 21, 53, 0.8);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    margin: 3rem 0;
}

.disabled-card {
    max-width: 600px;
    margin: 0 auto;
}

.disabled-icon {
    font-size: 4rem;
    color: var(--bright-blue);
    margin-bottom: 1.5rem;
}

.disabled-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.disabled-line {
    width: 100px;
    height: 4px;
    background: var(--bright-blue);
    margin: 1.5rem auto;
}

.race-disabled-message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.discord-hint {
    font-size: 1.1rem;
    color: var(--light-blue);
    font-weight: 600;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Podium Section */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
}

.podium-place {
    background: rgba(15, 21, 53, 0.8);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    min-width: 280px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.podium-place:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.podium-place.first {
    order: 2;
    transform: scale(1.1);
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(15, 21, 53, 0.8));
}

.podium-place.first:hover {
    transform: scale(1.1) translateY(-10px);
}

.podium-place.second {
    order: 1;
    border-color: var(--silver);
}

.podium-place.third {
    order: 3;
    border-color: var(--bronze);
}

.podium-rank-badge {
    background: var(--bright-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.crown-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.player-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.player-avatar-placeholder.gold {
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    color: var(--primary-dark);
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wagered-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bright-blue);
    margin: 1rem 0;
}

.prize-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    margin-top: 1rem;
}

.prize-tag.gold {
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.prize-tag.silver {
    background: linear-gradient(135deg, var(--silver), #e8e8e8);
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(192, 192, 192, 0.5);
}

.prize-tag.bronze {
    background: linear-gradient(135deg, var(--bronze), #e69f5b);
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(205, 127, 50, 0.5);
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-box {
    text-align: center;
}

.stat-box-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.stat-box-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-box-value.wins {
    color: var(--success);
}

.stat-box-value.points {
    color: var(--bright-blue);
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
    background: rgba(15, 21, 53, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.leaderboard-table {
    background: rgba(15, 21, 53, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-top: 2rem;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: rgba(37, 99, 235, 0.2);
}

.leaderboard-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--bright-blue);
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.1);
}

.leaderboard-table td {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
}

.rank-number {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--bright-blue);
}

.table-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-blue), var(--light-blue));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 1rem;
    vertical-align: middle;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wager-cell {
    color: var(--bright-blue);
    font-weight: 700;
}

.prize-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--success);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
}

.no-prize {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.table-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bright-blue);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.rank-cell {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--bright-blue);
    width: 80px;
}

.rank-cell.top-three {
    color: var(--gold);
}

.player-mini-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.player-info {
    flex: 1;
}

.player-info-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wins-cell {
    color: var(--success);
    font-weight: 700;
}

.points-cell {
    color: var(--bright-blue);
    font-weight: 900;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 39, 0.8);
    border-top: 2px solid rgba(37, 99, 235, 0.3);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bright-blue), transparent);
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-brand strong {
    color: var(--light-blue);
    font-weight: 700;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 2rem;
    right: 140px;
    z-index: 110;
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--bright-blue);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-menu:hover {
    background: var(--bright-blue);
    transform: scale(1.05);
}

.hamburger-box {
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

.hamburger-menu.active .hamburger-inner {
    background: transparent;
}

.hamburger-menu.active .hamburger-inner::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-menu.active .hamburger-inner::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-dark), var(--primary-dark));
    z-index: 100;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 2px solid rgba(37, 99, 235, 0.5);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.menu-overlay.active {
    right: 0;
}

/* Menu Overlay Scrollbar */
.menu-overlay::-webkit-scrollbar {
    width: 8px;
}

.menu-overlay::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

.menu-overlay::-webkit-scrollbar-thumb {
    background: var(--bright-blue);
    border-radius: 10px;
}

.menu-overlay::-webkit-scrollbar-thumb:hover {
    background: var(--light-blue);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.menu-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bright-blue);
    letter-spacing: 2px;
}

.menu-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.menu-close:hover {
    color: var(--bright-blue);
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.menu-tab {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover,
.menu-tab.active {
    background: var(--bright-blue);
    color: white;
    border-color: var(--bright-blue);
}

/* Menu Content */
.menu-content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-card:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
    border-color: var(--bright-blue);
}

.social-card i {
    font-size: 2rem;
}

.social-card.kick:hover {
    border-color: #53fc18;
}

.social-card.twitter:hover {
    border-color: #1da1f2;
}

.social-card.discord:hover {
    border-color: #5865f2;
}

.social-card.instagram:hover {
    border-color: #e4405f;
}

/* Prizes Container */
.prizes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.prize-card {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.2);
}

.prize-card.rank-1 {
    border-color: var(--gold);
}

.prize-card.rank-2 {
    border-color: var(--silver);
}

.prize-card.rank-3 {
    border-color: var(--bronze);
}

.rank-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.rank-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.rank-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--success);
}

.prize-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-place {
        width: 100%;
        max-width: 400px;
    }

    .podium-place.first {
        order: 1;
        transform: scale(1);
    }

    .podium-place.second {
        order: 2;
    }

    .podium-place.third {
        order: 3;
    }
}

@media (max-width: 768px) {
    /* Fixed positioning for all navigation elements on mobile */
    .home-btn {
        position: absolute;
        top: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        z-index: 100;
    }

    /* Move logo to top-middle on mobile */
    .site-logo {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        height: 50px;
        z-index: 105;
    }

    /* Fixed hamburger menu on mobile */
    .hamburger-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        z-index: 110;
    }

    .menu-overlay {
        width: 90%;
        max-width: 400px;
    }

    /* Adjust container padding to account for fixed elements */
    .leaderboard-container {
        padding: 100px 1rem 2rem;
    }

    /* Timer responsive styles */
    .timer-container {
        padding: 1.5rem 1rem;
    }

    .timer-container h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .timer-grid {
        gap: 0.5rem;
    }

    .timer-box {
        min-width: 70px;
        padding: 1rem 1.5rem;
    }

    .timer-time {
        font-size: 2rem;
    }

    .timer-label {
        font-size: 0.7rem;
    }

    .timer-separator {
        font-size: 2rem;
        padding: 0 0.25rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-table {
        overflow-x: auto;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Ensure all navigation elements stay fixed on very small screens */
    .home-btn {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 100;
    }

    .site-logo {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        height: 45px;
        z-index: 105;
    }

    .hamburger-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 110;
    }

    /* Timer for very small screens */
    .timer-box {
        min-width: 60px;
        padding: 0.75rem 1rem;
    }

    .timer-time {
        font-size: 1.5rem;
    }

    .timer-label {
        font-size: 0.65rem;
    }

    .timer-separator {
        font-size: 1.5rem;
    }

    .menu-tabs {
        flex-direction: column;
    }

    .menu-tab {
        width: 100%;
    }

    .prizes-container {
        grid-template-columns: 1fr;
    }
}