/* Fill every public game-image container and crop evenly from the center. */
.grid .cover,
.related > div:last-child > a {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.visual > img,
.article > img {
  object-fit: cover !important;
  object-position: center !important;
}

/* Use the artwork as a cinematic backdrop beneath the whole hero block. */
.game-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr !important;
  min-height: 610px;
  background: #09101e !important;
}

.game-hero .hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 690px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .46);
}

.game-hero .visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(28, 66, 91, .34), transparent 54%),
    linear-gradient(135deg, #0c1728, #060b14) !important;
}

.game-hero .visual > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(.92) brightness(.78);
  transform: none;
}

.game-hero .visual::after {
  z-index: 2;
  background:
    linear-gradient(90deg, #0b1325 0%, rgba(11, 19, 37, .96) 28%, rgba(11, 19, 37, .7) 58%, rgba(7, 12, 23, .2) 100%),
    linear-gradient(0deg, rgba(5, 9, 18, .72), transparent 42%, rgba(5, 9, 18, .25)) !important;
  pointer-events: none;
}

.game-hero .visual > span {
  display: none;
}

@media (max-width: 800px) {
  .game-hero {
    min-height: 0;
  }

  .game-hero .visual {
    grid-row: auto;
  }

  .game-hero .visual::after {
    background: linear-gradient(90deg, rgba(8, 14, 27, .94), rgba(8, 14, 27, .72)),
      linear-gradient(0deg, rgba(5, 9, 18, .82), transparent 55%) !important;
  }
}

.related > div:last-child > a {
  position: relative;
  overflow: hidden;
}

.related > div:last-child > a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080d19f2 0, #080d1980 42%, transparent 72%);
  pointer-events: none;
}

.related > div:last-child > a > span,
.related > div:last-child > a > small {
  position: relative;
  z-index: 1;
}

.related .section-head {
  align-items: end;
  gap: 24px;
}

.related .section-head > a {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 0;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(14, 23, 41, .8);
  color: #aeb9ce;
  white-space: nowrap;
}

.related .section-head > a:hover {
  transform: none;
  border-color: rgba(124, 101, 255, .45);
  color: #fff;
}
