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

body {
    background: #0a0a0f;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hidden {
    display: none !important;
}

#mobile-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 150;
}

#joystick-zone {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 120px;
    height: 120px;
    pointer-events: auto;
}

#joystick-base {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#joystick-stick {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.05s;
}

#fire-button {
    position: absolute;
    right: 20px;
    bottom: 30px;
    width: 90px;
    height: 90px;
    background: rgba(255, 0, 255, 0.25);
    border: 3px solid #ff00ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #ff00ff;
    pointer-events: auto;
    text-shadow: 0 0 10px #ff00ff;
}

#fire-button:active {
    background: rgba(255, 0, 255, 0.5);
    transform: scale(0.95);
}

#remix-link {
    position: fixed;
    bottom: 5px;
    right: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: color 0.2s;
}

#remix-link:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Scanline overlay for retro feel */
#game-canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media (max-width: 600px) {
    #joystick-zone {
        width: 100px;
        height: 100px;
    }
    
    #joystick-stick {
        width: 40px;
        height: 40px;
    }
    
    #fire-button {
        width: 80px;
        height: 80px;
        font-size: 10px;
    }
}