.product-page:has(.thorn-gate-world) {
  --chapter-art: url("/assets/product-worlds/the-thorn-gate-desktop.webp");
  --chapter-shade: #0a080d;
}
.product-page:has(.tarantula-world) {
  --chapter-art: url("/assets/product-worlds/tarantula-desktop.webp");
  --chapter-shade: #10080c;
}
.product-page:has(:is(.thorn-gate-world, .tarantula-world)) {
  position: relative;
  isolation: isolate;
  background: var(--chapter-shade);
}
.product-page:has(:is(.thorn-gate-world, .tarantula-world))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0b080d38, #0b080d72 50%, #0b080d38),
    var(--chapter-art) center / cover no-repeat;
  pointer-events: none;
}
:is(.thorn-gate-world, .tarantula-world) > .world-stage {
  background: transparent;
}
:is(.thorn-gate-world, .tarantula-world) > .world-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(330px, 52vw, 820px);
  background:
    linear-gradient(180deg, transparent 27%, #0a080d40 66%),
    var(--chapter-art) center top / cover no-repeat;
  mask-image: linear-gradient(#000 48%, transparent);
  pointer-events: none;
}
.thorn-gate-world > .world-stage {
  padding-top: clamp(125px, 15vw, 245px);
}
.tarantula-chapter {
  box-sizing: border-box;
  padding: clamp(80px, 10vw, 158px) 5vw 24px;
  color: #f7ebe3;
  text-shadow: 0 2px 8px #0a0205, 0 1px 3px #000;
}
.tarantula-chapter .kicker {
  color: #ffcabd;
}
.tarantula-chapter > p {
  margin: 0;
}
.tarantula-chapter .tarantula-chapter-name {
  margin: 6px 0;
  font: 600 clamp(38px, 4.6vw, 72px)/1.03 Georgia, serif;
  text-wrap: balance;
}
.tarantula-chapter > p:last-child {
  font: 18px/1.4 Georgia, serif;
}

@media (max-width: 680px) {
  .product-page:has(.thorn-gate-world) {
    --chapter-art: url("/assets/product-worlds/the-thorn-gate-mobile.webp");
  }
  .product-page:has(.tarantula-world) {
    --chapter-art: url("/assets/product-worlds/tarantula-mobile.webp");
  }
  :is(.thorn-gate-world, .tarantula-world) > .world-stage::before {
    height: clamp(300px, 97vw, 560px);
  }
  .thorn-gate-world > .world-stage {
    padding-top: clamp(122px, 34vw, 195px);
  }
  .tarantula-chapter {
    padding: clamp(70px, 20vw, 118px) 6vw 18px;
  }
  .tarantula-chapter .tarantula-chapter-name {
    font-size: clamp(29px, 8vw, 42px);
  }
  .tarantula-chapter > p:last-child {
    font-size: 16px;
  }
}
