/* Bolsa de maternidade recheada (bebês e maternidade).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; couro taupe,
 * pastéis e ouro em hex direto. Nunca azul.
 *
 * Contrato:
 *  - Estado FINAL por classe estática ou @keyframes … forwards.
 *  - Movimento reduzido: cada coisa para num estado VISÍVEL.
 *  - Zíper e itens são JS (atributos no SVG), pelo relógio; aqui o brilho do
 *    bolso e o cartão (prêmio) ou o zíper fechando e o laço (sem prêmio).
 *  - Bolso da frente em (80,60) do viewBox.
 */

.mt__palco {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #FBF6F0, #EFE4D8 70%, #E6D7C7);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35);
    user-select: none;
    font-family: Arial, sans-serif;
    perspective: 700px;
}
.mt__cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* sem prêmio: o zíper fecha (a animação vence o atributo que o JS escreveu) */
.mt__boca { transform-box: view-box; transform-origin: 80px 40px; }
.mt--consolo .mt__boca { animation: mt-fecha-boca .6s ease-in forwards; }
@keyframes mt-fecha-boca { to { transform: scaleY(0); } }
.mt--consolo .mt__cursor { animation: mt-fecha-cursor .6s ease-in forwards; }
@keyframes mt-fecha-cursor { to { transform: translate(0px, 0px); } }

