:root { --cover-world: url('/assets/r55/cover/vorakh-1280.webp'); }

@media (min-width: 1280px), (min-resolution: 1.5dppx) {
  :root { --cover-world: url('/assets/r55/cover/vorakh-1920.webp'); }
}

@media (min-width: 1921px), (min-width: 1280px) and (min-resolution: 1.5dppx) {
  :root { --cover-world: url('/assets/r55/cover/vorakh-2560.webp'); }
}

.hero-exact > picture,
.hero-live-r3 > picture { display: contents; }

.franchise-home .hero-exact,
.franchise-home .hero-live-r3 {
  border-bottom-color: transparent;
  --cover-fade: linear-gradient(to bottom, #000 calc(100% - clamp(32px, 4.5vw, 70px)), transparent);
  -webkit-mask-image: var(--cover-fade);
  mask-image: var(--cover-fade);
}

@media (min-width: 761px) {
  .franchise-home .hero-exact { container-type: inline-size; }

  .hero-exact > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
  }

  .franchise-home .hero-exact > .hero-hotspot.first {
    /* Keep the hit area on the art when the 16:9 cover crops. */
    --cover-width: max(100cqw, calc(clamp(430px, 39vw, 610px) * 16 / 9));
    --cover-height: calc(var(--cover-width) * 9 / 16);
    left: calc(50% + (.0358 - .5) * var(--cover-width));
    top: calc(43% + (.5752 - .43) * var(--cover-height));
    width: calc(.2194 * var(--cover-width));
    height: calc(.0505 * var(--cover-height));
  }
}

@media (min-width: 1021px) and (hover: hover) and (pointer: fine) {
  .hero-exact > picture > img {
    position: relative;
    mix-blend-mode: lighten;
  }

  .franchise-home .hero-exact::before {
    background-image: linear-gradient(90deg, #0008, #000b 42%, #000 64%), var(--cover-world);
  }

  .franchise-home .universe-band::before {
    background-image:
      linear-gradient(90deg, #050505f2 0%, #050505c9 21%, #05050514 43%, #05050508 70%, #050505d9 86%, #050505ed),
      var(--cover-world);
  }
}

@media screen {
  html:has(.franchise-home > #franchise:target) {
    scroll-behavior: auto;
  }

  .site-shell:not(.intro-shell) > .header {
    position: sticky;
    top: 0;
  }
}

@media screen and (max-width: 1100px) {
  .site-shell:not(.intro-shell) > .header .nav.open {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
}
