/* Cabeçalho: marca, botões de música, som e pausa, vidas e pontuação. */

header {
    padding: max(14px, env(safe-area-inset-top)) 16px 12px;
    color: #fff;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.brand .btxt {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        /* O nome da casa tem prioridade: quem encolhe primeiro é o do cozinheiro. */
        flex-shrink: 0;
        max-width: 100%;
    }

.brand small {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Nunito',sans-serif;
        font-weight: 700;
        font-size: 0.65rem;
        color: #cfe3f0;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

.ctrls {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.icon-btn:active {
        background: rgba(255,255,255,0.3);
    }

/* Música desligada: a nota leva um traço por cima e o botão fica mais apagado. */
#musicBtn .musicSlash { display: none; }
#musicBtn[aria-pressed="false"] .musicSlash { display: inline; }
#musicBtn[aria-pressed="false"] { opacity: 0.7; }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.hearts {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.score-box {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.95rem;
}

.score-box span {
        color: #ffd98e;
    }