/* com prêmio: o brilho sai do bolso */
.mt__brilho { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.mt--premiou .mt__brilho { animation: mt-brilho 1.4s ease-out forwards; }
@keyframes mt-brilho {
    0%   { opacity: 0; transform: scale(.4); }
    30%  { opacity: 1; transform: scale(1.1); }
    100% { opacity: .55; transform: scale(1); }
}

/* ---------------- cartão flutuante (só no prêmio) ---------------- */

.mt__cartao {
    position: absolute;
    left: 50%; top: 56%;
    width: 50%; aspect-ratio: 1.8;
    box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; gap: 8%;
    padding: 3% 5%;
    border-radius: 10px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(150deg, #FFF8EE, #F8E6D6 60%, #FBEFE3);
    border: 2px solid #D4AF37;
    box-shadow: 0 0 0 1px #E9D08A, 0 0 22px 6px rgba(244, 215, 122, .55), 0 16px 26px -10px rgba(90, 60, 30, .45);
    transform: translate(-50%, -50%) scale(.1);
    opacity: 0;
    z-index: 6;
    overflow: hidden;
}
.mt__surpresa { font: italic 700 clamp(11px, 3vw, 15px)/1 Georgia, serif; color: #8A5A10; text-align: center; }
.mt__cartao-corpo { display: flex; align-items: center; gap: 10px; }
.mt__cartao-corpo img { width: 24%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid #D4AF37; background: #fff; flex: none; }
.mt__cartao-corpo small { display: block; font: 700 clamp(7px, 1.9vw, 9px)/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9A6A40; }
.mt__cartao-corpo span { display: block; margin-top: 3px; font: 700 clamp(12px, 3.4vw, 17px)/1.1 Arial, sans-serif; color: #5A3A20; overflow-wrap: anywhere; }
.mt--premiou .mt__cartao { animation: mt-cartao 1.1s .35s cubic-bezier(.3, 1.2, .5, 1) forwards; }
@keyframes mt-cartao {
    0%   { top: 56%; transform: translate(-50%, -50%) scale(.1); opacity: 0; }
    25%  { opacity: 1; }
    100% { top: 30%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.mt__faiscas { position: absolute; left: 50%; top: 30%; width: 0; height: 0; z-index: 7; pointer-events: none; }
.mt__faiscas i {
    position: absolute; left: 0; top: 0;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    background: #FFF1B8;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, .95));
    opacity: 0;
}
.mt__faiscas i:nth-child(1) { --dx: -150px; --dy: -40px; }
.mt__faiscas i:nth-child(2) { --dx: 150px;  --dy: -46px; animation-delay: .05s; }
.mt__faiscas i:nth-child(3) { --dx: -160px; --dy: 30px;  animation-delay: .1s; }
.mt__faiscas i:nth-child(4) { --dx: 160px;  --dy: 36px;  animation-delay: .07s; }
.mt__faiscas i:nth-child(5) { --dx: -40px;  --dy: -70px; animation-delay: .12s; }
.mt__faiscas i:nth-child(6) { --dx: 50px;   --dy: -66px; animation-delay: .03s; }
.mt--premiou .mt__faiscas i { animation: mt-faisca 1s 1.2s ease-out forwards; }
@keyframes mt-faisca {
    0%   { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(60deg); opacity: .9; }
}

/* ---------------- laço com a mensagem da loja (só sem prêmio) ---------------- */

.mt__laco {
    position: absolute;
    left: 50%; top: 27%;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    z-index: 6;
}
.mt__laco svg { width: 64px; height: 32px; filter: drop-shadow(0 3px 4px rgba(90, 60, 30, .3)); }
.mt__laco-texto {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #E9D08A;
    white-space: nowrap;
}
.mt__laco-texto img { width: 14px; height: 14px; }
.mt__laco-texto span { font: 700 clamp(10px, 2.7vw, 13px)/1 Georgia, serif; color: #7A5A40; }
.mt--consolo .mt__laco { animation: mt-laco .5s .6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes mt-laco { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.mt__rotulo {
    position: absolute;
    left: 2%; bottom: 2%;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--jg-14532d, #14532d);
    border: 1px solid #C9A227;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #FFF3C4;
    white-space: nowrap;
    z-index: 8;
}
.mt__rotulo img { width: 12px; height: 12px; }

/* ---------------- botão e mensagem ---------------- */

.mt__botao {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 10px auto 0;
    padding: 12px 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--jg-2aa152, #2AA152), var(--jg-0a7a00, #0A7A00));
    color: #fff;
    font: 700 15px/1.2 Arial, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 6px 14px -6px rgba(var(--jg-rgb-0a7a00, 10,122,0), .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mt__botao:hover:not(:disabled) { filter: brightness(1.06); }
.mt__botao:disabled { opacity: .55; cursor: default; }

.mt__msg {
    max-width: 480px;
    min-height: 56px;
    margin: 10px auto 0;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    text-align: center;
    font: 700 clamp(11px, 3vw, 14px)/1.35 Arial, sans-serif;
    color: #46564c;
    background: var(--jg-eef4ef, #EEF4EF);
    border: 1px solid var(--jg-dce6de, #DCE6DE);
}
.mt__msg--premiado { background: var(--jg-e3f5e6, #E3F5E6); border-color: var(--jg-9fd8ab, #9FD8AB); color: var(--jg-14532d, #14532d); }
.mt__msg--consolo  { background: #F1F3F1; border-color: #CDD5CE; color: #4F5A52; }
.mt__msg b { color: var(--jg-0a7a00, #0A7A00); }
.mt__msg--consolo b { color: #5C6B60; }

/* ---------------- vitrine ---------------- */

.mt__premios {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: 14px auto 0; max-width: 640px;
}
.mt__titulo-vitrine {
    width: 100%; text-align: center;
    font: 700 13px/1.3 Arial, sans-serif; color: var(--jg-14532d, #14532d); margin-bottom: 2px;
}
.mt__premio { width: 74px; text-align: center; font: 600 10px/1.2 Arial, sans-serif; color: #46564c; }
.mt__premio img { width: 100%; border-radius: 6px; display: block; margin-bottom: 3px; }

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .mt--consolo .mt__boca { animation: none; transform: scaleY(0); }
    .mt--consolo .mt__cursor { animation: none; transform: translate(0px, 0px); }
    .mt--premiou .mt__brilho { animation: none; opacity: .55; }
    .mt--premiou .mt__cartao { animation: none; top: 30%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .mt--premiou .mt__faiscas i { animation: none; opacity: .9; transform: translate(var(--dx), var(--dy)) scale(1) rotate(60deg); }
    .mt--consolo .mt__laco { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
