/* Container que segura todos os controles na tela */
.ui-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none; /* Não bloqueia o toque no cenário 3D */
    font-family: sans-serif;
}

/* Ativa o toque apenas nos botões e analógico */
.ui-screen button, .joystick-zone {
    pointer-events: auto;
}

/* Área do Analógico Virtual no lado esquerdo inferior */
.joystick-zone {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.joystick-pointer {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: transform 0.05s linear;
}

/* Painel de Ações no lado direito inferior (Pular, Correr, Atacar) */
.actions-zone {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: grid;
    grid-template-columns: repeat(2, 70px);
    gap: 15px;
}

.btn-game {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(4px);
    outline: none;
    text-transform: uppercase;
}

.btn-game:active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Botão de Atacar maior ou destacado */
#btn-atacar {
    grid-column: span 2;
    width: 155px;
    border-radius: 20px;
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.4);
}
#btn-atacar:active {
    background: rgba(255, 0, 0, 0.4);
}
