/* InazumArcade V881 — fix the unmatched Halloween selector from V880.
   One shared visual identity for Alice, Flora and Torch & Gazelle.
   This stylesheet changes decoration/colors only; card and artwork geometry are untouched. */

/* The family class occurs once on each card. :is() groups the three card identities. */
.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-v881-halloween-orange:#ff9138;
  --ia-v881-halloween-purple:#a965dc;
  --ia-v881-halloween-cream:#ffe0ad;
  background:radial-gradient(ellipse at 50% -10%,#47204f 0%,#281632 38%,#140d1b 77%,#0b0911 100%)!important;
  border-color:#ff9138!important;
  box-shadow:0 0 0 1px #ffbd6b88 inset,0 12px 34px #000d,
    0 0 18px #a34ce077,0 0 30px #ff8c3544!important;
  animation:ia-v881-halloween-aura 5.2s 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
)::before {
  inset:4px!important;
  border:2px solid #ff963f!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 #9d51d12e,0 0 13px #ff913888!important;
  animation:ia-v881-halloween-frame 4s ease-in-out infinite!important;
}

/* Clearly Halloween: an opaque aubergine header, with visible bat and pumpkin motifs.
   The solid header prevents the old green/holiday layer from showing through. */
.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-special-head {
  position:relative!important;
  isolation:isolate!important;
  background-color:#291333!important;
  background-image:linear-gradient(90deg,#21102b 0%,#3b1948 48%,#21102b 100%)!important;
  box-shadow:inset 0 -2px 0 #ff9138, inset 0 1px 0 #a76ce688!important;
  color:#ffe0ad!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:is(
  .ia-v877-card-event-halloween-alice,
  .ia-v877-card-event-halloween-flora,
  .ia-v877-card-event-halloween-torch-gazelle
) .ia-v797-special-head > span,
.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-special-head > b {
  position:relative!important;
  z-index:1!important;
  white-space:nowrap!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-special-head b {
  color:#fff0d6!important;
  background:linear-gradient(100deg,#51205f,#8c3d25 55%,#51205f)!important;
  border-color:#ffad5c!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
  box-shadow:0 0 11px #a34fdb88,0 0 8px #ff8c3566!important;
}


/* Real, unmistakable Halloween motifs in the header, outside the artwork window. */
.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-special-head > span::after {
  content:""!important;
  display:inline-block!important;
  width:18px!important;
  height:12px!important;
  margin-left:4px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAyMCI+PHBhdGggZD0iTTIgNWM0IDAgNiAyIDggNSAxLTQgMy03IDYtOCAzIDEgNSA0IDYgOCAyLTMgNC01IDgtNS0xIDUtMiA4LTUgMTAtMy0xLTUtMi03LTQtMiAyLTQgMy03IDRDNCAxMyAzIDEwIDIgNVoiIGZpbGw9IiNjZGEyZWUiIHN0cm9rZT0iI2ZmYjM2YiIgc3Ryb2tlLXdpZHRoPSIuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMSA4bDIgMW02LTEtMiAxIiBzdHJva2U9IiMyNDEwMmYiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=") center/contain no-repeat!important;
  filter:drop-shadow(0 0 4px #a95be8)!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-special-head > b::before {
  content:""!important;
  display:inline-block!important;
  width:12px!important;
  height:12px!important;
  margin-right:4px!important;
  vertical-align:-1px!important;
  background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDVjLTEuNi0yLjctLjUtNC4xIDIuMy00LjJMMTUuNiA1IiBmaWxsPSJub25lIiBzdHJva2U9IiNiNzdhZmYiIHN0cm9rZS13aWR0aD0iMi4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMTIgNUM4IDIuNyAzLjggNS4yIDMuMSAxMC4xIDIuMiAxNi4zIDYuMSAyMSAxMiAxOS4xYzUuOSAxLjkgOS44LTIuOCA4LjktOUMyMC4yIDUuMiAxNiAyLjcgMTIgNVoiIGZpbGw9IiNmZjk2M2YiIHN0cm9rZT0iI2ZmZTBhZCIgc3Ryb2tlLXdpZHRoPSIxLjIiLz48cGF0aCBkPSJNNy40IDkuNSAxMC4yIDEwLjYgOC44IDEyLjRabTkuMiAwLTIuOCAxLjEgMS40IDEuOFpNOC4xIDE0LjVjMi40IDEuOSA1LjQgMS45IDcuOCAwbC0xLjEgMi4xaC01LjZaIiBmaWxsPSIjMjUxMTJjIiBzdHJva2U9IiMyNTExMmMiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") center/contain no-repeat!important;
  filter:drop-shadow(0 0 4px #ff9138)!important;
}
/* Same orange/purple artwork frame on all three cards; no effect enters the image. */
.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-special-art {
  border-color:#f39a4e!important;
  box-shadow:0 0 0 1px #a65cda88,inset 0 0 14px #9b42ba24!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-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: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: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: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: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: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: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: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: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: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: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 common Halloween frame: glowing orange side rails, purple web-like inner rim.
   The rails remain in the narrow outside margins; the art window stays above effects. */
.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-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: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:2px!important;right:auto!important;top:38px!important;bottom:9px!important;
  width:5px!important;height:auto!important;margin:0!important;
  border:0!important;border-radius:4px!important;box-shadow:0 0 9px #ff913888!important;
  background:repeating-linear-gradient(180deg,#ff963f 0 5px,#a965dc 5px 8px,transparent 8px 16px)!important;
  opacity:.88!important;
  animation:ia-v881-halloween-rail-left 6.2s ease-in-out infinite!important;
}
/* V869 added snowfall with pseudo-elements on EVENT cards globally. Remove those
   inherited flakes from Halloween so no Christmas particles survive on the frame. */
.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 {
  content:none!important;
  display:none!important;
  background:none!important;
  animation:none!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-b {
  inset:4px!important;left:4px!important;right:4px!important;top:4px!important;bottom:4px!important;
  width:auto!important;height:auto!important;transform:none!important;
  border:1px dashed #b77cddbb!important;border-radius:9px!important;
  background:none!important;
  box-shadow:inset 0 0 12px #9c51d022,0 0 9px #a45acb55!important;
  opacity:.9!important;
  animation:ia-v881-halloween-rim 4.5s 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-c {
  left:auto!important;right:2px!important;top:38px!important;bottom:9px!important;
  width:5px!important;height:auto!important;
  border:0!important;border-radius:4px!important;clip-path:none!important;transform:none!important;
  background:repeating-linear-gradient(180deg,#a965dc 0 5px,#ff963f 5px 8px,transparent 8px 16px)!important;
  box-shadow:0 0 9px #a965dc88!important;
  opacity:.88!important;
  animation:ia-v881-halloween-rail-right 7s 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-mark {
  display:none!important;
}

@keyframes ia-v881-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-v881-halloween-frame {0%,100%{opacity:.76}50%{opacity:1}}
@keyframes ia-v881-halloween-rail-left {0%,100%{filter:brightness(.85);opacity:.62}50%{filter:brightness(1.3);opacity:1}}
@keyframes ia-v881-halloween-rail-right {0%,100%{filter:brightness(1.2);opacity:1}50%{filter:brightness(.8);opacity:.65}}
@keyframes ia-v881-halloween-rim {0%,100%{border-color:#a965dc99;box-shadow:inset 0 0 8px #9c51d011,0 0 7px #a45acb33}50%{border-color:#ff963fcc;box-shadow:inset 0 0 13px #9c51d033,0 0 12px #ff963f66}}

@media(prefers-reduced-motion:reduce){
  .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-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
  ) * {animation:none!important;transition:none!important}
}
