* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ui {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    color: #0f0;
    font-size: 16px;
    text-shadow: 0 0 10px #0f0;
}

#gameCanvas {
    border: 2px solid #0f0;
    box-shadow: 0 0 20px #0f0;
    background: #000;
}

#start-screen, #game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #0f0;
    z-index: 10;
}

#start-screen h1, #game-over h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #0f0;
    animation: pulse 1.5s infinite;
}

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

#start-screen p, #game-over p {
    margin: 10px 0;
    font-size: 1rem;
}

button {
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    text-transform: uppercase;
}

button:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 20px #0f0;
}

.hidden {
    display: none !important;
}

#high-score {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Controls */
#mobile-controls {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

#mobile-controls button {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    padding: 0;
    border-radius: 50%;
    touch-action: manipulation;
}

#fire-btn {
    background: rgba(0, 255, 0, 0.2);
}

/* Show mobile controls on touch devices */
@media (hover: none) and (pointer: coarse) {
    #mobile-controls {
        display: flex;
    }
}

@media (max-width: 650px) {
    #ui {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    #start-screen h1, #game-over h1 {
        font-size: 1.8rem;
    }
    
    #mobile-controls {
        display: flex;
    }
}
