#touch-controls {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

#joystick-base {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    pointer-events: auto;
    touch-action: none;
}

#joystick-stick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.7);
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(255, 140, 66, 0.5);
    pointer-events: none;
}

#action-btn {
    position: absolute;
    bottom: 50px;
    right: 35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.85);
    color: #1a1a2e;
    border: 3px solid #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.6rem;
    font-weight: bold;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#action-btn:active {
    transform: scale(0.95);
    background: rgba(255, 140, 66, 0.9);
}

@media (max-width: 480px) {
    #joystick-base {
        width: 110px;
        height: 110px;
        bottom: 20px;
        left: 20px;
    }

    #joystick-stick {
        width: 50px;
        height: 50px;
    }

    #action-btn {
        width: 78px;
        height: 78px;
        bottom: 30px;
        right: 22px;
    }
}
