/* Smartwatch da sorte (saúde, bem-estar e fitness).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>): rótulo e botões; relógio
 * grafite, anéis coral/lima/lilás, fundo menta 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.
 *  - O progresso dos anéis é JS (stroke-dasharray), pelo relógio; aqui o
 *    encolher dos anéis no fim, o dourado do prêmio, a aura e o cartão.
 *  - Posições em % do palco: viewBox 160×110 no mesmo 16:11. Tela do relógio
 *    centrada em (80,54) → 50% / 49%.
 */

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

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

/* os anéis sobem e encolhem para dar lugar ao texto (nas duas, depois do desfecho) */
.sw__aneis { transform-box: view-box; transform-origin: 80px 54px; }
.sw--fim .sw__hora { opacity: 0; }
.sw--fim .sw__aneis { animation: sw-encolhe .5s ease-out forwards; }
@keyframes sw-encolhe { to { transform: translate(0, -12px) scale(.62); } }

/* ---------------- dourado, aura e cartão (só no prêmio) ---------------- */

.sw--premiou .sw__anel { stroke: url(#swOuro); }
.sw--premiou .sw__aneis { animation: sw-encolhe .5s ease-out forwards, sw-pulsa .9s .5s ease-in-out 3 alternate; }
@keyframes sw-pulsa { from { filter: drop-shadow(0 0 0 rgba(255, 214, 90, 0)); } to { filter: drop-shadow(0 0 3px rgba(255, 214, 90, .95)); } }

.sw__aura {
    position: absolute;
    left: 50%; top: 49%;
    width: 60%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 170, .9), rgba(244, 196, 48, .35) 45%, rgba(244, 196, 48, 0) 70%);
    transform: translate(-50%, -50%) scale(.3);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}
.sw--premiou .sw__aura { animation: sw-aura .8s ease-out forwards; }
@keyframes sw-aura { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.sw--premiou .sw__cena { z-index: 1; }

.sw__cartao {
    position: absolute;
    left: 84.5%; top: 50%;
    width: 25%;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 3% 2%;
    text-align: center;
    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;
}
.sw__cartao img { width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid #FFFFFF; background: #fff; flex: none; }
.sw__cartao div { min-width: 0; font: 700 clamp(11px, 3vw, 15px)/1.2 Georgia, 'Times New Roman', serif; color: var(--jg-14532d, #14532d); }
.sw__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; }
.sw__cartao span { display: block; overflow-wrap: anywhere; }
.sw--premiou .sw__cartao { animation: sw-cartao .6s .6s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes sw-cartao { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

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

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

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

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

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

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .sw--fim .sw__aneis, .sw--premiou .sw__aneis { animation: none; transform: translate(0, -12px) scale(.62); }
    .sw--premiou .sw__aura { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .sw--premiou .sw__cartao { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
