@font-face {
  font-family: "Z-mergency UI";
  src: url("/zmergency/press/fonts/NeoDunggeunmoPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.game-hero {
  color: #fff5df;
  border-bottom: 1px solid #59605b;
  isolation: isolate;
  position: relative;
  background: #101b20 url("/zmergency/press/media/key-art.webp") 50% 63% / cover no-repeat;
  font-family: "Z-mergency UI", var(--font-body);
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #071012e8 0%, #091215c9 24%, #0b14195c 48%, transparent 73%),
    linear-gradient(0deg, #0b1216a8, transparent 34%);
}

.game-hero-inner {
  min-height: clamp(31rem, 45vw, 42rem);
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.game-hero-copy {
  flex: 0 1 39rem;
  min-width: 0;
}

.game-hero h1 {
  position: relative;
  max-width: 100%;
  width: clamp(23rem, 42vw, 37rem);
  line-height: 0;
}

.game-hero h1 img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px #0009);
}

.game-hero h1::after {
  /* The beacon on the supplied title art is centred at 27.4%, 8.3%. */
  content: "";
  pointer-events: none;
  position: absolute;
  left: 27.4%;
  top: 8.3%;
  width: 29%;
  height: 13%;
  background: radial-gradient(ellipse, #ff6645a8 0%, #fb2b1d66 14%, #ff201c29 32%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
  .game-hero h1::after {
    animation: home-beacon-sweep 1.8s linear infinite;
  }
  @keyframes home-beacon-sweep {
    0%, 100% { transform: translate(-50%, -50%) scaleX(1); opacity: .62; }
    25% { transform: translate(-50%, -50%) scaleX(.22); opacity: .92; }
    50% { transform: translate(-50%, -50%) scaleX(1); opacity: .5; }
    75% { transform: translate(-50%, -50%) scaleX(.24); opacity: .25; }
  }
}

.game-hero-copy > p {
  max-width: 34rem;
  margin: 1.45rem 0 1.8rem;
  color: #fff;
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  line-height: 1.55;
  text-shadow: 0 2px 8px #080b0d;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.game-hero-actions a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .6rem 1.05rem;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
}

.game-hero-actions a:focus-visible {
  outline-color: #a9e7ff;
}

.game-store {
  border: 1px solid #ffce77;
  background: #ffce77;
  color: #19190f;
}

.game-store:hover {
  background: #ffe1a0;
}

.game-press {
  border: 1px solid #98a09b;
  background: #101c21d9;
  color: #fff;
}

.game-press:hover {
  background: #27393c;
}

@media (max-width: 44rem) {
  .game-hero {
    background-position: 60% 55%;
  }

  .game-hero::before {
    background: linear-gradient(0deg, #081214 0%, #0a1518e0 25%, #0b151a63 65%, #0a11151a 100%);
  }

  .game-hero-inner {
    align-items: flex-end;
    min-height: 31rem;
    padding-block: 10rem 2.6rem;
  }

  .game-hero h1 {
    width: min(100%, 25rem);
  }

  .game-hero-copy > p {
    margin: 1rem 0 1.35rem;
  }
}

@media (max-width: 31rem) {
  .game-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 23rem;
  }

  .game-press {
    grid-column: 1 / -1;
  }
}

@media print {
  .game-hero {
    color: #111;
    background: #fff;
  }

  .game-hero-inner {
    min-height: auto;
    padding-block: 1.5rem;
  }

  .game-hero-copy > p {
    color: #111;
    text-shadow: none;
  }

  .game-hero-actions, .game-hero::before, .game-hero h1::after {
    display: none;
  }
}
