/* ABRS seasonal decorations — isolated from original site */
.abrs-seasonal-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  contain: layout style paint;
}

.abrs-seasonal-item {
  position: absolute;
  top: -50px;
  left: var(--x);
  opacity: 0;
  font-size: var(--size);
  line-height: 1;
  user-select: none;
  animation: abrs-seasonal-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.abrs-seasonal-inner {
  display: block;
  animation: abrs-seasonal-sway var(--sway-duration)
    ease-in-out infinite alternate;
}

@keyframes abrs-seasonal-fall {
  0% {
    transform: translate3d(0, -50px, 0);
    opacity: 0;
  }
  5% { opacity: var(--opacity); }
  95% { opacity: var(--opacity); }
  100% {
    transform: translate3d(var(--drift), 115vh, 0);
    opacity: 0;
  }
}

@keyframes abrs-seasonal-sway {
  from { transform: translateX(-9px) rotate(-12deg); }
  to   { transform: translateX(9px) rotate(12deg); }
}

.abrs-seasonal-item--bauble .abrs-seasonal-inner {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: radial-gradient(circle at 30% 25%, #a5fff1, #146f92 70%);
  box-shadow: 0 0 9px rgba(92,236,255,.25);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: white;
}

@media (max-width:700px) {
  .abrs-seasonal-item { font-size: min(var(--size), 19px); }
  .abrs-seasonal-item--bauble .abrs-seasonal-inner {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abrs-seasonal-layer { display: none; }
}


/* ABRS FUTURISTIC HALLOWEEN HERO */
.abrs-halloween-banner {
  display: none;
  position: absolute;
  z-index: 5;
  left: 5%;
  right: 5%;
  bottom: 38px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,155,35,.25);
  background: linear-gradient(90deg,
    transparent,
    rgba(38,17,56,.65),
    rgba(65,28,12,.72),
    rgba(38,17,56,.65),
    transparent);
  box-shadow:
    0 0 28px rgba(255,111,0,.14),
    inset 0 0 22px rgba(255,135,0,.07);
  animation: abrs-halloween-appear 7s ease-in-out infinite;
}

.abrs-halloween-text {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: clamp(17px, 2.1vw, 29px);
  font-weight: 900;
  letter-spacing: .13em;
  color: #ffbc55;
  text-shadow:
    0 0 5px #fff0c0,
    0 0 12px #ff8900,
    0 0 25px #ff6500,
    0 0 45px rgba(255,70,0,.8);
  animation: abrs-halloween-glow 3s ease-in-out infinite alternate;
}

.abrs-halloween-symbol {
  color: #5cecff;
  font-size: 19px;
  text-shadow: 0 0 10px #5cecff, 0 0 24px #ac78ff;
  animation: abrs-halloween-spark 2.5s ease-in-out infinite alternate;
}

@keyframes abrs-halloween-appear {
  0%, 12%, 94%, 100% {
    opacity: 0;
    transform: translateY(18px) scale(.94);
    filter: blur(5px);
  }
  25%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes abrs-halloween-glow {
  from { filter: brightness(.85); }
  to { filter: brightness(1.5); }
}

@keyframes abrs-halloween-spark {
  from { opacity: .35; transform: scale(.8) rotate(-25deg); }
  to { opacity: 1; transform: scale(1.2) rotate(25deg); }
}

@media(max-width:700px) {
  .abrs-halloween-banner {
    bottom: 28px;
    left: 3%;
    right: 3%;
    gap: 6px;
    padding: 12px 4px;
  }
  .abrs-halloween-text {
    font-size: clamp(13px, 4vw, 20px);
    letter-spacing: .055em;
  }
  .abrs-halloween-symbol { font-size: 13px; }
}

@media(prefers-reduced-motion:reduce) {
  .abrs-halloween-banner,
  .abrs-halloween-text,
  .abrs-halloween-symbol {
    animation: none !important;
    filter: none;
    opacity: 1;
  }
}

body[data-abrs-season="halloween"] .abrs-halloween-banner {
  display: flex;
}


/* ABRS Halloween Ghostface masks */
.abrs-halloween-mask {
  width: 39px;
  height: 51px;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 6px #ff7800)
    drop-shadow(0 0 13px rgba(172,120,255,.7));
  animation: abrs-mask-float 3.5s ease-in-out infinite alternate;
}

.abrs-halloween-mask:last-child {
  animation-delay: -1.75s;
}

@keyframes abrs-mask-float {
  from { transform: translateY(3px) rotate(-5deg); }
  to { transform: translateY(-4px) rotate(5deg); }
}

@media(max-width:700px) {
  .abrs-halloween-mask {
    width: 25px;
    height: 34px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .abrs-halloween-mask { animation: none; }
}


/* ABRS GHOSTFIRE V1 */
/* Solo decorazione Halloween: logo e animazioni originali invariati */

body[data-abrs-season="halloween"] .abrs-halloween-banner {
  overflow: visible;
  isolation: isolate;
  gap: 0;
}

body[data-abrs-season="halloween"] .abrs-halloween-mask {
  width: clamp(95px, 12vw, 165px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 9px rgba(255, 100, 0, .9))
    drop-shadow(0 0 18px rgba(165, 45, 255, .65));
  animation: abrs-ghostfire-float 4s ease-in-out infinite alternate;
}

body[data-abrs-season="halloween"] .abrs-halloween-mask:first-child {
  margin-right: -18px;
}

body[data-abrs-season="halloween"] .abrs-halloween-mask:last-child {
  margin-left: -18px;
  animation-delay: -2s;
}

body[data-abrs-season="halloween"] .abrs-halloween-text {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  text-shadow:
    0 0 7px #ff6a00,
    0 0 16px #ff4200,
    0 0 28px rgba(255, 100, 0, .8),
    0 0 42px rgba(170, 45, 255, .5);
}

@keyframes abrs-ghostfire-float {
  from { transform: translateY(4px) rotate(-3deg); }
  to   { transform: translateY(-5px) rotate(3deg); }
}

@media (max-width: 700px) {
  body[data-abrs-season="halloween"] .abrs-halloween-mask {
    width: clamp(65px, 19vw, 95px);
  }

  body[data-abrs-season="halloween"] .abrs-halloween-mask:first-child {
    margin-right: -12px;
  }

  body[data-abrs-season="halloween"] .abrs-halloween-mask:last-child {
    margin-left: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-abrs-season="halloween"] .abrs-halloween-mask {
    animation: none;
  }
}


/* ABRS GHOSTFIRE POSITION V2 */
/* Halloween più in basso, logo originale invariato */

body[data-abrs-season="halloween"] .abrs-halloween-banner {
  bottom: 8px;
  left: 2%;
  right: 2%;
  padding: 4px 6px;
  min-height: 92px;
  box-sizing: border-box;
}

body[data-abrs-season="halloween"] .abrs-halloween-mask {
  width: clamp(85px, 10vw, 130px);
}

body[data-abrs-season="halloween"] .abrs-halloween-text {
  font-size: clamp(16px, 1.85vw, 26px);
  letter-spacing: .08em;
}

@media (max-width: 700px) {
  body[data-abrs-season="halloween"] .abrs-halloween-banner {
    bottom: 4px;
    left: 1%;
    right: 1%;
    min-height: 65px;
    padding: 2px;
  }

  body[data-abrs-season="halloween"] .abrs-halloween-mask {
    width: clamp(55px, 16vw, 80px);
  }

  body[data-abrs-season="halloween"] .abrs-halloween-text {
    font-size: clamp(11px, 3.5vw, 17px);
    letter-spacing: .03em;
  }
}
