/* Aroma de roupa limpa (lavanderias automatizadas).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; painel inox,
 * insumos (menta e lavanda), neon e ouro em hex direto. Nunca azul: o roteiro
 * pede líquido azul/neon, aqui é menta e lavanda.
 *
 * Contrato:
 *  - Estado FINAL por classe estática ou @keyframes … forwards.
 *  - Movimento reduzido: cada coisa para num estado VISÍVEL.
 *  - Dutos, câmara, água e giro do tambor são JS (atributos no SVG), pelo
 *    relógio; aqui a reação dourada, as bolhas do ciclo e o cartão.
 *  - Posições em % do palco: viewBox 160×110 no mesmo 16:11 do palco. Tambor em
 *    (112,84) → 70% / 76,4%; vidro com raio 17,4 → 21,75% de largura.
 */

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

.ar__rotulo {
    position: absolute;
    left: 2%; bottom: 3%;
    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;
}
.ar__rotulo img { width: 12px; height: 12px; }

/* ---------------- reação dourada (só no prêmio) ---------------- */

.ar__reacao {
    position: absolute;
    left: 70%; top: 76.4%;
    width: 44%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 170, .75), rgba(244, 196, 48, .4) 35%, rgba(244, 196, 48, 0) 68%);
    transform: translate(-50%, -50%) scale(.2);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}
.ar--premiou .ar__reacao { animation: ar-reacao .8s ease-out forwards; }
@keyframes ar-reacao { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.ar__faiscas { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ar__faiscas i {
    position: absolute;
    width: 3.4%; aspect-ratio: 1;
    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));
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.ar__faiscas i:nth-child(1) { left: 60%; top: 66%; }
.ar__faiscas i:nth-child(2) { left: 80%; top: 64%; }
.ar__faiscas i:nth-child(3) { left: 84%; top: 86%; }
.ar__faiscas i:nth-child(4) { left: 57%; top: 88%; }
.ar__faiscas i:nth-child(5) { left: 71%; top: 58%; }
.ar--premiou .ar__faiscas i { animation: ar-faisca 1s ease-out forwards; }
.ar--premiou .ar__faiscas i:nth-child(2) { animation-delay: .12s; }
.ar--premiou .ar__faiscas i:nth-child(3) { animation-delay: .24s; }
.ar--premiou .ar__faiscas i:nth-child(4) { animation-delay: .36s; }
.ar--premiou .ar__faiscas i:nth-child(5) { animation-delay: .48s; }
@keyframes ar-faisca {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    50%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(30deg); }
    100% { opacity: .95; transform: translate(-50%, -50%) scale(.9) rotate(45deg); }
}

/* o cartão luminoso sai do tambor */
.ar__cartao {
    position: absolute;
    left: 70%; top: 76.4%;
    width: 54%;
    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 22px 6px rgba(255, 214, 90, .6);
    transform: translate(-50%, -50%) scale(.1);
    opacity: 0;
    z-index: 6;
}
.ar__cartao img { width: 28%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid #FFFFFF; background: #fff; flex: none; }
.ar__cartao div { min-width: 0; font: 700 clamp(11px, 3vw, 15px)/1.2 Georgia, 'Times New Roman', serif; color: var(--jg-14532d, #14532d); }
.ar__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; }
.ar__cartao span { display: block; overflow-wrap: anywhere; }
.ar--premiou .ar__cartao { animation: ar-cartao .7s .45s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes ar-cartao {
    0%   { left: 70%; top: 76.4%; transform: translate(-50%, -50%) scale(.1); opacity: 0; }
    30%  { opacity: 1; }
    100% { left: 34%; top: 72%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ---------------- bolhas de frescor (só no ciclo padrão) ---------------- */

.ar__bolhas {
    position: absolute;
    left: 70%; top: 76.4%;
    width: 21.75%; aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
}
.ar__bolhas i {
    position: absolute; bottom: -12%;
    width: 11%; aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .85);
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .8), rgba(228, 215, 251, .25) 60%);
    opacity: 0;
}
.ar__bolhas i:nth-child(1) { left: 18%; }
.ar__bolhas i:nth-child(2) { left: 40%; width: 8%; }
.ar__bolhas i:nth-child(3) { left: 62%; }
.ar__bolhas i:nth-child(4) { left: 30%; width: 7%; }
.ar__bolhas i:nth-child(5) { left: 74%; width: 8%; }
.ar__bolhas i:nth-child(6) { left: 52%; width: 12%; }
.ar--consolo .ar__bolhas i { animation: ar-bolha 1.4s ease-in forwards; }
.ar--consolo .ar__bolhas i:nth-child(2) { animation-delay: .2s; }
.ar--consolo .ar__bolhas i:nth-child(3) { animation-delay: .35s; }
.ar--consolo .ar__bolhas i:nth-child(4) { animation-delay: .5s; }
.ar--consolo .ar__bolhas i:nth-child(5) { animation-delay: .1s; }
.ar--consolo .ar__bolhas i:nth-child(6) { animation-delay: .6s; }
@keyframes ar-bolha {
    0%   { transform: translateY(0); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-620%); opacity: .9; }
}

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

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

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

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .ar--premiou .ar__reacao { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .ar--premiou .ar__faiscas i { animation: none; opacity: .95; transform: translate(-50%, -50%) scale(.9) rotate(45deg); }
    .ar--premiou .ar__cartao { animation: none; left: 34%; top: 72%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .ar--consolo .ar__bolhas i { animation: none; opacity: .9; transform: translateY(-300%); }
}
