/* ==========================================
   PULSANTI 🔊 E PANNELLO SUONI (js/suoni.js)
   ========================================== */
.btn-audio {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(157, 244, 255, 0.75);
    background: rgba(11, 35, 72, 0.85);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.btn-audio:hover {
    filter: brightness(1.15);
}

/* Home: sotto il profilo, in alto a sinistra */
.btn-audio.home-audio {
    position: absolute;
    top: 52px;
    left: 12px;
    z-index: 2;
}

/* Partita: accanto al pulsante ❓ */
#schermata-gioco .btn-audio.partita-audio {
    position: absolute !important;
    top: 10px;
    left: 52px;
    z-index: 20;
}

/* Telefono: sotto il ❓, per non coprire la scritta del campo */
@media (max-width: 767px) {
    #schermata-gioco .btn-audio.partita-audio {
        top: 42px;
        left: 6px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

.pannello-audio[hidden] {
    display: none !important;
}

.pannello-audio {
    position: fixed;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 210px;
    padding: 12px;
    border: 1px solid rgba(157, 244, 255, 0.75);
    border-radius: 12px;
    background: rgba(9, 22, 48, 0.96);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    color: #e9fbff;
    font-size: 0.78rem;
    font-weight: 700;
}

.pannello-audio .audio-interruttore {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(157, 244, 255, 0.6);
    border-radius: 9px;
    background: rgba(30, 120, 170, 0.55);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
}

.pannello-audio .audio-interruttore[aria-pressed="false"] {
    background: rgba(90, 96, 112, 0.6);
}

.pannello-audio input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #3fcbff;
}

.pannello-audio input[type="range"]:disabled {
    opacity: 0.45;
}
