/* ==========================================================================
   css/quiz.css — Enciclopédia Infantil IK Educa
   Mobile-first · Portrait · Landscape · Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   Neutraliza #game-card e #app quando o quiz está ativo
   layout.css define: #game-card { border: 4px solid #6c5ce7; padding: 20px; border-radius: 24px }
   -------------------------------------------------------------------------- */
#game-card:has(.qz-tela) {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 430px !important;
    overflow: visible !important;
}

/* #app tem min-height: 420px fixo — precisa crescer com o conteúdo */
#game-card:has(.qz-tela) #app {
    min-height: unset !important;
    height: auto !important;
    overflow: visible !important;
}

/* A tela do quiz precisa ter altura real para o scroll funcionar */
#game-card:has(.qz-tela) .qz-tela {
    min-height: 100vh;
    min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   Rodapé IK — texto simples no fluxo normal
   -------------------------------------------------------------------------- */
.qz-ik-footer {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 6px;
    flex-shrink: 0;
}

.qz-ik-footer .rodape-ik-img {
    width: min(140px, 35vw);
}

/* --------------------------------------------------------------------------
   TELA RAIZ
   -------------------------------------------------------------------------- */
.qz-tela {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-image: url('../img/fundos/fundo-continentes.webp'),
        linear-gradient(to bottom, #fbf7ec 0%, #ebe0be 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: repeat-y;
}

/* --------------------------------------------------------------------------
   CABEÇALHO
   -------------------------------------------------------------------------- */
.qz-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 48px;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 0;
    flex-shrink: 0;
}

/* Botão Voltar de imagem — especificidade (0,2,1) supera btn-nav.css (0,1,1) */
.qz-header .btn-nav--quiz-voltar {
    width: clamp(74px, 20vw, 96px);
    justify-self: start;
}

.qz-header .btn-nav--quiz-voltar img {
    width: 100%;
    height: auto;
    display: block;
}

.qz-btn-voltar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 3px solid #c9963a;
    background: #fffbe8;
    font-size: 20px;
    font-weight: 800;
    color: #5a3200;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    flex-shrink: 0;
    box-shadow: 0 4px 0 #a0721e;
    transition: transform .1s, box-shadow .1s;
}

.qz-btn-voltar:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #a0721e;
}

/* Banner do país (topo-brasil.png, etc.) — ocupa o centro */
.qz-banner-pais-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.qz-banner-pais-img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}

/* Avatar da criança */
.qz-avatar-crianca {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #c9963a;
    background: #f5e6b0;
    box-shadow: 0 4px 0 #a0721e;
    flex-shrink: 0;
    justify-self: end;
    margin-right: 2px;
}

.qz-avatar-crianca img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qz-avatar-ini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #5a3200;
}

/* --------------------------------------------------------------------------
   BOLHAS DE PROGRESSO
   -------------------------------------------------------------------------- */
.qz-prog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px 2px;
    flex-shrink: 0;
}

.qz-bolhas-row {
    display: flex;
    align-items: center;
}

.qz-bolha {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fffbe8;
    border: 3px solid #c9963a;
    color: #8a6000;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 0 #a0721e;
    transition: background .25s, transform .25s;
}

.qz-bolha--atual {
    background: #4caf1a;
    border-color: #2d7a00;
    color: #fff;
    box-shadow: 0 3px 0 #1a5200;
    transform: scale(1.18);
}

.qz-bolha--ok {
    background: #c9963a;
    border-color: #7a5800;
    color: #fff;
    box-shadow: 0 3px 0 #7a5800;
}

.qz-linha {
    width: 20px;
    height: 4px;
    background: #d9c9a0;
    border-radius: 2px;
}

.qz-linha--ok {
    background: #c9963a;
}

.qz-prog-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b4400;
    background: rgba(255, 251, 232, .85);
    padding: 2px 12px;
    border-radius: 20px;
    border: 1.5px solid #c9963a;
}

/* --------------------------------------------------------------------------
   ÁREA DE CONTEÚDO
   -------------------------------------------------------------------------- */
