/* Shared cinematic treatment for the nitrogen field guide. */
html,
body {
  overflow-x: clip;
}

.illustrated-hero,
.standard-image-hero,
.game-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  min-height: clamp(480px, 56vw, 620px);
  margin: 0 calc(50% - 50vw) 30px;
  border-radius: 0;
  color: #fff;
  background-color: #071329;
  box-shadow: 0 18px 45px #0713292a;
}

.illustrated-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 48% 48px max(24px, calc((100vw - 1160px) / 2 + clamp(24px, 5vw, 62px)));
  background-image: radial-gradient(circle at 22% 12%, #173868 0, #071329 56%);
}

.standard-image-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.standard-image-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: linear-gradient(90deg, #071329 0%, #071329eb 27%, #07132948 76%), var(--hero-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.standard-image-hero .inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px clamp(24px, 5vw, 62px);
}

.standard-image-hero > * {
  position: relative;
  z-index: 1;
}

.standard-image-hero:not(:has(.inner)) {
  align-items: flex-start;
  justify-content: center;
  padding: 60px max(24px, calc((100vw - 1160px) / 2));
}

.standard-image-hero:not(:has(.inner)) .eyebrow {
  max-width: 850px;
  color: #38e8ff;
}

.standard-image-hero:not(:has(.inner)) h1 {
  max-width: 850px;
  margin: 12px 0 16px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .95;
}

.standard-image-hero:not(:has(.inner)) p {
  max-width: 700px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
}

.standard-image-hero h1 {
  color: #fff;
  text-shadow: 0 3px 20px #071329b8;
}

.standard-image-hero p {
  color: #f3f7ff;
  text-shadow: 0 2px 12px #071329b8;
}

.illustrated-hero > :not(.hero-art) {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.illustrated-hero .eyebrow {
  color: #38e8ff;
}

.illustrated-hero h1 {
  max-width: 700px;
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: .98;
}

.illustrated-hero p {
  max-width: 630px;
  color: #e0e8f5;
  line-height: 1.68;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #071329 0%, #071329eb 24%, #0713295c 61%, #07132915 100%), linear-gradient(0deg, #07132952, transparent 42%);
}

.game-hero {
  display: flex;
  align-items: center;
  padding: 48px 48% 48px 0;
}

.game-main {
  max-width: 1160px;
}

.game-box,
.game-note {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.game-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 35px 0 35px 38px;
}

.game-hero .eyebrow {
  color: #38e8ff;
}

.game-hero h1 {
  margin: 14px 0;
  color: #fff;
  font: 700 clamp(2.4rem, 5vw, 4.6rem)/.98 'Space Grotesk', sans-serif;
  letter-spacing: -.06em;
}

.game-hero .game-intro {
  max-width: 610px;
  color: #e0e8f5;
  font-size: 1.05rem;
  line-height: 1.7;
}

.game-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.game-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #071329 0%, #071329eb 24%, #0713295c 61%, #07132915 100%), linear-gradient(0deg, #07132944, transparent 42%);
}

@media (max-width: 760px) {
  .illustrated-hero,
  .standard-image-hero,
  .game-hero {
    min-height: 0;
    min-height: 520px;
    margin: 0 calc(50% - 50vw) 28px;
    border-radius: 0;
  }

  .illustrated-hero {
    justify-content: flex-start;
    padding: 34px 23px 245px;
  }

  .standard-image-hero {
    align-items: flex-start;
  }

  .standard-image-hero:not(:has(.inner)) {
    justify-content: flex-start;
    padding: 40px 23px 245px;
  }

  .standard-image-hero .inner {
    padding: 40px 23px 245px;
  }

  .standard-image-hero::before {
    background-image: linear-gradient(180deg, #071329 0%, #071329d9 35%, #0713292b 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
  }

  .illustrated-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero-art {
    inset: 0;
  }

  .hero-art::after {
    background: linear-gradient(180deg, #071329 0%, #071329dc 38%, #0713294a 100%), linear-gradient(0deg, #07132933, transparent 40%);
  }

  .game-hero {
    align-items: flex-start;
    padding: 34px 23px 245px;
  }

  .game-hero-copy {
    padding: 0;
  }

  .game-hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }

  .game-hero-art {
    inset: 0;
  }

  .game-hero-art::after {
    background: linear-gradient(180deg, #071329 0%, #071329dc 38%, #0713294a 100%);
  }
}
