/* InazumArcade V880 — one shared Halloween card identity.
   All three Halloween EVENT cards deliberately use the exact same palette,
   frame, ornaments and animations. Only their player/artwork/card data differ.
   Decorative-only: card dimensions, artwork window and information layout stay unchanged. */

/* The :is() group intentionally applies one identical rule set to Alice, Flora,
   and Torch & Gazelle. The extra repeated family class wins over legacy per-card
   overrides in V569/V571 without editing those historical files. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
){
  --ia-v880-halloween-orange:#ff963f;
  --ia-v880-halloween-purple:#a76ce6;
  --ia-v880-halloween-cream:#ffe4b2;
  background:radial-gradient(ellipse at 50% -12%,#3b1b50 0%,#20132b 39%,#100d19 78%,#090a11 100%)!important;
  border-color:var(--ia-v880-halloween-orange)!important;
  box-shadow:0 0 0 1px #ffbd6b88 inset,0 12px 34px #000d,
    0 0 19px #a34ce077,0 0 29px #ff8c353d!important;
  animation:ia-v880-halloween-aura 5.4s ease-in-out infinite!important;
}

.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
)::before{
  inset:4px!important;
  border:2px solid var(--ia-v880-halloween-orange)!important;
  border-radius:9px!important;
  clip-path:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  background:none!important;
  box-shadow:inset 0 0 15px #a64dd02b,0 0 13px #ff943f88!important;
  animation:ia-v880-halloween-frame 4.2s ease-in-out infinite!important;
}

/* Shared top band and HALLOWEEN LIMITED label. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-head{
  color:#ffe0aa!important;
  text-shadow:0 0 9px #a953df,0 0 13px #f07b35!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-head b{
  color:#fff1d2!important;
  background:linear-gradient(100deg,#57266e,#9b481f 55%,#5a2c72)!important;
  border-color:#ffb765!important;
  box-shadow:0 0 12px #a34fdb88,0 0 9px #ff8c3566!important;
}

/* Same artwork-window border on each card. Effects are never painted over it. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-art{
  border-color:#eaa052!important;
  box-shadow:0 0 0 1px #9d5bd877,inset 0 0 14px #a54ed022!important;
}

/* Same dark violet/orange palette for name, PO, stats and ability blocks. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-name{
  background:linear-gradient(105deg,#291536,#1a1328 54%,#321a36)!important;
  border-color:#d67b48!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-rating{
  background:linear-gradient(100deg,#3b1c47,#211529 58%,#41202f)!important;
  border-color:#d67b48!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-name strong,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-rating b,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-stats b{
  color:#fff2df!important;
  text-shadow:0 0 8px #f18a43,0 0 11px #a955d1!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-name small,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-rating em,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-stats small,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-ability small{
  color:#ffc27d!important;
  text-shadow:0 0 7px #a952d477!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-stats span{
  background:linear-gradient(140deg,#34203f,#23172e 62%,#40252f)!important;
  border-color:#bc754c!important;
  box-shadow:inset 0 0 11px #b15bd122!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-ability{
  background:linear-gradient(110deg,#49224f,#25182f 60%,#48252e)!important;
  border-color:#dc8b54!important;
  box-shadow:0 0 12px #9f50ce44!important;
}

/* One shared Halloween animation layer: pumpkin glow, bats and orange/violet motes. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-effects{
  z-index:5!important;
  inset:0!important;
  height:auto!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-art{
  position:relative!important;
  z-index:6!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-a{
  left:0!important;right:0!important;top:7%!important;bottom:auto!important;
  width:100%!important;height:42%!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  opacity:.76!important;mix-blend-mode:screen!important;
  background:
    radial-gradient(circle,#ffd58c 0 1.5px,transparent 3px) 5% 10%/31px 43px,
    radial-gradient(circle,#c68bf2 0 1.4px,transparent 3px) 19px 16px/47px 59px,
    radial-gradient(circle,#ff944c 0 1.2px,transparent 2.8px) 7px 22px/73px 67px!important;
  animation:ia-v880-halloween-motes 10s linear infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-b{
  inset:5px!important;left:5px!important;right:5px!important;top:5px!important;bottom:5px!important;
  width:auto!important;height:auto!important;transform:none!important;
  border:1px solid #efa75a88!important;border-radius:9px!important;
  background:
    radial-gradient(circle,#ffd28c 0 1.7px,transparent 3px) 0 0/24px 18px repeat-x,
    radial-gradient(circle,#b77de5 0 1.5px,transparent 3px) 0 100%/31px 18px repeat-x,
    radial-gradient(circle,#ff9a4f 0 1.5px,transparent 3px) 0 0/25px 20px repeat-y,
    radial-gradient(circle,#9862ce 0 1.5px,transparent 3px) 100% 0/25px 20px repeat-y!important;
  box-shadow:0 0 12px #d7834e55,inset 0 0 11px #a64c9b22!important;
  opacity:.78!important;
  animation:ia-v880-halloween-lanterns 4s ease-in-out infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-c{
  left:-55%!important;top:8%!important;right:auto!important;bottom:auto!important;
  width:55%!important;height:39%!important;border:0!important;clip-path:none!important;
  transform:rotate(21deg)!important;
  background:linear-gradient(112deg,transparent 30%,#e0a1ff12 43%,#ffd59a55 50%,#b78aff44 54%,transparent 67%)!important;
  animation:ia-v880-halloween-sweep 7.5s ease-in-out infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-mark{
  position:absolute!important;top:49%!important;right:8px!important;left:auto!important;
  width:auto!important;font-size:0!important;line-height:1!important;
  color:transparent!important;text-shadow:none!important;opacity:.94!important;
  animation:ia-v880-halloween-mark 4.3s ease-in-out infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-mark::before{
  content:'🎃'!important;position:absolute!important;right:0!important;top:0!important;
  font-size:23px!important;line-height:1!important;color:#ffe0a6!important;
  text-shadow:0 0 8px #fff0c4,0 0 18px #ee7b3b,0 0 27px #a54bc7!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-effect-mark::after{
  content:'🦇'!important;position:absolute!important;left:-23px!important;top:14px!important;
  font-size:15px!important;line-height:1!important;color:#e5c4ff!important;
  text-shadow:0 0 8px #aa66db!important;
}

@keyframes ia-v880-halloween-aura{
  0%,100%{box-shadow:0 0 0 1px #ffbd6b88 inset,0 12px 34px #000d,0 0 15px #a34ce055,0 0 22px #ff8c352d}
  50%{box-shadow:0 0 0 1px #ffd18eaa inset,0 12px 34px #000d,0 0 24px #a34ce088,0 0 34px #ff8c3555}
}
@keyframes ia-v880-halloween-frame{0%,100%{opacity:.76}50%{opacity:1}}
@keyframes ia-v880-halloween-motes{0%{background-position:5% 10%,19px 16px,7px 22px}100%{background-position:34% 72%,82px 105px,81px 89px}}
@keyframes ia-v880-halloween-lanterns{0%,100%{opacity:.55;filter:brightness(.9)}50%{opacity:.9;filter:brightness(1.2)}}
@keyframes ia-v880-halloween-sweep{0%,100%{left:-55%;opacity:0}34%{opacity:.35}64%{left:100%;opacity:.55}65%{opacity:0}}
@keyframes ia-v880-halloween-mark{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(4deg)}}

@media(prefers-reduced-motion:reduce){
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
    .ia-v877-card-event-halloween-alice,
    .ia-v877-card-event-halloween-flora,
    .ia-v877-card-event-halloween-torch-gazelle
  ),
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween.ia-v877-event-halloween:is(
    .ia-v877-card-event-halloween-alice,
    .ia-v877-card-event-halloween-flora,
    .ia-v877-card-event-halloween-torch-gazelle
  ) *{animation:none!important;transition:none!important}
}
