/* InazumArcade V882 — seasonal animated details continue through the lower card.
   Effects stay in the narrow side gutters; artwork window and card geometry are untouched. */

/* HALLOWEEN: the same shared pumpkin/bat/ghost decorations on all three cards.
   The two side rails carry animated motifs beside the name, stats and ability area. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::before,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::after,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::before,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  width:17px!important;height:17px!important;
  left:-5px!important;right:auto!important;
  border:0!important;border-radius:0!important;
  background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;
  filter:drop-shadow(0 0 5px #ff9a42)!important;
  opacity:.95!important;
  animation:ia-v882-halloween-float 4.8s ease-in-out infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::before {
  top:56%!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ff9b35' stroke='%23ffe0a6' stroke-width='1.3' d='M16 8c-2-5 1-7 5-6l-2 7c7-4 12 2 11 10-1 8-7 12-15 12S1 27 1 19C0 10 7 5 14 9z'/%3E%3Cpath fill='%23200d2c' d='m7 15 7 2-4 5zm12 2 7-2-3 7zm-6 7h7l-3 3z'/%3E%3C/svg%3E")!important;
  animation-delay:-.7s!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::after {
  top:82%!important;width:15px!important;height:15px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath fill='%23b982e8' stroke='%23f2d9ff' stroke-width='1.2' d='M1 7Q8 7 12 13Q15 4 16 4t4 9Q24 7 31 7Q27 14 30 20Q23 16 18 20L16 23 14 20Q8 16 2 20Q5 13 1 7Z'/%3E%3C/svg%3E")!important;
  animation-delay:-2.2s!important;filter:drop-shadow(0 0 5px #b982e8)!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::before {
  top:65%!important;left:auto!important;right:-5px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ff9b35' stroke='%23ffe0a6' stroke-width='1.3' d='M16 8c-2-5 1-7 5-6l-2 7c7-4 12 2 11 10-1 8-7 12-15 12S1 27 1 19C0 10 7 5 14 9z'/%3E%3Cpath fill='%23200d2c' d='m7 15 7 2-4 5zm12 2 7-2-3 7zm-6 7h7l-3 3z'/%3E%3C/svg%3E")!important;
  animation-delay:-1.5s!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.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::after {
  top:87%!important;left:auto!important;right:-5px!important;width:15px!important;height:15px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath fill='%23b982e8' stroke='%23f2d9ff' stroke-width='1.2' d='M1 7Q8 7 12 13Q15 4 16 4t4 9Q24 7 31 7Q27 14 30 20Q23 16 18 20L16 23 14 20Q8 16 2 20Q5 13 1 7Z'/%3E%3C/svg%3E")!important;
  animation-delay:-3.1s!important;filter:drop-shadow(0 0 5px #b982e8)!important;
}
@keyframes ia-v882-halloween-float {
  0%,100%{transform:translate3d(0,0,0) rotate(-7deg) scale(.88);opacity:.72}
  45%{transform:translate3d(3px,-7px,0) rotate(8deg) scale(1.08);opacity:1}
  72%{transform:translate3d(-1px,-3px,0) rotate(-3deg) scale(.98);opacity:.9}
}

/* NEW YEAR: four additional pyrotechnic blooms around the lower name/stats/ability zone.
   They sit in the outer gutters and are smaller than the three header fireworks. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::before,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::after,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::before,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::after {
  content:""!important;display:block!important;position:absolute!important;
  width:23px!important;height:23px!important;border:0!important;border-radius:50%!important;
  background:repeating-conic-gradient(from 2deg,var(--ia-v882-firework-core) 0deg 2deg,transparent 2.8deg 15deg),radial-gradient(circle,#fff 0 1.5px,var(--ia-v882-firework-core) 2px 3.5px,transparent 5px)!important;
  filter:drop-shadow(0 0 4px var(--ia-v882-firework-glow))!important;
  animation:ia-v882-lower-firework 3.4s cubic-bezier(.16,.7,.22,1) infinite!important;
}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a{--ia-v882-firework-core:#ffe18a;--ia-v882-firework-glow:#ffc84e}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c{--ia-v882-firework-core:#ff9bd5;--ia-v882-firework-glow:#ff63bd}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::before{left:-50px!important;top:190px!important;animation-delay:-.4s!important}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::after{left:-42px!important;top:260px!important;width:17px!important;height:17px!important;animation-delay:-2.1s!important}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::before{left:20px!important;top:210px!important;animation-delay:-1.3s!important}
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::after{left:25px!important;top:275px!important;width:18px!important;height:18px!important;animation-delay:-2.7s!important}
@keyframes ia-v882-lower-firework {
  0%,10%{transform:scale(.22) rotate(-18deg);opacity:0}
  28%{transform:scale(.78) rotate(8deg);opacity:1}
  48%{transform:scale(1.08) rotate(23deg);opacity:.98}
  73%{transform:scale(.88) rotate(39deg);opacity:.78}
  100%{transform:scale(.28) rotate(55deg);opacity:0}
}

@media(prefers-reduced-motion:reduce){
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween .ia-v797-effect-a::before,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween .ia-v797-effect-a::after,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween .ia-v797-effect-c::before,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-halloween .ia-v797-effect-c::after,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::before,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a::after,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::before,
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c::after{animation:none!important}
}
