/* The effects sit between the nebula background and the interactive collage. */
.spellweave {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.spellweave-art {
  position: absolute;
  top: 50%;
  right: max(-28px, calc((100% - 1340px) / 2));
  display: block;
  width: clamp(790px, 84.4vw, 1210px);
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .spellweave-art {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 50%;
    width: min(152vw, 1070px);
    transform: translateX(-64.5%);
  }
}

@media (max-width: 600px) {
  .spellweave-art {
    bottom: 0;
    width: 163vw;
  }
}

.spellweave-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.spellweave-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.spellweave-background::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101126ed, #10112672 35%, transparent 60%),
    linear-gradient(0deg, #101126db, transparent 22%, transparent 88%, #10112657);
  content: "";
}

.hero-collage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f2bb75 27%, #f9cf90 54%, #9f6fc2 78%, transparent);
  box-shadow: 0 0 12px #f6be7955;
  content: "";
  pointer-events: none;
}

@media (max-width: 900px) {
  .spellweave-background img { object-position: 71% 70%; }
  .spellweave-background::after {
    background: linear-gradient(180deg, #101126cf, #10112691 27%, transparent 64%, #101126b0);
  }
}
