/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    /* Evita scroll no mobile */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* UI Sobreposta (Heads Up Display) */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Deixa o toque passar para a cena A-Frame na maior parte da tela */
    z-index: 9999;
    /* Garante que fique acima do <canvas> */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#status-message {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    align-self: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

#score-display {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    align-self: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* A-Frame injeta estilos no body, mas garantimos que a cena ocupe tudo */
a-scene {
    width: 100vw;
    height: 100vh;
}

/* Controles de Transformação */
#controls-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    /* Reativa o clique nesta área */
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.control-group label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.control-group button {
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-group button:active {
    background: #0056b3;
    transform: scale(0.95);
}