/* =============================================================================
   Banner do evento de Halloween na home (layout/overall/halloween_banner.php).
   Arquivo proprio pra sair inteiro quando o evento acabar. Mesma paleta do card
   theme-halloween do donate e da pagina wiki/halloween.php.
   Motion: so transform/opacity, desligado em prefers-reduced-motion.
   ============================================================================= */
.hwb {
    --hwb-ink: #f6edff;
    --hwb-soft: #d0bfe6;
    --hwb-amber: #ffb347;
    --hwb-orange: #ff8a1f;
    --hwb-line: rgba(192, 132, 252, .28);
    display: grid; gap: 16px; margin: 14px 0 30px;
    animation: hwb-enter .9s var(--swo-ease) .5s both;
}
.hwb h2, .hwb p, .hwb ul { margin: 0; padding: 0; }
.hwb ul { list-style: none; }
.hwb a { text-decoration: none; }

/* ---- Banner ---- */
.hwb-banner {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1.25fr); align-items: center; gap: 18px;
    min-height: 330px; padding: 30px 32px 54px; border-radius: var(--swo-r-lg);
    border: 1px solid rgba(168, 85, 247, .45);
    background:
        radial-gradient(520px 320px at 8% 100%, rgba(255, 122, 24, .3), transparent 70%),
        radial-gradient(620px 380px at 92% 0%, rgba(147, 51, 234, .42), transparent 70%),
        linear-gradient(160deg, #1d1131, #0b0714);
    box-shadow: 0 34px 70px -34px rgba(147, 51, 234, .75);
}
.hwb-moon {
    position: absolute; z-index: -1; top: 22px; left: 42%; width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #fff6d8, #ffdf9a 46%, #f0a84e 78%);
    box-shadow: 0 0 54px 12px rgba(255, 190, 110, .26);
    opacity: .85;
}
.hwb-web { position: absolute; z-index: -1; top: 0; width: 130px; height: auto; opacity: .3; pointer-events: none; }
.hwb-web-tl { left: 0; }
.hwb-web-tr { right: 0; }
.hwb-bat { position: absolute; z-index: -1; color: #0b0614; animation: hwb-drift 8s ease-in-out infinite; }
.hwb-bat-1 { top: 36px; left: 36%; width: 44px; height: 22px; }
.hwb-bat-2 { top: 92px; left: 58%; width: 30px; height: 15px; animation-delay: -3s; animation-duration: 10s; }
.hwb-scene { position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; pointer-events: none; }

.hwb-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.hwb-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--hwb-amber); background: rgba(255, 138, 31, .13); border: 1px solid rgba(255, 138, 31, .36);
}
.hwb-kicker img { width: 16px; height: 16px; image-rendering: pixelated; }
.hwb-copy h2 {
    font-family: var(--swo-font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.03em;
    background: linear-gradient(180deg, #ffe08a 10%, #ffb347 48%, #ff7a18 86%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 18px rgba(255, 122, 24, .4));
}
.hwb-copy p { font-size: 15px; line-height: 1.5; color: var(--hwb-soft); }
.hwb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hwb-meta b { font: 800 25px/1.1 var(--swo-font-display); color: var(--hwb-ink); }
.hwb-meta b small { font-size: 15px; font-weight: 700; color: var(--hwb-soft); }
.hwb-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--hwb-amber); }
.hwb-meta .swo-i { width: 15px; height: 15px; }

/* Pacote em destaque: raios girando, halo pulsando e o sprite flutuando */
.hwb-art { position: relative; height: 230px; display: grid; place-items: center; }
.hwb-rays {
    position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 179, 71, .24) 0deg 9deg, transparent 9deg 24deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
    animation: hwb-spin 26s linear infinite;
}
.hwb-halo {
    position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 50, .62), rgba(147, 51, 234, .3) 56%, transparent 72%);
    animation: hwb-pulse 3.2s ease-in-out infinite;
}
.hwb-pack {
    position: relative; width: 128px; height: 128px; image-rendering: pixelated;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
    animation: hwb-float 4s ease-in-out infinite;
}
.hwb-floor {
    position: absolute; left: 50%; bottom: 22px; width: 118px; height: 16px; margin-left: -59px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%);
    animation: hwb-shadow 4s ease-in-out infinite;
}

.hwb-inside { min-width: 0; display: grid; gap: 8px; }
.hwb-inside-title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hwb-amber); }
.hwb-inside ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hwb-inside li {
    min-width: 0; display: flex; align-items: center; gap: 8px; padding: 3px 9px 3px 3px; border-radius: 10px;
    background: rgba(13, 8, 23, .66); border: 1px solid var(--hwb-line);
}
.hwb-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: rgba(147, 51, 234, .18); overflow: hidden; }
.hwb-ic img { max-width: 34px; max-height: 34px; image-rendering: pixelated; }
.hwb-name { min-width: 0; flex: 1; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--hwb-ink); }
.hwb-inside li b { flex: none; font-size: 12.5px; color: var(--hwb-amber); }

