/* Lacre de frescor (pet shops; alimentação natural e petiscos gourmet).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; vidro, aço,
 * petiscos, borracha do lacre 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.
 *  - Trava e tampa são JS (atributos no SVG), pelo relógio; aqui a luz dourada
 *    e o cupom (prêmio) ou o selo de qualidade (sem prêmio).
 *  - Boca do pote em (80,36) do viewBox → 50% / 33%.
 */

.fc__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%, #FBF7F0, #EFE6D9 70%, #E4D8C6);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35);
    user-select: none;
    font-family: Arial, sans-serif;
}
.fc__cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.fc__luz { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.fc--premiou .fc__luz { animation: fc-luz 1.2s ease-out forwards; }
@keyframes fc-luz {
    0%   { opacity: 0; transform: scaleY(.2); }
    40%  { opacity: 1; transform: scaleY(1.05); }
    100% { opacity: .85; transform: scaleY(1); }
}

/* ---------------- cupom projetado (só no prêmio) ---------------- */

.fc__cupom {
    position: absolute;
    left: 50%; top: 33%;
    width: 52%;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 3% 5%;
    border-radius: 8px;
    background:
        radial-gradient(circle at 0 50%, transparent 8px, #FFFBEF 8.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 8px, #FFFBEF 8.5px) right / 51% 100% no-repeat;
    filter: drop-shadow(0 0 1.5px #D4AF37) drop-shadow(0 0 14px rgba(244, 215, 122, .9));
    transform: translate(-50%, -50%) scale(.1);
    opacity: 0;
    z-index: 6;
}
.fc__cupom::before { content: ''; position: absolute; inset: 5px 14px; border: 1.5px dashed #D4AF37; border-radius: 4px; pointer-events: none; }
.fc__cupom-titulo { font: italic 700 clamp(13px, 3.6vw, 18px)/1 Georgia, serif; color: #8A5A10; }
.fc__cupom-corpo { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.fc__cupom-corpo img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 2px solid #D4AF37; background: #fff; flex: none; }
.fc__cupom-corpo small { display: block; font: 700 clamp(7px, 1.9vw, 9px)/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9A6A40; }
.fc__cupom-corpo span { display: block; margin-top: 3px; font: 700 clamp(12px, 3.4vw, 16px)/1.1 Arial, sans-serif; color: #3A2A10; overflow-wrap: anywhere; }
.fc--premiou .fc__cupom { animation: fc-cupom 1s .45s cubic-bezier(.3, 1.2, .5, 1) forwards; }
@keyframes fc-cupom {
    0%   { top: 33%; transform: translate(-50%, -50%) scale(.1); opacity: 0; }
    25%  { opacity: 1; }
    100% { top: 22%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.fc__faiscas { position: absolute; left: 50%; top: 24%; width: 0; height: 0; z-index: 7; pointer-events: none; }
.fc__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;
}
.fc__faiscas i:nth-child(1) { --dx: -160px; --dy: -20px; }
.fc__faiscas i:nth-child(2) { --dx: 160px;  --dy: -26px; animation-delay: .05s; }
.fc__faiscas i:nth-child(3) { --dx: -170px; --dy: 50px;  animation-delay: .1s; }
.fc__faiscas i:nth-child(4) { --dx: 170px;  --dy: 56px;  animation-delay: .07s; }
.fc__faiscas i:nth-child(5) { --dx: -60px;  --dy: -40px; animation-delay: .12s; }
.fc__faiscas i:nth-child(6) { --dx: 70px;   --dy: -36px; animation-delay: .03s; }
.fc--premiou .fc__faiscas i { animation: fc-faisca 1s 1.1s ease-out forwards; }
@keyframes fc-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; }
}

/* ---------------- selo de qualidade (só sem prêmio) ---------------- */

.fc__selo {
    position: absolute;
    left: 81%; top: 66%;
    width: 19%; aspect-ratio: 1;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFFFFF, var(--jg-eaf6ef, #EAF6EF) 70%);
    border: 2px solid var(--jg-2aa152, #2AA152);
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4.5px #C9A227, 0 8px 14px -6px rgba(0, 0, 0, .35);
    text-align: center;
    transform: translate(-50%, -50%) scale(.3) rotate(-30deg);
    opacity: 0;
    z-index: 6;
}
.fc__selo img { width: 34%; }
.fc__selo span { font: 700 clamp(7px, 1.9vw, 10px)/1.1 Arial, sans-serif; color: var(--jg-2f6b4f, #2F6B4F); padding: 0 8%; }
.fc--consolo .fc__selo { animation: fc-selo .55s .15s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes fc-selo { to { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; } }

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

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

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

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

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .fc--premiou .fc__luz { animation: none; opacity: .85; }
    .fc--premiou .fc__cupom { animation: none; top: 22%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .fc--premiou .fc__faiscas i { animation: none; opacity: .9; transform: translate(var(--dx), var(--dy)) scale(1) rotate(60deg); }
    .fc--consolo .fc__selo { animation: none; transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; }
}
