/* Shared hero layout for the homepage, game pages and guides. */
.hero-area {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.hero-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0b162aeb 0%, #0b162ad1 30%, #0b162a80 48%, #0b162a1f 70%, #0b162a05 100%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero-backdrop .hero-image {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: right top;
}

.hero-copy {
  width: 56%;
  max-width: 680px;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 56px);
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 3.3vw, 3.65rem);
}

.hero-copy p {
  margin: 0;
  color: #dbe7f5;
  line-height: 1.55;
}

.hero-buttons {
  margin-top: 24px;
  justify-content: center;
}

.hero-buttons .btn--primary {
  justify-content: center;
  width: 100%;
  max-width: 380px;
  min-height: 64px;
  padding: 16px 32px;
  border: 1px solid #f7d997;
  border-radius: 16px;
  background: linear-gradient(115deg, #e4b957, #f7d88e);
  color: #10213b;
  box-shadow: 0 8px 24px #e4b95726, inset 0 1px 0 #ffffff66;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .015em;
  transition: background .18s ease, box-shadow .18s ease;
}

.hero-buttons .btn--primary:hover {
  background: linear-gradient(115deg, #edc56b, #ffe3a4);
  box-shadow: 0 10px 28px #e4b95738, inset 0 1px 0 #ffffff80;
}

.hero-buttons .btn--primary:active {
  box-shadow: 0 3px 12px #e4b95726, inset 0 2px 4px #10213b1a;
}

/* Text-only guides share the hero layout with room for longer headings. */
.hero-area--guide {
  min-height: 320px;
  background: radial-gradient(ellipse at 85% 25%, #24475b, transparent 60%), linear-gradient(115deg, #0f172a, #162845);
}

.hero-area--guide .hero-copy {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .hero-area {
    min-height: 400px;
  }

  .hero-area--guide {
    min-height: 320px;
  }

  .hero-area::before {
    background: linear-gradient(90deg, #0b162aee 0%, #0b162ad1 55%, #0b162a52 100%);
  }

  .hero-copy {
    width: 65%;
    padding: 48px 32px;
  }
}

@media (max-width: 640px) {
  .hero-area {
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-area::before {
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, #0f172ad9 0%, #0f172ae8 50%, #0f172af5 100%);
  }

  .hero-backdrop {
    inset: 0;
    height: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 28px 24px 32px;
    text-align: center;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 7.5vw, 2.25rem);
    line-height: 1.12;
  }

  .hero-copy p {
    max-width: 36ch;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-buttons {
    margin-top: 24px;
  }

  .hero-backdrop .hero-image {
    object-position: center top;
  }
}
