#beta-container {
    position: fixed;
    right: 20px;
    top: 110px;
    z-index: 999999;
}

#beta-btn {
    width: 60px;
    height: 60px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url("../imgs/beta.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(1.15) contrast(1.1);
    transition: transform 0.2s ease;
}

#beta-btn:active {
    transform: scale(0.95);
}

#beta-tooltip {
    position: fixed;
    right: 20px;
    top: 180px;

    width: 280px;
    padding: 14px 16px;
    border-radius: 12px;

    background: radial-gradient(circle at top, #141826, #090c14);
    border: 1px solid rgba(255,255,255,0.1);
    color: #eaeaea;

    font-family: 'Arial', serif;
    font-size: 15px;
    line-height: 1.4;

    box-shadow: 0 0 30px rgba(0,0,0,0.8);

    z-index: 999999;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.25s ease;
}

#beta-tooltip strong {
    color: #ffb347;
    display: block;
    margin-bottom: 6px;
}

#beta-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ================= MEDIA QUERIES - MOBILE ================= */

/* Tablets */
@media screen and (max-width: 1024px) {
    #beta-container {
        right: 18px;
        top: 100px;
    }

    #beta-btn {
        width: 55px;
        height: 55px;
    }

    #beta-tooltip {
        right: 18px;
        top: 165px;
        width: 260px;
        padding: 13px 15px;
        font-size: 14px;
    }
}

/* Smartphones */
@media screen and (max-width: 768px) {
    #beta-container {
        right: 15px;
        top: 85px;
    }

    #beta-btn {
        width: 50px;
        height: 50px;
    }

    #beta-tooltip {
        /* Centralizar tooltip em mobile */
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        top: 145px;
        
        width: calc(100vw - 30px);
        max-width: 320px;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.5;
    }

    #beta-tooltip.active {
        transform: translateX(-50%) translateY(0);
    }

    #beta-tooltip strong {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

/* Smartphones médios */
@media screen and (max-width: 480px) {
    #beta-container {
        right: 12px;
        top: 75px;
    }

    #beta-btn {
        width: 45px;
        height: 45px;
    }

    #beta-tooltip {
        top: 130px;
        width: calc(100vw - 24px);
        max-width: 300px;
        padding: 11px 13px;
        font-size: 12px;
        border-radius: 10px;
    }

    #beta-tooltip strong {
        font-size: 13px;
        margin-bottom: 4px;
    }
}

/* Smartphones pequenos */
@media screen and (max-width: 360px) {
    #beta-container {
        right: 10px;
        top: 70px;
    }

    #beta-btn {
        width: 40px;
        height: 40px;
    }

    #beta-tooltip {
        top: 120px;
        width: calc(100vw - 20px);
        max-width: 280px;
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    #beta-tooltip strong {
        font-size: 12px;
        margin-bottom: 3px;
    }
}

/* Landscape mode - smartphones deitados */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #beta-container {
        right: 12px;
        top: 60px;
    }

    #beta-btn {
        width: 40px;
        height: 40px;
    }

    #beta-tooltip {
        top: 110px;
        width: 260px;
        padding: 10px 12px;
        font-size: 11px;
        
        /* Em landscape, manter à direita se houver espaço */
        right: 12px;
        left: auto;
        transform: translateY(10px);
    }

    #beta-tooltip.active {
        transform: translateY(0);
    }

    #beta-tooltip strong {
        font-size: 11px;
    }
}

/* Ajuste para evitar conflito com audio-toggle */
@media screen and (max-width: 768px) {
    /* Se o audio-toggle estiver no mesmo lado, ajustar posição */
    #beta-container {
        /* Alternativa: mover para o lado esquerdo */
        /* right: auto; */
        /* left: 15px; */
    }
}

/* Tablets em landscape - evitar sobreposição */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    #beta-container {
        top: 90px;
    }

    #beta-tooltip {
        top: 155px;
    }
}

/* Ajuste para telas muito altas (modo retrato) */
@media screen and (min-height: 900px) and (max-width: 768px) {
    #beta-tooltip {
        /* Posicionar mais abaixo se houver muito espaço vertical */
        top: 160px;
    }
}

/* Feedback visual melhorado para touch */
@media (hover: none) and (pointer: coarse) {
    #beta-btn:active {
        transform: scale(0.9);
        filter: brightness(1.3) contrast(1.15);
    }
}