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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-logo .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(241, 147, 22, 0.1);
    border: 1px solid rgba(241, 147, 22, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(241, 147, 22, 0.2);
    border-color: rgba(241, 147, 22, 0.5);
    transform: translateY(-2px);
}

.nav-link.social {
    min-width: auto;
    padding: 10px 15px;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-link.social:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

.nav-link.opensea {
    min-width: auto;
    padding: 10px 15px;
    background: rgba(32, 129, 226, 0.1);
    border-color: rgba(32, 129, 226, 0.3);
}

.nav-link.opensea:hover {
    background: rgba(32, 129, 226, 0.2);
    border-color: rgba(32, 129, 226, 0.5);
    color: #2081e2;
}

/* Game Container */
.game-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Game Canvas */
.game-canvas-container {
    position: relative;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #87ceeb 0%, #98d8e8 50%, #b0e0e6 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(241, 147, 22, 0.3);
}

#gameCanvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #87CEEB;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.start-screen, .game-over-screen {
    text-align: center;
    color: #ffffff;
    padding: 40px;
    background: rgba(15, 15, 35, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(241, 147, 22, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.start-screen h2, .game-over-screen h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.start-screen p, .game-over-screen p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.start-button, .restart-button {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.start-button:hover, .restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 147, 22, 0.4);
}

.hidden {
    display: none !important;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.stat-item i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.stat-item span {
    font-weight: 600;
    color: #ffffff;
}

/* Game Leaderboard */
.game-leaderboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(15px);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 25px;
}

.leaderboard-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.leaderboard-header p {
    color: #cbd5e1;
    font-size: 1rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(5px);
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f59e0b;
    min-width: 30px;
    text-align: center;
}

.player-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.rank-details {
    display: flex;
    align-items: center;
}

.score {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.1rem;
}

.player-icon {
    font-size: 1rem;
    margin-right: 5px;
}

.bot-player {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.2);
}

.bot-player .player-name {
    color: #9CA3AF;
}

.real-player {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.real-player .player-name {
    color: #22C55E;
    font-weight: 700;
}

.real-player:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateX(8px) scale(1.02);
}
}

.game-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.game-leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.game-leaderboard-item.current-user {
    background: rgba(241, 147, 22, 0.2);
    border: 2px solid rgba(241, 147, 22, 0.5);
    box-shadow: 0 5px 15px rgba(241, 147, 22, 0.3);
}

.game-leaderboard-item.bot-user {
    background: rgba(100, 100, 100, 0.1);
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.game-leaderboard-item.bot-user .player-name {
    color: #94a3b8;
    font-style: italic;
}

.game-leaderboard-item.real-user {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.rank-position {
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
}

.rank-position.gold { color: #ffd700; }
.rank-position.silver { color: #c0c0c0; }
.rank-position.bronze { color: #cd7f32; }

.player-name {
    flex: 1;
    font-weight: 500;
}

.player-score {
    font-weight: 700;
    color: #f59e0b;
}

/* Game Instructions */
.game-instructions {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
}

.game-instructions h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-align: center;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.instruction-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-item i {
    color: #f59e0b;
    font-size: 2rem;
    margin-bottom: 15px;
}

.instruction-item p {
    color: #cbd5e1;
    line-height: 1.6;
}

.instruction-item strong {
    color: #ffffff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .game-subtitle {
        font-size: 1rem;
    }
    
    .game-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 12px 20px;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .start-screen, .game-over-screen {
        padding: 30px 20px;
    }
    
    .start-screen h2, .game-over-screen h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        justify-content: center;
    }
}