/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Press Start 2P", cursive;
    background: #000;
    color: #fff;
    overflow: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hide all planets completely */
.planet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(47, 101, 88, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #6DB0A0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 18px;
    color: #DCEFEA;
    text-shadow: 0 0 10px #6DB0A0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: #DCEFEA;
    text-shadow: 0 0 5px #6DB0A0;
    border-color: #6DB0A0;
}

.game-link {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 5px;
    animation: pulse 2s infinite;
}

.discord-btn {
    background: #5865F2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* Space Background Animations */

/* Original space background styles */
#space-background-original {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

@keyframes scrollStars {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}







/* Enhanced star effects for space background */
#space-background .star {
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    animation: starTwinkle 3s infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Game Interface Layout */
.main-content {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.game-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
    margin-left: 460px; /* Offset for widened leaderboard */
}

/* Left Sidebar Leaderboard */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 460px; /* widened for alignment */
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    border-right: 3px solid #6DB0A0;
    padding: 30px 25px;
    backdrop-filter: blur(10px);
    z-index: 5;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

.leaderboard-section {
    width: 100%;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #6DB0A0;
    padding-bottom: 15px;
}

/* Leaderboard Table Header */
.leaderboard-table-header {
    display: grid;
    grid-template-columns: 1fr 70px 90px; /* player | score | time */
    justify-items: end; /* default: align to right edge */
    align-items: center;
    padding: 12px 0;
    border-bottom: 3px solid #6DB0A0;
    margin-bottom: 15px;
    background: linear-gradient(90deg, rgba(109, 176, 160, 0.2) 0%, rgba(109, 176, 160, 0.1) 100%);
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #6DB0A0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.header-rank { display: none; }

.header-rank::after { display: none; }

.header-player { text-align: left; }
.header-player { justify-self: start; }

.header-player::after { display: none; }

.header-score { text-align: right; justify-self: end; font-family: 'Press Start 2P', cursive; }

.header-score::after { display: none; }

.header-time { text-align: right; justify-self: end; font-family: 'Press Start 2P', cursive; }

.leaderboard-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #ff6b35;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trophy-icon {
    width: 28px;
    height: 28px;
    filter: brightness(1.2);
}

.leaderboard-content {
    max-height: none;         /* no inner scroll */
    overflow: visible;        /* allow page to scroll instead */
    padding-right: 0;
}

/* Custom scrollbar for leaderboard */
.leaderboard-content::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-content::-webkit-scrollbar-track {
    background: rgba(109, 176, 160, 0.1);
    border-radius: 4px;
}

.leaderboard-content::-webkit-scrollbar-thumb {
    background: #6DB0A0;
    border-radius: 4px;
}

.leaderboard-content::-webkit-scrollbar-thumb:hover {
    background: #5a9489;
}

.loading-leaderboard {
    text-align: center;
    color: #6DB0A0;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    padding: 40px 20px;
}

.leaderboard-player {
    display: grid;
    grid-template-columns: 1fr 70px 90px; /* align with header: player | score | time */
    justify-items: end; /* default right alignment; override where needed */
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(109, 176, 160, 0.2);
    font-size: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.leaderboard-player:hover {
    background: none; /* no hover background */
    border-radius: 0;
    box-shadow: none;
}

.leaderboard-player:last-child {
    border-bottom: none;
}

.player-rank-col { display: none; }

/* Ensure medal icons are uniform */
.player-rank-col img, .player-rank-col svg, .player-rank-col .medal {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.player-info-col {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    justify-self: start; /* keep player column left-aligned */
}

.player-avatar-table {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #6DB0A0;
    box-shadow: 0 0 8px rgba(109, 176, 160, 0.4);
    flex: 0 0 35px;
}

.player-name-table {
    font-size: 9px;
    line-height: 1; /* avoid vertical wobble */
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* long names won't push columns */
}

.player-score-col {
    text-align: right;
    font-size: 10px;
    color: #6DB0A0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-family: 'Press Start 2P', cursive; /* unify font */
    white-space: nowrap; /* keep on one line */
    letter-spacing: 0;   /* avoid extra spacing differences */
    justify-self: stretch;  /* take full grid cell width */
    display: block;
    width: 100%;
    margin: 0; padding: 0; /* no inner offset */
}

.player-time-col {
    text-align: right;
    font-size: 10px; /* match score size for consistent baseline */
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-family: 'Press Start 2P', cursive; /* unify font */
    white-space: nowrap; /* keep on one line */
    letter-spacing: 0;   /* avoid extra spacing differences */
    justify-self: stretch;  /* take full grid cell width */
    display: block;
    width: 100%;
    margin: 0; padding: 0; /* no inner offset */
}

/* Special styling for top 3 ranks */
.rank-1 {
    color: #FFD700 !important;
    font-size: 14px !important;
    text-shadow: 0 0 8px #FFD700;
}

.rank-2 {
    color: #C0C0C0 !important;
    font-size: 13px !important;
    text-shadow: 0 0 6px #C0C0C0;
}

.rank-3 {
    color: #CD7F32 !important;
    font-size: 12px !important;
    text-shadow: 0 0 4px #CD7F32;
}

/* Mobile responsiveness for leaderboard */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 320px;
    }
    
    .game-interface {
        margin-left: 320px;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        width: 280px;
        padding: 20px 15px;
    }
    
    .game-interface {
        margin-left: 280px;
    }
    
    .leaderboard-title {
        font-size: 12px;
    }
    
    .leaderboard-table-header {
        font-size: 6px;
        padding: 10px 0;
    }
    
    .player-avatar-table {
        width: 30px;
        height: 30px;
    }
    
    .player-name-table {
        font-size: 8px;
    }
    
    .player-score-col { font-size: 8px; width: auto; }
    
    .player-time-col { font-size: 8px; width: auto; }
    
    .header-score {
        width: auto;
    }
    
    .header-time {
        width: auto;
    }
    
    .leaderboard-player {
        font-size: 8px;
        padding: 10px 0;
    }
    
    .player-rank-col {
        width: 35px;
        margin-right: 10px;
        font-size: 10px;
    }
    
    .header-rank {
        width: 35px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .left-sidebar {
        width: 200px;
        padding: 15px 10px;
    }
    
    .game-interface {
        margin-left: 200px;
        padding: 1rem;
    }
    
    .leaderboard-title {
        font-size: 10px;
    }
    
    .leaderboard-table-header {
        font-size: 5px;
        padding: 8px 0;
    }
    
    .player-avatar-table {
        width: 25px;
        height: 25px;
    }
    
    .player-name-table {
        font-size: 6px;
    }
    
    .player-score-col { font-size: 6px; }
    
    .player-time-col { font-size: 6px; }
    
    .header-score {
        width: auto;
    }
    
    .header-time {
        width: auto;
    }
    
    .leaderboard-player {
        font-size: 6px;
        padding: 8px 0;
    }
    
    .player-rank-col {
        width: 30px;
        margin-right: 8px;
        font-size: 8px;
    }
    
    .header-rank {
        width: 30px;
        margin-right: 8px;
    }
}

/* Center Content */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.game-character {
    width: 700px;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    margin: 2rem 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
}

.game-character:hover {
    transform: none;
}

.character-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image (no cropping), keeps border uniform */
    border-radius: 0;
    box-shadow: none;
}

.clickable-game {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.clickable-game:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(108, 176, 160, 0.8);
}

/* Disable hover zoom for the start image specifically */
#start-game-image.clickable-game:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.clickable-game.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(50%);
}

