/* Lacre premiado (farmácias e drogarias, dermocosméticos).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): faixa da caixa, rótulo, selo de
 * segurança e botões; caixa perolada, holograma (ouro, rosa, lilás, menta),
 * balcão e faíscas em hex direto. Nunca azul.
 *
 * Contrato:
 *  - Estado FINAL por classe estática ou @keyframes … forwards.
 *  - Movimento reduzido: cada coisa para num estado VISÍVEL.
 *  - Brilho, rasgo e tampa são JS (atributos no SVG), pelo relógio; aqui as
 *    faíscas, a faixa "Lacre premiado", o cartão e o selo de segurança.
 *  - Posições em % do palco: viewBox recortado (20 8 128 88) no mesmo 16:11. O
 *    lacre rompe em (80,38) → 46,9% / 34,1%.
 */

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

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

/* ---------------- faíscas douradas (só no prêmio) ---------------- */

.lc__faiscas { position: absolute; left: 46.9%; top: 34.1%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.lc__faiscas i {
    position: absolute; left: 0; top: 0;
    width: 17px; height: 17px;
    margin: -8.5px 0 0 -8.5px;
    background: #FFE68A;
    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;
}
.lc--premiou .lc__faiscas i { animation: lc-faisca .9s ease-out forwards; }
.lc__faiscas i:nth-child(1) { --dx: -70px; --dy: -40px; }
.lc__faiscas i:nth-child(2) { --dx: 70px;  --dy: -44px; animation-delay: .05s; }
.lc__faiscas i:nth-child(3) { --dx: -96px; --dy: 6px;   animation-delay: .1s; }
.lc__faiscas i:nth-child(4) { --dx: 98px;  --dy: 10px;  animation-delay: .08s; }
.lc__faiscas i:nth-child(5) { --dx: -30px; --dy: -70px; animation-delay: .12s; }
.lc__faiscas i:nth-child(6) { --dx: 34px;  --dy: -72px; animation-delay: .03s; }
.lc__faiscas i:nth-child(7) { --dx: -60px; --dy: 40px;  animation-delay: .15s; }
.lc__faiscas i:nth-child(8) { --dx: 64px;  --dy: 44px;  animation-delay: .1s; }
@keyframes lc-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; }
}

.lc__faixa {
    position: absolute;
    left: 50%; top: 3%;
    padding: 1.2% 5%;
    border-radius: 999px;
    background: linear-gradient(115deg, #FFF3B0, #F9C6DE 35%, #D9CCF5 60%, var(--jg-bdefd8, #BDEFD8) 80%, #FDE68A);
    border: 1.5px solid #FFFFFF;
    box-shadow: 0 0 0 1.2px #9A7414, 0 0 18px 5px rgba(255, 214, 90, .6);
    font: 700 clamp(11px, 3.2vw, 16px)/1.1 Georgia, 'Times New Roman', serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jg-14532d, #14532d);
    white-space: nowrap;
    transform: translate(-50%, 30%) scale(.6);
    opacity: 0;
    z-index: 6;
}
.lc--premiou .lc__faixa { animation: lc-faixa .6s .2s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes lc-faixa { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

.lc__cartao {
    position: absolute;
    left: 50%; top: 70%;
    width: 56%;
    display: flex; align-items: center; gap: 6%;
    padding: 2.4% 3%;
    box-sizing: border-box;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF3B0, #F4C430 50%, #D49A12);
    border: 2px solid #FFF6D8;
    box-shadow: 0 0 0 1.5px #9A7414, 0 12px 20px -8px rgba(0, 0, 0, .5), 0 0 18px 4px rgba(255, 214, 90, .55);
    transform: translate(-50%, -50%) scale(.1);
    opacity: 0;
    z-index: 6;
}
.lc__cartao img { width: 28%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid #FFFFFF; background: #fff; flex: none; }
.lc__cartao div { min-width: 0; font: 700 clamp(11px, 3vw, 15px)/1.2 Georgia, 'Times New Roman', serif; color: var(--jg-14532d, #14532d); }
.lc__cartao small { display: block; font: 700 clamp(8px, 2vw, 10px)/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6B4E0E; margin-bottom: 3px; }
.lc__cartao span { display: block; overflow-wrap: anywhere; }
.lc--premiou .lc__cartao { animation: lc-cartao .6s .5s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes lc-cartao { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---------------- selo de segurança (só sem prêmio) ---------------- */

.lc__selo {
    position: absolute;
    left: 50%; top: 72%;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 1.6% 4%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--jg-cfe0d4, #CFE0D4);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4);
    font: 700 clamp(10px, 2.7vw, 13px)/1.2 Arial, sans-serif;
    color: var(--jg-14532d, #14532d);
    white-space: nowrap;
    transform: translate(-50%, -30%);
    opacity: 0;
    z-index: 6;
}
.lc__selo svg { width: 18px; height: 18px; color: var(--jg-0a7a00, #0A7A00); flex: none; }
.lc--consolo .lc__selo { animation: lc-selo .5s ease-out forwards; }
@keyframes lc-selo { to { transform: translate(-50%, -50%); opacity: 1; } }

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

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

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

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .lc--premiou .lc__faiscas i { animation: none; opacity: .9; transform: translate(var(--dx), var(--dy)) scale(1) rotate(60deg); }
    .lc--premiou .lc__faixa { animation: none; transform: translate(-50%, 0) scale(1); opacity: 1; }
    .lc--premiou .lc__cartao { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .lc--consolo .lc__selo { animation: none; transform: translate(-50%, -50%); opacity: 1; }
}
