.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  margin-block-start: calc(var(--header-h) * -1);
  padding-block-start: var(--header-h);
  overflow: hidden;
  color: var(--color-on-dark);
}

.hero--home {
  min-height: 72vh;
  padding-block-end: 0;
}

.hero--home .hero__inner {
  padding-block-start: var(--space-8);
  padding-block-end: var(--space-6);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 14, 27, 0.55) 0%,
    rgba(13, 14, 27, 0.65) 45%,
    rgba(13, 14, 27, 0.96) 100%
  );
}

.hero--home .hero__overlay {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(10, 19, 29, 0.62), transparent 70%),
    linear-gradient(180deg, rgba(10, 19, 29, 0.28), rgba(10, 19, 29, 0.2) 52%, rgba(10, 19, 29, 0.9));
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-9);
}

.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-on-dark-soft);
  margin-block-end: var(--space-4);
}

.hero__title {
  margin-block-end: var(--space-5);
}

.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--color-on-dark-soft);
  margin-block-end: var(--space-7);
}

.hero--home .hero__title,
.hero--home .hero__subtitle {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero--home .hero__subtitle {
  color: #f3f5f8;
  margin-block-end: var(--space-5);
}

.hero--home .hero__bg-img {
  object-position: center top;
}

.hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 328px;
  margin: 0 auto var(--space-5);
}

.hero__game {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: transform var(--dur-base) var(--ease-standard);
}

.hero__game:hover {
  transform: translateY(-4px);
}

.hero__game:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero__game img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
}

.hero__scroll-hint::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  animation: scrollHint 1.8s var(--ease-standard) infinite;
}

[dir="rtl"] .hero__scroll-hint::before {
  transform: translateX(50%);
}

@keyframes scrollHint {
  0% {
    opacity: 1;
    top: 8px;
  }
  70% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 0;
    top: 8px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 82vh;
  }

  .hero--home {
    --home-scene-height: clamp(200px, 68vw, 420px);
    min-height: 64vh;
    background: #0a131d;
    isolation: isolate;
  }

  .hero--home .hero__picture {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    height: var(--home-scene-height);
  }

  .hero--home .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 19, 29, 0.05) 0%,
      rgba(10, 19, 29, 0.08) calc(var(--header-h) + var(--home-scene-height) - 100px),
      rgba(10, 19, 29, 0.88) calc(var(--header-h) + var(--home-scene-height) - 25px),
      #0a131d calc(var(--header-h) + var(--home-scene-height) + 10px)
    );
  }

  .hero--home .hero__inner {
    padding-block-start: calc(var(--home-scene-height) - 30px);
    padding-block-end: var(--space-5);
  }
}
