/* Gota da essência (beleza e cosméticos, alta perfumaria).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; fundo ameixa,
 * vidro lilás, perfume âmbar, névoa branca/rosada 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.
 *  - Borrifador e névoa são JS (atributos no SVG), pelo relógio; aqui o prêmio
 *    em letras douradas, os confetes e a frase da fragrância.
 *  - Posições em % do palco: viewBox 160×110 no mesmo 16:11. A névoa condensa
 *    em (102,50) → 63,75% / 45,5%.
 */

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

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

/* ---------------- o prêmio condensado (só no prêmio) ---------------- */

.pf__premiado {
    position: absolute;
    left: 63.75%; top: 45.5%;
    width: 60%;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center;
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    filter: blur(6px);
    z-index: 5;
}
.pf__premiado img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid #E0B43A; box-shadow: 0 0 18px 4px rgba(244, 215, 122, .55); background: #fff; }
.pf__premiado small { margin-top: 4px; font: 700 clamp(8px, 2.2vw, 11px)/1 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #F4D77A; }
.pf__premiado b {
    font: italic 700 clamp(16px, 4.6vw, 24px)/1.1 Georgia, 'Times New Roman', serif;
    background: linear-gradient(180deg, #FFF3B0, #E0B43A 60%, #B8860B);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 6px rgba(244, 215, 122, .5));
    overflow-wrap: anywhere;
}
.pf--premiou .pf__premiado { animation: pf-condensa .8s .55s ease-out forwards; }
@keyframes pf-condensa { to { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); } }

.pf__confete { position: absolute; left: 63.75%; top: 45.5%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.pf__confete i {
    position: absolute; left: 0; top: 0;
    width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
    background: #F4D77A;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 2px rgba(255, 230, 150, .9));
    opacity: 0;
}
.pf__confete i:nth-child(3n)   { background: #FFFFFF; }
.pf__confete i:nth-child(3n+1) { background: #F4D9EC; width: 9px; height: 9px; }
.pf__confete i:nth-child(1)  { --dx: -120px; --dy: -70px; }
.pf__confete i:nth-child(2)  { --dx: 110px;  --dy: -80px; animation-delay: .05s; }
.pf__confete i:nth-child(3)  { --dx: -140px; --dy: 10px;  animation-delay: .1s; }
.pf__confete i:nth-child(4)  { --dx: 130px;  --dy: 20px;  animation-delay: .08s; }
.pf__confete i:nth-child(5)  { --dx: -60px;  --dy: -110px; animation-delay: .12s; }
.pf__confete i:nth-child(6)  { --dx: 70px;   --dy: -120px; animation-delay: .02s; }
.pf__confete i:nth-child(7)  { --dx: -100px; --dy: 80px;  animation-delay: .15s; }
.pf__confete i:nth-child(8)  { --dx: 90px;   --dy: 90px;  animation-delay: .06s; }
.pf__confete i:nth-child(9)  { --dx: -20px;  --dy: 120px; animation-delay: .11s; }
.pf__confete i:nth-child(10) { --dx: 20px;   --dy: -130px; animation-delay: .09s; }
.pf__confete i:nth-child(11) { --dx: -150px; --dy: -30px; animation-delay: .14s; }
.pf__confete i:nth-child(12) { --dx: 150px;  --dy: -20px; animation-delay: .04s; }
.pf--premiou .pf__confete i { animation: pf-confete 1.1s .9s ease-out forwards; }
@keyframes pf-confete {
    0%   { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); opacity: .85; }
}

/* ---------------- a frase da fragrância (só sem prêmio) ---------------- */

.pf__fragrancia {
    position: absolute;
    left: 66%; top: 45.5%;
    width: 56%;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    transform: translate(-50%, -40%);
    opacity: 0;
    z-index: 5;
}
.pf__fragrancia span { font: italic 700 clamp(14px, 4vw, 20px)/1.25 Georgia, 'Times New Roman', serif; color: #F6E7F0; }
.pf__fragrancia small { font: 700 clamp(8px, 2.2vw, 11px)/1 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #D9B8D0; }
.pf__fragrancia::before { content: ''; width: 40px; height: 1px; background: #C9A227; order: 1; }
.pf__fragrancia small { order: 2; }
.pf--consolo .pf__fragrancia { animation: pf-frase .8s .6s ease-out forwards; }
@keyframes pf-frase { to { transform: translate(-50%, -50%); opacity: 1; } }

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

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

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

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .pf--premiou .pf__premiado { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; filter: none; }
    .pf--premiou .pf__confete i { animation: none; opacity: .85; transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); }
    .pf--consolo .pf__fragrancia { animation: none; transform: translate(-50%, -50%); opacity: 1; }
}
