/* Space Invaders Game Styles */

/* Game Container */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}

.game-title h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(45deg, #00ff00, #00cc00, #009900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    font-family: 'Press Start 2P', monospace;
}

.game-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 10px 0 0 0;
    font-family: 'Orbitron', sans-serif;
}

.player-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.player-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-name {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 10px;
}

/* Game Menu */
.game-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
}

.menu-content h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.menu-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-btn.primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.menu-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.6);
}

.menu-btn.secondary {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.menu-btn.secondary:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

.menu-btn.back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.menu-btn.back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    min-width: 0;
    word-wrap: break-word;
    overflow: hidden;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Canvas */
.game-canvas {
    position: relative;
    background: #000;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
    overflow: hidden;
}

#spaceInvadersCanvas {
    display: block;
    background: linear-gradient(to bottom, #000011, #000033);
}

/* Game UI Overlay */
.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
}

.score-display, .level-display, .lives-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label, .level-label, .lives-label {
    color: var(--text-secondary);
}

.score-value, .level-value, .lives-value {
    color: var(--accent-color);
    font-weight: bold;
}

/* Pause Menu */
.pause-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pause-content {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
}

.pause-content h3 {
    font-size: 2rem;
    margin: 0 0 30px 0;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pause-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pause-btn.primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
}

.pause-btn.secondary {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.pause-btn.back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

/* Game Over Screen */
.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.game-over-content {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff4444;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 68, 68, 0.4);
    max-width: 500px;
    width: 90%;
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin: 0 0 30px 0;
    color: #ff4444;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.7);
}

.final-score, .final-level {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.final-score-label, .final-level-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.final-score-value, .final-level-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff4444;
    font-family: 'Press Start 2P', monospace;
}

.game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.game-over-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-over-btn.primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
}

