/* Compartimento secreto (moda, calçados e acessórios; bolsas).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; couro, cetim,
 * metal do zíper, cartão metalizado 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.
 *  - Câmera (scale, origem no zíper, sem will-change) e zíper são JS, pelo
 *    relógio; aqui o cartão metalizado que sai girando (só no prêmio).
 *  - Zíper em y 50 do viewBox → 45,5%.
 */

.bz__palco {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    overflow: hidden;
    background: #1C110D;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
    user-select: none;
    font-family: Arial, sans-serif;
    perspective: 700px;
}
.bz__camera { position: absolute; inset: 0; transform-origin: 50% 50%; }
.bz__cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.bz__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;
}
.bz__rotulo img { width: 12px; height: 12px; }

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

.bz__cartao {
    position: absolute;
    left: 50%; top: 56%;
    width: 50%; aspect-ratio: 1.6;
    transform: translate(-50%, -50%) scale(.2) rotateY(0deg);
    transform-style: preserve-3d;
    opacity: 0;
    z-index: 6;
}
.bz__cartao-face {
    position: absolute; inset: 0;
    box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; gap: 8%;
    padding: 6% 7%;
    border-radius: 10px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75) 45%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(160deg, #FBFAF7, #D5D9D7 45%, #F3F1EC 70%, #C5C9C7);
    border: 2px solid #D4AF37;
    box-shadow: 0 0 0 1px #9A7414, 0 16px 26px -10px rgba(0, 0, 0, .6), 0 0 22px 6px rgba(255, 214, 90, .45);
}
.bz__cartao-face b {
    font: italic 700 clamp(13px, 3.6vw, 18px)/1 Georgia, 'Times New Roman', serif;
    background: linear-gradient(180deg, #E0B43A, #9A7414);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.bz__cartao-linha { display: flex; align-items: center; gap: 8px; }
.bz__cartao-linha img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 2px solid #D4AF37; background: #fff; flex: none; }
.bz__cartao-linha small { display: block; font: 700 clamp(7px, 1.9vw, 9px)/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6B5A3A; }
.bz__cartao-linha span { display: block; margin-top: 2px; font: 700 clamp(10px, 2.8vw, 14px)/1.15 Georgia, serif; color: var(--jg-14532d, #14532d); overflow-wrap: anywhere; }
.bz--premiou .bz__cartao { animation: bz-cartao 1.2s cubic-bezier(.3, 1.05, .5, 1) forwards; }
@keyframes bz-cartao {
    0%   { top: 56%; transform: translate(-50%, -50%) scale(.2) rotateY(0deg); opacity: 0; }
    15%  { opacity: 1; }
    100% { top: 42%; transform: translate(-50%, -50%) scale(1) rotateY(720deg); opacity: 1; }
}

.bz__faiscas { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 7; pointer-events: none; }
.bz__faiscas i {
    position: absolute; left: 0; top: 0;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    background: #FFF6C9;
    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(255, 214, 90, .95));
    opacity: 0;
}
.bz__faiscas i:nth-child(1) { --dx: -140px; --dy: -40px; }
.bz__faiscas i:nth-child(2) { --dx: 140px;  --dy: -46px; animation-delay: .05s; }
.bz__faiscas i:nth-child(3) { --dx: -150px; --dy: 30px;  animation-delay: .1s; }
.bz__faiscas i:nth-child(4) { --dx: 150px;  --dy: 36px;  animation-delay: .07s; }
.bz__faiscas i:nth-child(5) { --dx: -50px;  --dy: -80px; animation-delay: .12s; }
.bz__faiscas i:nth-child(6) { --dx: 60px;   --dy: -78px; animation-delay: .03s; }
.bz--premiou .bz__faiscas i { animation: bz-faisca 1s 1s ease-out forwards; }
@keyframes bz-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; }
}

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

.bz__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);
}
.bz__botao:hover:not(:disabled) { filter: brightness(1.06); }
.bz__botao:disabled { opacity: .55; cursor: default; }

.bz__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);
}
.bz__msg--premiado { background: var(--jg-e3f5e6, #E3F5E6); border-color: var(--jg-9fd8ab, #9FD8AB); color: var(--jg-14532d, #14532d); }
.bz__msg--consolo  { background: #F1F3F1; border-color: #CDD5CE; color: #4F5A52; }
.bz__msg b { color: var(--jg-0a7a00, #0A7A00); }
.bz__msg--consolo b { color: #5C6B60; }

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .bz--premiou .bz__cartao { animation: none; top: 42%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .bz--premiou .bz__faiscas i { animation: none; opacity: .9; transform: translate(var(--dx), var(--dy)) scale(1) rotate(60deg); }
}
