/* Enfeites de Halloween. As imagens entram só por aqui: hospedadas em assets.xandyn.network. */
:root {
  --hw-img-web: url(https://assets.xandyn.network/bloxrealm-halloween/web-v2.webp);
  --hw-img-branch: url(https://assets.xandyn.network/bloxrealm-halloween/branch.webp);
  --hw-img-f1: url(https://assets.xandyn.network/bloxrealm-halloween/f1-pumpkin.webp);
  --hw-img-f2: url(https://assets.xandyn.network/bloxrealm-halloween/f2-ghost.webp);
  --hw-img-f3: url(https://assets.xandyn.network/bloxrealm-halloween/f3-bat.webp);
  --hw-img-f4: url(https://assets.xandyn.network/bloxrealm-halloween/f4-cauldron.webp);
  --hw-img-icon-pumpkin: url(https://assets.xandyn.network/bloxrealm-halloween/icon-pumpkin.webp);
  --hw-img-icon-candy: url(https://assets.xandyn.network/bloxrealm-halloween/icon-candy.webp);

  --hw-flame: 255 51 0;
  --hw-deep: 255 106 43;
  --hw-coral: 255 139 103;
  --hw-cream: 255 210 165;
  --hw-violet: 163 112 255;
}

/* Fundo no html e body transparente: sem isso o body cobriria os enfeites de z-index negativo e o brilho do fundo. */
body { background: transparent; }
html { scrollbar-gutter: stable; scrollbar-color: rgb(var(--hw-flame) / .55) #0e090a; }
::selection { background: rgb(var(--hw-flame) / .4); color: #fff; }
:focus-visible { outline: 2px solid rgb(var(--hw-deep)); outline-offset: 2px; }

/* Botões primários e cards de produto: brilho laranja no hover. */
.bg-primary { background-image: linear-gradient(90deg, rgb(var(--hw-coral)), rgb(var(--hw-flame))); }
@media (hover: hover) {
  .bg-primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgb(var(--hw-coral) / .35), 0 10px 28px -10px rgb(var(--hw-flame) / .85); }
  a.package:hover { box-shadow: 0 0 0 1px rgb(var(--hw-flame) / .38), 0 18px 40px -18px rgb(var(--hw-flame) / .6); }
}

/* Teias nos cantos de cima, atrás do conteúdo. */
.hw-webs {
  --web-w: clamp(150px, 20vw, 400px);
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--web-w) * .908);
  overflow: hidden; pointer-events: none; z-index: -1;
}
.hw-web { position: absolute; top: 0; width: var(--web-w); aspect-ratio: 640 / 581; }
.hw-web::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hw-img-web) no-repeat 0 0 / 100% 100%;
  transform-origin: 0 0; rotate: var(--wr, 0deg);
  opacity: .8; animation: hw-web 9s ease-in-out infinite;
}
/* Empurrada para fora na diagonal: os fios externos (a 5 e 85 graus) passam a nascer nas bordas da tela. */
.hw-web--l { left: calc(var(--web-w) * -.1); top: calc(var(--web-w) * -.1); opacity: .7; }
.hw-webs.is-live .hw-web::before { transition: rotate .6s cubic-bezier(.22, .61, .36, 1); }
@keyframes hw-web { 50% { transform: rotate(1.4deg) scale(1.012); } }

/* Galho discreto no canto de cima à direita. */
.hw-branch {
  position: fixed; top: -14px; right: -24px; z-index: -1;
  width: clamp(160px, 18vw, 340px); aspect-ratio: 1024 / 475;
  pointer-events: none; opacity: .55; transform-origin: 100% 0;
  animation: hw-sway 11s ease-in-out infinite;
}
.hw-branch::before { content: ""; position: absolute; inset: 0; background: var(--hw-img-branch) no-repeat center / contain; }
@keyframes hw-sway { 50% { transform: rotate(-1.4deg); } }

/* Bonecos flutuantes: só quando sobra margem fora do maior container do tema (max-w-screen-2xl = 1536px).
   Cada um tem posição própria dentro da margem (--x), tamanho e giro diferentes; os --far ficam desfocados,
   como se estivessem mais longe, e entram em foco no hover. */
.hw-floats { --gut: calc((100vw - 1536px) / 2); position: fixed; inset: 0; z-index: 20; pointer-events: none; display: none; }
@media (min-width: 1800px) { .hw-floats { display: block; } }
.hw-fl { position: absolute; top: var(--y); width: 0; height: 0; will-change: transform; }
.hw-floats.is-live .hw-fl { transition: translate .5s cubic-bezier(.22, .61, .36, 1), rotate .5s cubic-bezier(.22, .61, .36, 1); }
.hw-fl--l { left: calc(var(--gut) * var(--x, .5)); }
.hw-fl--r { right: calc(var(--gut) * var(--x, .5)); }
.hw-fl__hit {
  position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: auto;
  width: min(var(--w), calc(var(--gut) * var(--cap, .62))); aspect-ratio: 1;
}
.hw-fl__bob { position: absolute; inset: 0; animation: hw-bob var(--t, 7s) ease-in-out var(--dl, 0s) infinite; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1); }
.hw-fl__glow {
  position: absolute; inset: -28%; border-radius: 50%; opacity: 0; scale: .6;
  background: radial-gradient(closest-side, rgb(var(--hw-flame) / .42), rgb(var(--hw-deep) / .12) 58%, transparent);
  transition: opacity .4s ease, scale .5s ease;
}
.hw-fl__img { position: absolute; inset: 0; background: no-repeat center / contain; opacity: .92; transition: opacity .4s ease, filter .45s ease; }
.hw-fl--far .hw-fl__img { filter: blur(3px) saturate(.8); opacity: .5; }
.hw-fl.is-hot .hw-fl__bob { scale: 1.22; }
.hw-fl.is-hot .hw-fl__glow { opacity: 1; scale: 1; }
.hw-fl.is-hot .hw-fl__img { opacity: 1; filter: none; }
.hw-fl--1 .hw-fl__img { background-image: var(--hw-img-f1); }
.hw-fl--2 .hw-fl__img { background-image: var(--hw-img-f2); }
.hw-fl--3 .hw-fl__img { background-image: var(--hw-img-f3); }
.hw-fl--4 .hw-fl__img { background-image: var(--hw-img-f4); }
@keyframes hw-bob { 50% { transform: translate3d(0, -10px, 0) rotate(var(--r, 5deg)); } }

/* Ícones pequenos: abóbora + doce na borda do rodapé. */
.hw-icon { display: block; pointer-events: none; background: no-repeat center bottom / contain; transform-origin: 50% 100%; animation: hw-wobble var(--t, 5s) ease-in-out var(--dl, 0s) infinite; }
.hw-ft-decor { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; z-index: 2; }
.hw-ft-decor .hw-icon { position: absolute; bottom: -6px; }
.hw-ft-decor .p1 { left: max(16px, calc(50% - 640px)); width: 36px; height: 36px; background-image: var(--hw-img-icon-pumpkin); --t: 5.6s; }
.hw-ft-decor .p2 { left: max(58px, calc(50% - 598px)); width: 28px; height: 30px; background-image: var(--hw-img-icon-candy); --t: 4.8s; --dl: -1.6s; }
@keyframes hw-wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

@media (max-width: 767px) {
  .hw-webs { --web-w: clamp(140px, 44vw, 220px); }
  .hw-branch { width: 130px; opacity: .3; }
  .hw-ft-decor .p1 { width: 30px; height: 30px; }
  .hw-ft-decor .p2 { left: 54px; width: 24px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-web::before, .hw-branch, .hw-fl__bob, .hw-icon { animation: none !important; }
  .hw-fl, .hw-fl__bob, .hw-fl__glow, .hw-web::before { transition: none !important; }
  .bg-primary { transition: none; }
}

/* Celular: o primeiro título de categoria fica logo abaixo do seletor "Categorias"; os seguintes mantêm o respiro. */
@media (max-width: 639px) { #categories-container > div > :first-child { margin-top: .75rem; } }

/* Título de categoria da home: a abóbora cubo no lugar do losango do divisor, balançando com brilho quente. */
.hw-cat-pumpkin { position: relative; display: block; width: 26px; height: 26px; margin-inline: 2px; background: var(--hw-img-icon-pumpkin) no-repeat center / contain; transform-origin: 50% 90%; animation: hw-wobble 4.8s ease-in-out infinite; }
.hw-cat-pumpkin::before { content: ""; position: absolute; inset: -60%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--hw-flame) / .35), transparent); animation: hw-breathe 3.6s ease-in-out infinite; }
@keyframes hw-breathe { 50% { opacity: .45; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .hw-cat-pumpkin, .hw-cat-pumpkin::before { animation: none; } }

/* Título de subcategoria (pílula): teia fina no canto de dentro e morceguinho pousado na borda de cima. */
.hw-sub { position: relative; isolation: isolate; }
.hw-sub::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 38px; z-index: -1; border-top-left-radius: inherit; pointer-events: none; opacity: .6; background: var(--hw-img-web) no-repeat 0 0 / 100% 100%; }
.hw-sub::after { content: ""; position: absolute; top: -13px; right: 14px; width: 22px; height: 17px; pointer-events: none; background: var(--hw-img-f3) no-repeat center / contain; transform-origin: 50% 0; animation: hw-perch 5.2s ease-in-out infinite; }
@keyframes hw-perch { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(1px); } }
@media (max-width: 639px) { .hw-sub::after { width: 18px; height: 14px; top: -11px; right: 10px; } }
@media (prefers-reduced-motion: reduce) { .hw-sub::after { animation: none; } }