.clickable-game.disabled:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(108, 176, 160, 0.5);
}

.main-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.play-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(45deg, #6DB0A0, #4a9d8e);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(109, 176, 160, 0.4);
    overflow: hidden;
}

.play-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(109, 176, 160, 0.6);
    background: linear-gradient(45deg, #4a9d8e, #6DB0A0);
}

.play-icon {
    font-size: 24px;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 239, 234, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button:hover .button-glow {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.secondary-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-btn {
    background: rgba(47, 101, 88, 0.8);
    color: white;
    border: 2px solid #6DB0A0;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-btn:hover {
    background: rgba(109, 176, 160, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(109, 176, 160, 0.3);
}

/* Auth Section */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.discord-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(45deg, #5865F2, #4752C4);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 3px solid #5865F2;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
}

.discord-login-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(88, 101, 242, 0.6);
    background: linear-gradient(45deg, #4752C4, #3c45a3);
}

.discord-icon {
    font-size: 20px;
}

/* User Profile */
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(47, 101, 88, 0.9);
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #6DB0A0;
    box-shadow: 0 10px 40px rgba(109, 176, 160, 0.3);
}

.profile-info {
    text-align: center;
}

.username {
    font-size: 18px;
    color: #DCEFEA;
    text-shadow: 0 0 10px #6DB0A0;
    margin-bottom: 0.5rem;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ff4757;
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Top Right User Info */
.top-right-user {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(47, 101, 88, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 3px solid #6DB0A0;
    box-shadow: 0 8px 30px rgba(109, 176, 160, 0.3);
    z-index: 100;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6DB0A0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    color: #000;
    background: #6DB0A0;                 /* like .icon-btn */
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow:
        inset -3px -3px 0 #4a9d8e,
        inset 3px 3px 0 #8cc7b8;         /* embossed effect */
    text-shadow: none;
    white-space: nowrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.user-info .pixel-button-yellow {
    font-size: 10px;
    padding: 8px 16px;
}

/* Pixel Button Style for all buttons */
.pixel-button {
    font-family: "Press Start 2P", cursive;
    font-size: 12px;
    background-color: #6DB0A0;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    box-shadow:
        inset -4px -4px 0 #4a7c71,
        inset 4px 4px 0 #8cc7b8;
    text-shadow: 1px 1px #ffffff;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pixel-button:hover {
    transform: scale(1.05);
    box-shadow:
        inset -4px -4px 0 #8cc7b8,
        inset 4px 4px 0 #4a7c71;
    color: #000;
    text-decoration: none;
}

.pixel-button:active {
    transform: scale(0.95);
}

/* Logout button special style */
.pixel-button-yellow {
    font-family: "Press Start 2P", cursive;
    font-size: 14px;
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    box-shadow:
        inset -4px -4px 0 #d4541f,
        inset 4px 4px 0 #ff8a5a;
    text-shadow: 1px 1px #000;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pixel-button-yellow:hover {
    transform: scale(1.05);
    box-shadow:
        inset -4px -4px 0 #ff8a5a,
        inset 4px 4px 0 #d4541f;
    color: #fff;
    text-decoration: none;
}

.pixel-button-yellow:active {
    transform: scale(0.95);
}

/* Discord login button styling - matching logout button style */
.discord-login-btn {
    font-family: "Press Start 2P", cursive !important;
    font-size: 14px !important;
    background-color: #ff6b35 !important;
    background: #ff6b35 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: 4px solid #000 !important;
    box-shadow:
        inset -4px -4px 0 #d4541f,
        inset 4px 4px 0 #ff8a5a !important;
    text-shadow: 1px 1px #000 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: transform 0.1s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
    border-radius: 12px !important;
}

.discord-login-btn:hover {
    transform: scale(1.05) !important;
    box-shadow:
        inset -4px -4px 0 #ff8a5a,
        inset 4px 4px 0 #d4541f !important;
    color: #fff !important;
    text-decoration: none !important;
    background-color: #ff6b35 !important;
    background: #ff6b35 !important;
}

.discord-login-btn:active {
    transform: scale(0.95) !important;
}

.discord-login-btn .discord-icon {
    width: 20px !important;
    height: 20px !important;
    color: inherit !important;
    fill: currentColor !important;
}

/* Game Over Screen Styles */
.game-over {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    z-index: 1000 !important;
    font-family: "Press Start 2P", cursive !important;
}

.game-over .final-score {
    font-size: 24px !important;
    color: #fff !important;
    text-shadow: 2px 2px #000 !important;
    margin-bottom: 10px !important;
}

.game-over .game-time {
    font-size: 16px !important;
    color: #fff !important;
    text-shadow: 1px 1px #000 !important;
    margin-bottom: 20px !important;
}

/* Game Over Buttons Container */
.game-over-buttons {
    position: fixed !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 20px !important;
    z-index: 1001 !important;
}

/* Game Over Button Styles */
.game-over-buttons .pixel-button {
    font-family: "Press Start 2P", cursive !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border: 4px solid #000 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: transform 0.1s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    border-radius: 12px !important;
    outline: none !important;
}

.play-again-btn {
    background-color: #6DB0A0 !important;
    color: #000 !important;
    box-shadow:
        inset -4px -4px 0 #4a9d8e,
        inset 4px 4px 0 #8cc7b8 !important;
    text-shadow: 1px 1px #fff !important;
}

.play-again-btn:hover {
    transform: scale(1.05) !important;
    box-shadow:
        inset -4px -4px 0 #8cc7b8,
        inset 4px 4px 0 #4a9d8e !important;
}

.play-again-btn:active {
    transform: scale(0.95) !important;
}

.back-home-btn {
    background-color: #ff6b35 !important;
    color: #fff !important;
    box-shadow:
        inset -4px -4px 0 #d4541f,
        inset 4px 4px 0 #ff8a5a !important;
    text-shadow: 1px 1px #000 !important;
    border-radius: 12px !important;
}

.back-home-btn:hover {
    transform: scale(1.05) !important;
    box-shadow:
        inset -4px -4px 0 #ff8a5a,
        inset 4px 4px 0 #d4541f !important;
}

.back-home-btn:active {
    transform: scale(0.95) !important;
}

/* Bottom Right Icons */
.bottom-right-icons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 20;
}

.icon-btn {
    width: 60px;
    height: 60px;
    background: #6DB0A0;
    border: none;
    box-shadow:
        inset -4px -4px 0 #4a9d8e,
        inset 4px 4px 0 #8cc7b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    color: #000;
}

.icon-btn:hover {
    transform: scale(1.05);
    box-shadow:
        inset -4px -4px 0 #8cc7b8,
        inset 4px 4px 0 #4a9d8e;
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.discord-btn:hover {
    background: #5865F2;
    color: #fff;
}

.discord-btn:hover svg {
    color: #fff;
}

.twitter-btn:hover {
    background: #000;
    color: #fff;
}

.twitter-btn:hover svg {
    color: #fff;
}

.docs-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.docs-btn:hover svg {
    color: #fff;
}

/* Game container styles */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2000;
    display: none;
    overflow: hidden;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-btn {
    background: linear-gradient(135deg, #6db0a0, #4a9d8e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 176, 160, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #4a9d8e, #6db0a0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 176, 160, 0.4);
}

/* Game-specific styles */
#space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.star-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    left: 0;
    top: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
}

.player {
    position: absolute;
    width: 60px;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1),
        rgba(200, 200, 255, 1),
        rgba(150, 150, 255, 1)
    );
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 8;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.bullet {
    position: absolute;
    width: 8px;
    height: 20px;
    background: linear-gradient(to top, #fff, #ff6b35);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    z-index: 90;
}

.trail-point {
    position: absolute;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    z-index: 80;
}

.flash {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #fffed1 50%, transparent 100%);
    pointer-events: none;
    z-index: 95;
}

.question {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    text-align: center;
    width: 80%;
    line-height: 1.5;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.answer {
    position: absolute;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 90;
    min-width: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 176, 160, 0.8);
    color: white;
    border: 2px solid #6DB0A0;
    transition: all 0.3s ease;
}

.answer:hover {
    transform: scale(1.1);
    background: rgba(109, 176, 160, 1);
}

.timer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: yellow;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.score {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    color: #6DB0A0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.question-count {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 18px;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.feedback {
    position: absolute;
    font-size: 18px;
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 110;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    z-index: 200;
    color: white;
    border: 3px solid #6DB0A0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes correct {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-character {
        width: 90%;
        height: 300px;
    }
    
    .play-button {
        padding: 1rem 2rem;
        font-size: 16px;
    }
    
    .question {
        font-size: 18px;
        width: 90%;
    }
    
    .answer {
        min-width: 60px;
        min-height: 60px;
        font-size: 12px;
    }
}
