/* Space Invaders specific styles for touch controls */

/* Default: hide touch controls (desktop) */
#touch-controls {
    display: none;
}

/* Buttons common style */

.touch-btn {
    background: linear-gradient(#6b3bd6, #4a1f9f);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
    margin: 6px;
    touch-action: none; /* make sure gestures go to our handlers */
}

.touch-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.shoot-btn {
    width: 130px;
    height: 60px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 0 8px;
}

/* Show touch controls and hide joystick on small screens (mobile/tablet) */
@media (max-width: 768px) {
    #joystickContainer {
        display: none !important;
    }
    #touch-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-top: 12px;
        width: 100%;
        box-sizing: border-box;
        padding: 6px 12px;
        background: transparent;
    }
    /* Make buttons slightly larger text on very small screens */
    @media (max-width: 420px) {
        .touch-btn {
            font-size: 20px;
        }
    }
}
