body {
    margin: 0;
    overflow: hidden;
}

#joystick {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: rgba(68, 68, 68, 0.5);
    border-radius: 50%;
    touch-action: none;
    z-index: 10;
}

@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        min-width: 100vh;
        font-family: Arial, sans-serif;
        background-color: #222;
        color: #eee;
    }

    #joystick-container {
        width: 200px;
        height: 200px;
        bottom: 20px;
        left: 20px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        position: fixed;
        margin-bottom: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        touch-action: none;
    }

    #joystick-handle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.7);
        position: absolute;
        cursor: grab;
    }

    p {
        margin-top: 20px;
        font-size: 1.2rem;
    }

}

@media (min-width: 768px) {

    #joystick,
    #joystick-handle,
    #joystick-container,
    p {
        display: none;
        /* esconde no desktop */
    }

}