.game-over-btn.secondary {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.game-over-btn.back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.score-saved, .login-prompt {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
}

.score-saved {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.score-saved-text {
    color: var(--accent-color);
}

.login-prompt {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.login-prompt-text {
    color: #ffaa00;
}

.login-prompt-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.login-prompt-text a:hover {
    text-decoration: underline;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--accent-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 30px;
}

/* Instructions Modal */
.instructions-section {
    margin-bottom: 25px;
}

.instructions-section h4 {
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.instructions-section p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.instructions-section ul {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

.instructions-section li {
    margin-bottom: 8px;
}

/* Settings Modal */
.setting-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-group label {
    color: var(--text-primary);
    font-weight: bold;
    min-width: 120px;
}

.setting-select {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
}

.setting-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.setting-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.setting-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.setting-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.setting-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.setting-btn.primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
}

.setting-btn.secondary {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

/* Leaderboard Modal */
.leaderboard-content {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.leaderboard-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    min-width: 30px;
}

.leaderboard-player {
    color: var(--text-primary);
    font-weight: bold;
    flex: 1;
    margin: 0 15px;
    min-width: 100px;
}

.leaderboard-score {
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
}

.leaderboard-level {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 80px;
}

.leaderboard-aliens {
    color: var(--text-secondary);
    font-size: 0.8rem;
    min-width: 80px;
}

.no-data, .error {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.error {
    color: #ff6b6b;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
        min-height: calc(100vh - 150px);
    }
    
    .game-title h1 {
        font-size: 2rem;
    }
    
    .game-menu {
        padding: 20px;
        max-width: 90vw;
    }
    
    .menu-content h2 {
        font-size: 1.8rem;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .modal-content {
        width: 95vw;
        max-width: 500px;
        margin: 10px;
    }
    
    .setting-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .setting-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Improve touch targets */
    .menu-btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .pause-btn,
    .game-over-btn,
    .setting-btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* Improve canvas scaling */
    .game-canvas {
        max-width: 100vw;
        max-height: 60vh;
        border-width: 2px;
        position: relative;
    }
    
    #spaceInvadersCanvas {
        width: 100%;
        height: auto;
    }
    
    /* Mobile control indicators */
    .game-canvas::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, rgba(0,255,0,0.1) 0%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    .game-canvas::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255,0,0,0.1) 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Mobile control instructions */
    .mobile-controls-info {
        display: block;
        text-align: center;
        margin: 10px 0;
        padding: 10px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
    
    .mobile-controls-info::before {
        content: '📱 Mobile Controls: Left side = Move, Right side = Shoot';
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: var(--text-primary);
    }
    
    /* Better mobile controls */
    .game-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-controls .btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    /* Improve achievement notifications */
    .achievement-notification {
        max-width: 90vw;
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .achievement-title {
        font-size: 1rem;
    }
    
    .achievement-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .game-title h1 {
        font-size: 1.5rem;
    }
    
    .menu-content h2 {
        font-size: 1.4rem;
    }
    
    .menu-btn {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .pause-btn,
    .game-over-btn,
    .setting-btn {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .game-over-content h2 {
        font-size: 1.5rem;
    }
    
    .final-score-value, .final-level-value {
        font-size: 1.2rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Smaller canvas for very small screens */
    .game-canvas {
        max-width: 95vw;
        max-height: 50vh;
        border-width: 1px;
    }
    
    /* Improve touch area */
    .touch-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        cursor: pointer;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .game-container {
        padding: 5px;
        min-height: calc(100vh - 100px);
    }
    
    .game-title h1 {
        font-size: 1.5rem;
    }
    
    .game-menu {
        padding: 15px;
        max-width: 80vw;
    }
    
    .menu-content h2 {
        font-size: 1.4rem;
    }
    
    .game-canvas {
        max-width: 70vw;
        max-height: 70vh;
    }
    
    .game-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .menu-btn {
        min-height: 40px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .pause-btn,
    .game-over-btn,
    .setting-btn {
        min-height: 40px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .game-ui {
        flex-direction: row;
        gap: 8px;
        padding: 8px;
    }
    
    .game-controls {
        flex-direction: row;
        gap: 8px;
    }
    
    .game-controls .btn {
        min-height: 40px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .menu-btn,
    .pause-btn,
    .game-over-btn,
    .setting-btn,
    .game-controls .btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .menu-btn:hover,
    .pause-btn:hover,
    .game-over-btn:hover,
    .setting-btn:hover,
    .game-controls .btn:hover {
        transform: none;
    }
    
    .menu-btn:active,
    .pause-btn:active,
    .game-over-btn:active,
    .setting-btn:active,
    .game-controls .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Improve touch feedback */
    .touch-area:active {
        background: rgba(0, 255, 0, 0.1);
    }
    
    /* Prevent zoom on input focus */
    .setting-select,
    .setting-slider {
        font-size: 16px;
    }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.7); }
}

.game-menu {
    animation: glow 3s ease-in-out infinite;
}

.menu-btn:hover {
    animation: pulse 0.3s ease-in-out;
}

/* FPS Counter */
.fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    z-index: 100;
}

/* Particle Effects */
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 50;
}

/* Power-up Indicators */
.powerup-indicator {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 10px;
    color: var(--accent-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    z-index: 100;
}

.powerup-indicator.active {
    animation: pulse 1s ease-in-out infinite;
} 

/* Bullets Display */
.bullets-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Press Start 2P', monospace;
}

.bullets-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.bullets-value {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Power-up Status Display */
.power-up-status {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #ffff00;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    max-width: 200px;
}

.power-up-status .status-item {
    margin-bottom: 5px;
}

.power-up-status .status-item:last-child {
    margin-bottom: 0;
} 

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.achievement-description {
    font-size: 14px;
    opacity: 0.9;
}

/* Game Canvas Styles */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.game-canvas {
    border: 3px solid #00ff00;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.game-ui {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.game-score {
    font-size: 24px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc00, #009900);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #666, #444);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #555, #333);
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Game Over Screen */
.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.game-over h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.game-over .final-score {
    font-size: 24px;
    margin-bottom: 20px;
}

.game-over .game-over-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Loading Screen */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00ff00;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-canvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .game-container {
        padding: 15px;
    }
    
    .achievement-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
} 

/* Discord Share Button */
.game-over-btn.discord {
    background: linear-gradient(45deg, #7289da, #5865f2);
    color: white;
    border: 2px solid #7289da;
}

.game-over-btn.discord:hover {
    background: linear-gradient(45deg, #5865f2, #7289da);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.6);
} 