.qz-conteudo {
    flex: 0 0 auto;
    padding: 6px 10px 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* --------------------------------------------------------------------------
   CARD DA PERGUNTA
   -------------------------------------------------------------------------- */
.qz-card {
    background: rgba(255, 253, 240, .93);
    border-radius: 18px;
    border: 3px solid #c9963a;
    box-shadow: 0 6px 0 #a0721e, 0 10px 20px rgba(0, 0, 0, .1);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(14px) scale(.97);
    transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.4, .64, 1);
}

.qz-card--in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes qz-out {
    to {
        opacity: 0;
        transform: translateX(-20px) scale(.96);
    }
}

.qz-card--out {
    animation: qz-out .2s ease forwards;
}

/* Imagem ilustrativa */
.qz-img-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 16px 4px;
}

/* Imagem ilustrativa do miniquiz — usa quiz.png sem recorte circular */
.qz-img--redonda .qz-img-principal,
.qz-img--polaroid .qz-img-principal {
    width: 150px;
    height: auto;
    max-height: 130px;
    border-radius: 0;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

/* Pergunta */
.qz-pergunta {
    font-size: 15px;
    font-weight: 800;
    color: #3a1e00;
    text-align: center;
    margin: 0 12px 10px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   OPÇÕES — imagem PNG é o botão
   -------------------------------------------------------------------------- */
.qz-opcoes {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 8px 10px;
}

.qz-opcao {
    position: relative;
    width: 100%;
    height: 46px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform .1s, filter .1s;
}

.qz-opcao:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.qz-opcao:not(:disabled):active {
    transform: translateY(1px);
}

.qz-opcao-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 50px;
}

/* Texto centralizado verticalmente, recuado para não colidir com a letra da imagem */
.qz-opcao-txt {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 68px;
    padding-right: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #3a1e00;
    line-height: 1.3;
    text-align: left;
    pointer-events: none;
}

/* Estados pós-resposta */
.qz-correta .qz-opcao-bg {
    filter: saturate(1.4) brightness(1.05) hue-rotate(60deg);
}

.qz-errada .qz-opcao-bg {
    filter: saturate(2) brightness(.95) hue-rotate(-15deg);
}

.qz-correta .qz-opcao-txt {
    color: #1a5200;
    font-weight: 800;
}

.qz-errada .qz-opcao-txt {
    color: #7f0000;
}

/* --------------------------------------------------------------------------
   FEEDBACK
   -------------------------------------------------------------------------- */
.qz-feedback {
    margin: 0 8px 8px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.qz-hidden {
    display: none;
}

.qz-fb--ok {
    background: #d4f4c4;
    border: 2px solid #2d7a00;
    color: #1a5200;
    display: block;
}

.qz-fb--err {
    background: #fff3c4;
    border: 2px solid #c9963a;
    color: #5a3200;
    display: block;
}

/* --------------------------------------------------------------------------
   RODAPÉ
   -------------------------------------------------------------------------- */
.qz-rodape {
    position: relative;
    height: 68px;
    flex-shrink: 0;
    margin-top: 18px;
}

.qz-rodape-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.qz-rodape-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
}

.qz-acertos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.qz-acertos-titulo {
    font-size: 10px;
    font-weight: 700;
    color: #5a3200;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.qz-acertos-val {
    font-size: 20px;
    font-weight: 800;
    color: #3a1e00;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

/* --- Mobile landscape (altura ≤ 500px) ------------------------------------ */
@media (orientation: landscape) and (max-height: 500px) {

    .qz-header {
        grid-template-columns: auto minmax(0, 1fr) 40px;
        padding: 5px 10px 0;
        gap: 6px;
    }

    .qz-header .btn-nav--quiz-voltar {
        width: clamp(58px, 15vw, 72px);
    }

    .qz-banner-pais-img {
        max-height: 46px;
    }

    .qz-btn-voltar {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 10px;
        box-shadow: 0 3px 0 #a0721e;
    }

    .qz-avatar-crianca {
        width: 38px;
        height: 38px;
        box-shadow: 0 3px 0 #a0721e;
        margin-right: 0;
    }

    .qz-prog {
        padding: 3px 12px 0;
        gap: 2px;
    }

    .qz-bolhas-row {
        gap: 0;
    }

    .qz-bolha {
        width: 24px;
        height: 24px;
        font-size: 9px;
        box-shadow: 0 2px 0 #a0721e;
    }

    .qz-linha {
        width: 12px;
        height: 3px;
    }

    .qz-prog-label {
        font-size: 9px;
        padding: 1px 8px;
    }

    .qz-conteudo {
        padding: 3px 8px 0;
        flex: 0 0 auto;
        min-height: 0;
    }

    /* Grid 2 colunas: esquerda = imagem + pergunta | direita = opções */
    .qz-card {
        display: grid;
        grid-template-columns: 40% 60%;
        grid-template-rows: auto 1fr auto auto;
        border-radius: 12px;
        min-height: 0;
    }

    .qz-img-wrap {
        grid-column: 1;
        grid-row: 2;
        padding: 6px 10px 4px;
        align-self: center;
        justify-content: center;
    }

    .qz-pergunta {
        grid-column: 1;
        grid-row: 3;
        font-size: 11px;
        margin: 0 8px 6px;
        text-align: center;
    }

    .qz-opcoes {
        grid-column: 2;
        grid-row: 2 / 4;
        padding: 5px 10px 5px 4px;
        justify-content: center;
        gap: 5px;
    }

    .qz-feedback {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .qz-img--redonda .qz-img-principal,
    .qz-img--polaroid .qz-img-principal {
        width: 120px;
        height: auto;
        max-height: 108px;
        border-radius: 0;
        object-fit: contain;
        border: none;
        box-shadow: none;
    }

    .qz-opcao {
        height: 40px;
    }

    .qz-opcao-txt {
        font-size: 12px;
        padding-left: 54px;
        padding-right: 8px;
    }

    .qz-rodape {
        height: 46px;
        margin-top: 10px;
    }

    .qz-ik-footer {
        margin: 1px auto 4px;
    }

    .qz-ik-footer .rodape-ik-img {
        width: min(110px, 30vw);
    }
}

/* --- Tablet portrait / desktop portrait (> 430px) ------------------------- */
@media (min-width: 431px) and (orientation: portrait) {
    #game-card:has(.qz-tela) {
        max-width: 430px !important;
    }

    .qz-tela {
        max-width: 430px;
        margin: 0 auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* --- Tablet landscape / desktop landscape (≥ 768px) ----------------------- */
@media (min-width: 768px) and (orientation: landscape) {
    #game-card:has(.qz-tela) {
        max-width: 430px !important;
        width: 430px !important;
        overflow-y: auto !important;
        max-height: 100vh !important;
    }

    .qz-tela {
        max-width: 430px;
        width: 430px;
        margin: 0 auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .qz-card {
        display: flex;
        flex-direction: column;
    }

    .qz-img-wrap,
    .qz-pergunta,
    .qz-opcoes,
    .qz-feedback {
        grid-column: auto;
        grid-row: auto;
    }

    .qz-img--redonda .qz-img-principal,
    .qz-img--polaroid .qz-img-principal {
        width: 160px;
        height: auto;
        max-height: 140px;
        border-radius: 0;
        object-fit: contain;
        border: none;
        box-shadow: none;
    }

    .qz-opcao {
        height: 48px;
    }

    .qz-opcao-txt {
        font-size: 14px;
        padding-left: 72px;
    }

    .qz-pergunta {
        font-size: 16px;
    }
}

/* --- Desktop largo (≥ 1024px) --------------------------------------------- */
@media (min-width: 1024px) {
    #game-card:has(.qz-tela) {
        max-width: 430px !important;
        width: 430px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: 100vh !important;
    }

    .qz-tela {
        max-width: 430px;
        width: 430px;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }
}

/* ==========================================================================
   POPUPS DE FEEDBACK (acerto / erro) e VISTO FINAL
   Padrão visual com fundo-popup.webp
   ========================================================================== */

/* ---------- Overlay compartilhado ---------------------------------------- */
.popup-quiz-feedback,
.popup-final-visto {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(45, 28, 10, 0.42);
    backdrop-filter: blur(3px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.popup-quiz-feedback--in,
.popup-final-visto--in {
    opacity: 1;
    pointer-events: auto;
}

/* Popup visto final — permite scroll quando o card excede o viewport */
.popup-final-visto {
    align-items: flex-start;
    overflow-y: auto;
}

/* ---------- Card base ----------------------------------------------------- */
.popup-quiz-feedback__card,
.popup-final-visto__card {
    width: 100%;
    max-width: 360px;
    min-height: 560px;
    background-color: #fff8e8;
    background-image: url('../img/fundos/fundo-popup.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 24px 22px 22px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;

    transform: scale(0.86) translateY(12px);
    opacity: 0;
    transition: transform 0.30s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.22s ease;
}

.popup-quiz-feedback--in .popup-quiz-feedback__card,
.popup-final-visto--in .popup-final-visto__card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---------- Bordas por variante ------------------------------------------ */
.popup-quiz-feedback--acerto .popup-quiz-feedback__card {
    border: 4px solid #3f9f1b;
    box-shadow: 0 8px 0 #28720f, 0 18px 34px rgba(0, 0, 0, 0.18);
}

.popup-quiz-feedback--erro .popup-quiz-feedback__card {
    border: 4px solid #f0a31a;
    box-shadow: 0 8px 0 #cf7a00, 0 18px 34px rgba(0, 0, 0, 0.18);
}

.popup-final-visto__card {
    border: 4px solid #e2a320;
    box-shadow: 0 8px 0 #b87c10, 0 18px 34px rgba(0, 0, 0, 0.18);
    min-height: 700px;
    margin: auto 0;
}

/* ---------- Guia no topo -------------------------------------------------- */
.popup-quiz-feedback__guia {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #e1bd60;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.88);
}

/* ---------- Títulos ------------------------------------------------------- */
.popup-quiz-feedback__titulo,
.popup-final-visto__titulo {
    margin: 0 0 10px;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.popup-quiz-feedback--acerto .popup-quiz-feedback__titulo {
    font-size: 2.15rem;
    font-weight: 900;
    color: #45a312;
}

.popup-quiz-feedback--erro .popup-quiz-feedback__titulo {
    font-size: 2.15rem;
    font-weight: 900;
    color: #ef8c00;
}

.popup-final-visto__titulo {
    font-size: 1.95rem;
    font-weight: 900;
    color: #5a3200;
    margin-bottom: 8px;
}

/* ---------- Mensagens ----------------------------------------------------- */
.popup-quiz-feedback__msg,
.popup-final-visto__msg,
.popup-final-visto__submsg {
    color: #5a3200;
    margin: 0;
}

.popup-quiz-feedback__msg {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    max-width: 250px;
    margin-bottom: 8px;
}

.popup-final-visto__msg {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.28;
    max-width: 280px;
    margin-bottom: 18px;
}

.popup-final-visto__pais {
    color: #3f9f1b;
    font-weight: 900;
}

.popup-final-visto__submsg {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    max-width: 290px;
    margin-bottom: 20px;
}

/* ---------- Figurinha acerto/erro ---------------------------------------- */
.popup-quiz-feedback__figurinha {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-top: 28px;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

/* ---------- Visto final --------------------------------------------------- */
.popup-final-visto__visto {
    width: 215px;
    height: auto;
    object-fit: contain;
    margin: 4px 0 18px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

/* ---------- Botões acerto/erro ------------------------------------------- */
.popup-quiz-feedback__btn {
    width: 100%;
    margin-top: auto;
    padding: 16px 18px;
    border-radius: 999px;
    border: none;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
}

.popup-quiz-feedback__btn:hover,
.popup-final-visto__btn:hover {
    filter: brightness(1.02);
}

.popup-quiz-feedback__btn:active,
.popup-final-visto__btn:active {
    transform: translateY(2px);
}

.popup-quiz-feedback__btn--acerto {
    background: linear-gradient(180deg, #69c61d 0%, #46a312 100%);
    color: #fff;
    box-shadow: 0 6px 0 #2f7f0b;
}

.popup-quiz-feedback__btn--erro {
    background: linear-gradient(180deg, #ffb31a 0%, #f18d00 100%);
    color: #fff;
    box-shadow: 0 6px 0 #cf7a00;
}

/* ---------- Ações do popup final ----------------------------------------- */
.popup-final-visto__acoes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.popup-final-visto__btn {
    width: 100%;
    padding: 15px 16px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
}

.popup-final-visto__btn--passaporte {
    background: linear-gradient(180deg, #f2bc3d 0%, #d79b1d 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 0 #b37b10;
}

.popup-final-visto__btn--mapa {
    background: rgba(255, 252, 244, 0.98);
    color: #6b4400;
    border: 3px solid #d39b1f;
    box-shadow: 0 4px 0 #b37b10;
}

/* ---------- Mobile pequeno ------------------------------------------------ */
@media (max-width: 420px) {

    .popup-quiz-feedback,
    .popup-final-visto {
        padding: 10px;
    }

    .popup-quiz-feedback__card,
    .popup-final-visto__card {
        max-width: 340px;
        border-radius: 26px;
        padding: 20px 16px 18px;
    }

    .popup-quiz-feedback__card {
        min-height: 500px;
    }

    .popup-final-visto__card {
        min-height: 640px;
    }

    .popup-quiz-feedback__guia {
        width: 104px;
        height: 104px;
        margin-bottom: 12px;
    }

    .popup-quiz-feedback--acerto .popup-quiz-feedback__titulo,
    .popup-quiz-feedback--erro .popup-quiz-feedback__titulo {
        font-size: 1.8rem;
    }

    .popup-final-visto__titulo {
        font-size: 1.72rem;
    }

    .popup-quiz-feedback__msg,
    .popup-final-visto__msg,
    .popup-final-visto__submsg {
        font-size: 0.92rem;
    }

    .popup-quiz-feedback__msg {
        margin-bottom: 6px;
    }

    .popup-quiz-feedback__figurinha {
        width: 92px;
        height: 92px;
        margin-top: 20px;
        margin-bottom: 18px;
    }

    .popup-final-visto__visto {
        width: 185px;
        margin-bottom: 16px;
    }

    .popup-quiz-feedback__btn,
    .popup-final-visto__btn {
        font-size: 0.95rem;
        padding: 14px 14px;
    }

    .popup-quiz-feedback__btn {
        margin-top: auto;
    }
}

/* ---------- Landscape pequeno -------------------------------------------- */
@media (orientation: landscape) and (max-height: 500px) {

    .popup-quiz-feedback,
    .popup-final-visto {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .popup-quiz-feedback__card,
    .popup-final-visto__card {
        max-width: 540px;
        min-height: auto;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .popup-quiz-feedback__guia {
        width: 76px;
        height: 76px;
        margin-bottom: 8px;
    }

    .popup-quiz-feedback--acerto .popup-quiz-feedback__titulo,
    .popup-quiz-feedback--erro .popup-quiz-feedback__titulo,
    .popup-final-visto__titulo {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .popup-quiz-feedback__msg,
    .popup-final-visto__msg,
    .popup-final-visto__submsg {
        font-size: 0.84rem;
        margin-bottom: 10px;
    }

    .popup-quiz-feedback__figurinha {
        width: 70px;
        height: 70px;
        margin: 8px 0 14px;
    }

    .popup-final-visto__visto {
        width: 130px;
        margin: 4px 0 10px;
    }

    .popup-final-visto__acoes {
        gap: 8px;
    }

    .popup-quiz-feedback__btn,
    .popup-final-visto__btn {
        font-size: 0.88rem;
        padding: 12px 12px;
    }

    .popup-quiz-feedback__btn {
        margin-top: 0;
    }
}