/* InazumArcade V887 — New Year header fireworks use the same burst style as the
   lower information panels, with staggered placement and strict card clipping.
   No card geometry, artwork, lower panels, Halloween or Christmas rules are changed. */

.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year {
  overflow:hidden!important;
}

/* Keep the upper decoration layer confined to the card's header strip. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-special-effects {
  position:absolute!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  height:23px!important;
  max-height:23px!important;
  overflow:hidden!important;
  clip-path:inset(0 0 0 0)!important;
  z-index:8!important;
  pointer-events:none!important;
}

/* Match the lower-panel fireworks: conic rays, glowing centre and the same
   expanding/fading burst animation. The three blooms are intentionally offset
   vertically as well as horizontally, instead of forming a straight row. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-b,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c {
  position:absolute!important;
  display:block!important;
  bottom:auto!important;
  right:auto!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  box-shadow:none!important;
  pointer-events:none!important;
  background:
    repeating-conic-gradient(from 6deg,var(--ia-v883-firework) 0deg 2.8deg,transparent 3.2deg 14deg),
    radial-gradient(circle,#fff 0 1.2px,var(--ia-v883-firework) 1.8px 3.2px,transparent 4.8px)!important;
  background-size:100% 100%!important;
  filter:drop-shadow(0 0 4px var(--ia-v883-glow))!important;
  mix-blend-mode:screen!important;
  opacity:0;
  transform-origin:center!important;
  animation:ia-v883-firework-burst 3.4s cubic-bezier(.16,.7,.22,1) infinite!important;
}

/* Left: gold, near the upper-left corner. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-a {
  left:11%!important;
  top:1px!important;
  width:15px!important;
  height:15px!important;
  --ia-v883-firework:#ffe18a;
  --ia-v883-glow:#ffc84e;
  animation-delay:-.4s!important;
}

/* Centre: smaller cyan burst, visibly lower than the other two. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-b {
  left:49%!important;
  top:8px!important;
  width:12px!important;
  height:12px!important;
  --ia-v883-firework:#8feaff;
  --ia-v883-glow:#47ceff;
  animation-delay:-1.6s!important;
}

/* Right: pink burst, offset between the heights of A and B. */
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-c {
  left:82%!important;
  top:3px!important;
  width:14px!important;
  height:14px!important;
  --ia-v883-firework:#ff9bd5;
  --ia-v883-glow:#ff63bd;
  animation-delay:-2.5s!important;
}

/* Remove the old extra ring/star layers: the lower panels use the cleaner
   radial burst by itself, and the header now follows that exact visual style. */
.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-b::before,
.ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-effect-b::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:none!important;
  display:none!important;
  animation:none!important;
}

@media(prefers-reduced-motion:reduce) {
  .ia-os-card.ia-v797-special-card.ia-v797-event.ia-v877-seasonal-event.ia-v877-event-new-year .ia-v797-special-effects * {
    animation:none!important;
    transition:none!important;
  }
}
