/* Hero block — BEM: hero__element--modifier */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  min-height: 60dvh;
  display: flex;
  align-items: center;
}

/* --hero-ratio = each banner's real native width/height ratio, so that on
   desktop object-fit: cover renders the sharp figure with ZERO cropping in
   either direction — never the sides, per the no-side-crop requirement. */
.hero--home                { --hero-ratio: 2.25; }
.hero--bonus                { --hero-ratio: 2.25; }
.hero--app                  { --hero-ratio: 2.25; }
.hero--slots                { --hero-ratio: 2.25; }
.hero--live                 { --hero-ratio: 2.25; }
.hero--login                { --hero-ratio: 2.25; }
.hero--support               { --hero-ratio: 2.25; }
.hero--privacy               { --hero-ratio: 3.52; }
.hero--responsible-gaming    { --hero-ratio: 2.25; }

/* Mobile / default (<768px): single sharp image, full-bleed, no blur layer */
.hero__media-blur {
  display: none;
}

.hero__media-sharp {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darkest near the top, behind the rating badge/H1/subtitle now that they sit
     just under the header; fades out toward the bottom so the sharp figure
     stays visible instead of being washed out. */
  background: linear-gradient(180deg, rgba(23, 5, 29, 0.8) 0%, rgba(23, 5, 29, 0.4) 45%, rgba(23, 5, 29, 0.12) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block-start: clamp(20px, 4vw, 40px);
  padding-block-end: clamp(24px, 5vw, 48px);
  max-width: 760px;
}

/* Desktop (≥768px): layered presentation — blurred/darkened/upscaled full-bleed
   backdrop behind a sharp, bottom-anchored figure at the banner's own aspect
   ratio, faded into the section background via mask-image. */
@media (min-width: 768px) {
  .hero__media-blur {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(48px) brightness(0.5) saturate(1.15);
    transform: scale(1.15);
  }

  .hero__media-sharp {
    inset-block-start: auto;
    inset-block-end: 0;
    z-index: 1;
    height: auto;
    aspect-ratio: var(--hero-ratio, 2.25);
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
            mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
  }
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-accent-light);
  color: var(--color-btn-text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-small);
  padding: 6px 14px;
  border-radius: var(--radius-card);
  margin-block-end: 16px;
}

.hero__title {
  color: var(--color-white);
  margin-block-end: 16px;
}

.hero__subtitle {
  color: var(--color-text-main);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-block-end: 28px;
  max-width: 60ch;
}

.hero__cta {
  margin-top: 4px;
}

.hero .breadcrumb {
  color: var(--color-text-main);
}
