:root {
    --feltro: #052616;
    --feltro-claro: #0d5a32;
    --ouro: #f6c445;
    --ouro-forte: #e2a514;
    --ouro-escuro: #8d6204;
    --creme: #fff8e7;
    --texto: #f3fff6;
    --texto-suave: #d5eadc;
    --sombra: 0 18px 40px rgba(0, 0, 0, 0.35);
    --fonte: "Outfit", "Segoe UI", sans-serif;
    --display: "Fredoka", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--texto);
    font-family: var(--fonte);
    background:
        radial-gradient(ellipse at 50% -10%, #1b8a42 0%, transparent 46%),
        radial-gradient(ellipse at 100% 80%, #0a3d22 0%, transparent 42%),
        linear-gradient(180deg, #06351c 0%, var(--feltro) 42%, #03150c 100%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.sala {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bola {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--tam);
    height: var(--tam);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a1206;
    font-family: var(--display);
    font-size: calc(var(--tam) * 0.15);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 26%),
        radial-gradient(circle at 50% 58%, var(--c), #111 76%);
    box-shadow: inset -8px -10px 16px rgba(0, 0, 0, 0.35), 0 12px 20px rgba(0, 0, 0, 0.28);
    animation: boiar var(--t) ease-in-out infinite;
}

.bola::before {
    content: "";
    position: absolute;
    inset: 18%;
    z-index: 0;
    border-radius: 50%;
    background: #fffdf8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.bola-letra {
    position: relative;
    z-index: 1;
    max-width: 72%;
    text-align: center;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.confete {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px currentColor;
    animation: cair 9s linear infinite;
}

.c1 { left: 12%; background: #f6c445; animation-delay: 0s; }
.c2 { left: 28%; background: #ef4444; animation-delay: -3s; }
.c3 { left: 63%; background: #38bdf8; animation-delay: -5s; }
.c4 { left: 76%; background: #f6c445; animation-delay: -1.5s; }
.c5 { left: 48%; background: #22c55e; animation-delay: -7s; }
.c6 { left: 8%; width: 6px; height: 14px; border-radius: 2px; background: #ffe27a; animation-delay: -2s; }
.c7 { left: 84%; width: 6px; height: 14px; border-radius: 2px; background: #22c55e; animation-delay: -6s; }
.c8 { left: 40%; width: 10px; height: 10px; background: #f97316; animation-delay: -4s; }

.sala .bola:nth-child(2),
.sala .bola:nth-child(3) {
    left: auto;
    right: 2%;
}

.brillo {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffe98a;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 8px #f6c445);
    animation: brilhar 3.2s ease-in-out infinite;
}

.b1 { left: 18%; top: 22%; animation-delay: 0s; }
.b2 { right: 16%; top: 30%; animation-delay: -1s; }
.b3 { left: 22%; bottom: 18%; animation-delay: -1.8s; }
.b4 { right: 20%; bottom: 24%; animation-delay: -0.6s; }

.pagina {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 8px;
}

.logotipo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.logotipo-bola {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a1206;
    background:
        radial-gradient(circle at 32% 28%, #fff, transparent 24%),
        radial-gradient(circle at 50% 60%, #f6c445, #a16207 78%);
    box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.25);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.menu a {
    text-decoration: none;
    font-weight: 600;
    color: var(--creme);
    opacity: 0;
    animation: surgir 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu a:nth-child(1) { animation-delay: 0.15s; }
.menu a:nth-child(2) { animation-delay: 0.28s; }
.menu a:nth-child(3) { animation-delay: 0.41s; }

.menu a:hover {
    color: var(--ouro);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    width: min(440px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 16px 28px;
}

.selo {
    margin: 0 0 14px;
    color: var(--ouro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.flyer-entra,
.flyer-flutua,
.flyer,
.carton-entra,
.carton {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.flyer-entra,
.carton-entra {
    opacity: 1;
}

.flyer-flutua {
    animation: flutuar 4.8s ease-in-out infinite;
}

.flyer {
    display: block;
    line-height: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 0 0 3px rgba(246, 196, 69, 0.92),
        0 0 22px rgba(246, 196, 69, 0.28),
        var(--sombra);
    transform-origin: center;
}

.flyer img {
    display: block;
    width: 100%;
    height: auto;
    background: #0b4a28;
}

.carton-entra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.carton {
    position: relative;
    width: 100%;
    line-height: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 0 0 3px rgba(246, 196, 69, 0.92),
        0 0 26px rgba(246, 196, 69, 0.32),
        var(--sombra);
    animation: premio-brilho 2.8s ease-in-out infinite;
}

.carton img,
.carton canvas {
    display: block;
    width: 100%;
    height: auto;
}

.carton canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.moeda {
    position: absolute;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 32% 30%, #fff6c2, #f0b400 42%, #a16207 78%);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35), inset -3px -4px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.moeda[hidden] {
    display: none;
}

.marca-veinte {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.marca-veinte[hidden] {
    display: none;
}

.marca-veinte span {
    position: absolute;
    width: 19.5%;
    aspect-ratio: 1;
    border: 4px solid #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
    top: 50%;
    transform: translate(-50%, -50%);
}

.marca-veinte span:nth-child(1) { left: 30.2%; }
.marca-veinte span:nth-child(2) { left: 50.6%; }
.marca-veinte span:nth-child(3) { left: 70.8%; }

.premio-revelado {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    margin: 0;
    color: #22c55e;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 8vw, 3rem);
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 6px 0 #14532d, 0 10px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.premio-revelado[hidden] {
    display: none;
}

.btn-raspar {
    width: 100%;
    max-width: 100%;
    opacity: 1;
    animation: none;
}

.flyer:hover {
    box-shadow: var(--sombra);
}

.chamada {
    width: min(34rem, 100%);
    min-width: 0;
    margin: 22px 0 0;
    color: var(--texto-suave);
    font-size: 1.12rem;
}

.acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: surgir 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.acoes .btn:nth-child(1) { animation-delay: 0.95s; }
.acoes .btn:nth-child(2) { animation-delay: 1.1s; }
.acoes .btn:nth-child(3) { animation-delay: 1.25s; }

.btn-ouro {
    color: #3a2500;
    background: linear-gradient(180deg, #ffe98a 0%, #f0b400 48%, #d39200 100%);
    box-shadow: 0 7px 0 var(--ouro-escuro), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.btn-ouro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.72) 48%, transparent 64%);
    transform: translateX(-130%);
    animation: brilho 2.8s ease-in-out 2s infinite;
}

.btn-verde {
    color: #f4fff4;
    background: linear-gradient(180deg, #2fbe63 0%, #148a3e 100%);
    box-shadow: 0 7px 0 #0b5a28, 0 14px 24px rgba(0, 0, 0, 0.28);
}

.btn-linha {
    color: var(--creme);
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(246, 196, 69, 0.85);
}

.btn:hover {
    transform: translateY(-5px) scale(1.04);
}

.btn-ouro:hover {
    box-shadow: 0 11px 0 var(--ouro-escuro), 0 18px 28px rgba(240, 180, 0, 0.35);
}

.btn-verde:hover {
    box-shadow: 0 11px 0 #0b5a28, 0 18px 28px rgba(20, 138, 62, 0.4);
}

.btn-linha:hover {
    background: rgba(246, 196, 69, 0.14);
    box-shadow: inset 0 0 0 2px #ffe27a, 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

.btn-ouro:active {
    box-shadow: 0 3px 0 var(--ouro-escuro);
}

.btn-verde:active {
    box-shadow: 0 3px 0 #0b5a28;
}

.bloco {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.bloco-cabeca {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 28px;
}

.bloco-cabeca h2,
.passo h3,
.premio h3 {
    font-family: var(--display);
    margin: 0;
}

.bloco-cabeca h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.bloco-cabeca p:last-child,
.passo p,
.premio p {
    color: var(--texto-suave);
    line-height: 1.55;
}

.passos,
.premios {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.passos {
    grid-template-columns: repeat(3, 1fr);
}

.premios {
    grid-template-columns: repeat(3, 1fr);
}

.passo,
.premio {
    padding: 22px 20px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(246, 196, 69, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.passo:hover,
.premio:hover {
    transform: translateY(-8px);
    border-color: var(--ouro);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.passo-numero,
.premio-icone {
    display: block;
    margin-bottom: 8px;
    font-family: var(--display);
}

.passo-numero {
    color: var(--ouro);
    font-size: 1.4rem;
}

.premio-icone {
    font-size: 2rem;
}

.rodape {
    margin-top: 12px;
    padding: 36px 16px 28px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
    border-top: 1px solid rgba(246, 196, 69, 0.28);
}

.rodape-siga {
    margin: 0 0 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--ouro);
    font-weight: 700;
}

.redes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.rede {
    width: 62px;
    height: 62px;
    display: block;
    border-radius: 50%;
    opacity: 0;
    animation: surgir 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.2s + (var(--atraso) * 0.12s));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.rede img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.rede:hover {
    transform: translateY(-7px) scale(1.1);
    filter: drop-shadow(0 12px 12px rgba(246, 196, 69, 0.35));
}

.marca {
    margin: 22px 0 0;
    color: var(--creme);
    font-weight: 600;
    letter-spacing: 0.02em;
}

:focus-visible {
    outline: 3px solid #ffe27a;
    outline-offset: 3px;
}

@keyframes surgir {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes surgir-flyer {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes brilhar {
    0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

@keyframes premio-brilho {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(246, 196, 69, 0.85),
            0 0 18px rgba(246, 196, 69, 0.22),
            var(--sombra);
    }
    50% {
        box-shadow:
            0 0 0 3px #ffe27a,
            0 0 36px rgba(246, 196, 69, 0.55),
            var(--sombra);
    }
}

@keyframes boiar {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-16px) rotate(8deg); }
}

@keyframes cair {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: translateY(110vh) rotate(240deg); opacity: 0.2; }
}

@keyframes brilho {
    0%, 42% { transform: translateX(-130%); }
    68%, 100% { transform: translateX(130%); }
}

@media (max-width: 800px) {
    .passos,
    .premios {
        grid-template-columns: 1fr;
    }

    .topo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu {
        justify-content: center;
    }

    .bola {
        display: none;
    }

    .hero {
        width: 100%;
        max-width: 100%;
        padding: 12px 12px 24px;
    }

    .flyer img {
        width: 100%;
        max-height: none;
    }

    .rede {
        width: 52px;
        height: 52px;
    }

    .marca {
        font-size: 0.92rem;
        padding: 0 12px;
    }

    .chamada {
        padding: 0 18px;
        margin-top: 16px;
    }

    .acoes {
        width: min(280px, calc(100% - 24px));
        flex-direction: column;
    }

    .acoes .btn {
        width: 100%;
    }

    .btn {
        min-height: 48px;
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .flyer-entra,
    .carton-entra,
    .btn,
    .rede,
    .menu a {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}