/* ---- Botoes ---- */
.hwb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hwb-cta {
    position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px;
    min-height: 104px; padding: 12px 24px 12px 18px; border-radius: 20px;
    transition: transform .28s var(--swo-ease-spring);
}
.hwb-cta::before {
    /* brilho atras do botao, respirando */
    content: ""; position: absolute; z-index: -2; inset: 6px; border-radius: 20px; filter: blur(22px);
    background: linear-gradient(120deg, #ff7a18, #9333ea);
    animation: hwb-breathe 2.8s ease-in-out infinite;
}
.hwb-cta:hover { transform: translateY(-4px) scale(1.012); }
.hwb-cta:active { transform: translateY(0) scale(.985); transition-duration: .1s; }
.hwb-cta:focus-visible { outline: 3px solid #ffe08a; outline-offset: 3px; }

.hwb-clip { position: absolute; z-index: -1; inset: 0; border-radius: inherit; overflow: hidden; }
.hwb-ring {
    /* borda de luz: quadrado girando atras do miolo, cortado pelo .hwb-clip */
    position: absolute; left: 50%; top: 50%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg 170deg, #ffe08a 225deg, #ff7a18 270deg, #a855f7 320deg, transparent 360deg);
    animation: hwb-ring 3.6s linear infinite;
}
.hwb-fill { position: absolute; inset: 3px; border-radius: 17px; overflow: hidden; }
.hwb-sheen {
    position: absolute; top: 0; bottom: 0; left: 0; width: 26%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: translateX(-130%) skewX(-20deg);
    animation: hwb-sheen 4.2s ease-in-out infinite;
}

.hwb-cta-ic { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; }
.hwb-cta-ic img { position: relative; image-rendering: pixelated; }
.hwb-cta-text { position: relative; min-width: 0; flex: 1; display: grid; gap: 3px; }
.hwb-cta-text strong { font: 800 clamp(20px, 2.3vw, 27px)/1.1 var(--swo-font-display); letter-spacing: .01em; text-transform: uppercase; }
.hwb-cta-text small { font-size: 14px; font-weight: 600; }
.hwb-cta-go { position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: transform .28s var(--swo-ease-spring); }
.hwb-cta-go .swo-i { width: 21px; height: 21px; }
.hwb-cta:hover .hwb-cta-go { transform: translateX(6px); }

/* Evento: noite roxa, texto ambar, abobora quicando e fagulhas subindo */
.hwb-cta-event .hwb-fill { background: radial-gradient(240px 120px at 12% 50%, rgba(255, 122, 24, .42), transparent 72%), linear-gradient(120deg, #2a1548, #120a20); }
.hwb-cta-event .hwb-cta-text strong { color: var(--hwb-amber); }
.hwb-cta-event .hwb-cta-text small { color: var(--hwb-soft); }
.hwb-cta-event .hwb-cta-go { color: #2a1002; background: linear-gradient(120deg, #ffb347, #ff7a18); }
.hwb-cta-event .hwb-cta-ic img { width: 62px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 138, 31, .85)); animation: hwb-bob 1.9s var(--swo-ease) infinite; }
.hwb-embers { position: absolute; z-index: 0; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hwb-embers i { position: absolute; bottom: -6px; width: 5px; height: 5px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px 2px rgba(255, 138, 31, .8); opacity: 0; animation: hwb-ember 3.4s linear infinite; }
.hwb-embers i:nth-child(1) { left: 16%; }
.hwb-embers i:nth-child(2) { left: 31%; animation-delay: -1.1s; background: #c084fc; box-shadow: 0 0 8px 2px rgba(168, 85, 247, .8); }
.hwb-embers i:nth-child(3) { left: 47%; animation-delay: -2.2s; }
.hwb-embers i:nth-child(4) { left: 62%; animation-delay: -.6s; }
.hwb-embers i:nth-child(5) { left: 76%; animation-delay: -1.7s; background: #c084fc; box-shadow: 0 0 8px 2px rgba(168, 85, 247, .8); }
.hwb-embers i:nth-child(6) { left: 88%; animation-delay: -2.8s; }

/* Compra: abobora acesa, tinta escura, sprite com raios */
.hwb-cta-buy::before { background: linear-gradient(120deg, #ffb347, #ff5a1f); }
.hwb-cta-buy .hwb-ring { background: conic-gradient(from 0deg, transparent 0deg 170deg, #fff3d0 225deg, #ffffff 270deg, #ffd27a 320deg, transparent 360deg); }
.hwb-cta-buy .hwb-fill { background: linear-gradient(120deg, #ffc56e 0%, #ff8a1f 48%, #e0500f 100%); }
.hwb-cta-buy .hwb-cta-text strong { color: #2a1002; }
.hwb-cta-buy .hwb-cta-text small { color: #4a1f06; }
.hwb-cta-buy .hwb-cta-go { color: #ffd9a0; background: #2a1002; }
.hwb-cta-buy .hwb-cta-ic img { width: 64px; height: 64px; filter: drop-shadow(0 4px 6px rgba(70, 25, 0, .55)); animation: hwb-wiggle 3s ease-in-out infinite; }
.hwb-cta-rays {
    position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .46) 0deg 10deg, transparent 10deg 30deg);
    -webkit-mask: radial-gradient(circle, #000 22%, transparent 70%); mask: radial-gradient(circle, #000 22%, transparent 70%);
    animation: hwb-spin 12s linear infinite;
}

/* ---- Motion ---- */
@keyframes hwb-enter { from { opacity: 0; transform: translateY(26px); } }
@keyframes hwb-spin { to { transform: rotate(360deg); } }
@keyframes hwb-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hwb-pulse { 0%, 100% { transform: scale(.94); opacity: .78; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes hwb-float { 0%, 100% { transform: translateY(5px) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes hwb-shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.76); opacity: .5; } }
@keyframes hwb-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 9px); } }
@keyframes hwb-breathe { 0%, 100% { opacity: .42; transform: scale(.985); } 50% { opacity: .85; transform: scale(1.015); } }
@keyframes hwb-sheen { 0%, 58% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes hwb-bob { 0%, 100% { transform: translateY(2px) scale(1, 1); } 42% { transform: translateY(-7px) scale(.97, 1.04); } 62% { transform: translateY(3px) scale(1.05, .95); } }
@keyframes hwb-wiggle { 0%, 72%, 100% { transform: rotate(0) scale(1); } 78% { transform: rotate(-7deg) scale(1.08); } 86% { transform: rotate(6deg) scale(1.08); } 93% { transform: rotate(-3deg) scale(1.03); } }
@keyframes hwb-ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 12% { opacity: .95; } 100% { transform: translate(14px, -112px) scale(.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .hwb, .hwb-bat, .hwb-rays, .hwb-halo, .hwb-pack, .hwb-floor, .hwb-cta::before, .hwb-ring, .hwb-sheen,
    .hwb-cta-ic img, .hwb-embers i, .hwb-cta-rays { animation: none; }
    .hwb-ring { display: none; }
    .hwb-sheen, .hwb-embers { display: none; }
    .hwb-cta, .hwb-cta-go { transition: none; }
    .hwb-cta { box-shadow: 0 0 0 2px rgba(255, 179, 71, .7); }
}

/* ---- Telas menores ---- */
@media (max-width: 1080px) {
    .hwb-banner { grid-template-columns: minmax(0, 1fr) 220px; }
    .hwb-inside { grid-column: 1 / -1; }
    .hwb-inside ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hwb-moon { left: auto; right: 8%; }
}
@media (max-width: 760px) {
    .hwb-banner { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 58px; text-align: center; }
    .hwb-copy { align-items: center; }
    .hwb-meta { justify-content: center; }
    .hwb-art { height: 190px; }
    .hwb-inside { text-align: left; }
    .hwb-inside ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hwb-actions { grid-template-columns: minmax(0, 1fr); }
    .hwb-cta { min-height: 90px; padding: 10px 14px 10px 10px; gap: 10px; }
    .hwb-cta-go { width: 36px; height: 36px; }
    .hwb-bat { display: none; }
}
@media (max-width: 420px) {
    .hwb-inside ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Home com o evento no ar ----
   Este arquivo so carrega com o banner na pagina, entao o ajuste do hero sai junto
   quando o evento acabar. A altura do hero e presa a altura da janela pra ponta do
   banner aparecer sem rolar. Quem manda na altura e o orbit, por isso ele encolhe. */
@media (min-width: 1025px) {
    .swo-hero { min-height: 0; padding: 4px 0 0; gap: 24px; }
    .swo-orbit { --size: min(460px, 42vw, max(300px, calc(100vh - 316px))); }
    .swo-orbit-caption { margin-top: 6px; }
    .swo-hero h1 { margin: 16px 0 14px; }
    .swo-hero-sub { margin-bottom: 20px; }
    .swo-hero-trust { margin-top: 16px; }
}
@media (min-width: 1025px) and (max-height: 720px) {
    .swo-hero h1 { font-size: clamp(38px, 4.6vw, 58px); }
    .swo-hero-trust { display: none; }
}
