.bonus-banner {
  margin-block: var(--space-block-gap);
}

.bonus-banner__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-bg-dark);
  /* Box ratio matches the source image's own ~2.25/1 ratio exactly, so the
     image fills the box edge-to-edge at full width with zero cropping —
     this is what makes the artwork bleed to the true left/right edges
     instead of shrinking into a centered strip (the bug being fixed here). */
  aspect-ratio: 2.25 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

/* A soft, full-height dark band behind the text column (not a radial spot)
   — an ellipse fades out vertically too fast to cover a button sitting
   lower in the card, and a single translucent dot isn't dark enough to
   beat the bright highlights in a detailed character illustration. A band
   spanning the full height gives the whole text column (heading, copy,
   button alike) the same legibility regardless of what's behind it. */
.bonus-banner__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 2, 14, 0) 0%,
    rgba(10, 2, 14, 0.8) 22%,
    rgba(10, 2, 14, 0.8) 78%,
    rgba(10, 2, 14, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Mobile: single sharp image, full width. object-fit: cover is safe here
   (never crops the sides) because .bonus-banner__inner's aspect-ratio is
   set to match the image's own real ratio — cover only ever has to make up
   for sub-pixel rounding, not an actual mismatched box. */
.bonus-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bonus-banner__media-bg { display: none; }
.bonus-banner__media-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bottom-anchored: at desktop the box (2.8/1) is wider than the image
     (2.25/1), so cover has to trim ~20% off the image's height somewhere.
     Anchoring to the bottom sends all of that crop to the top (empty sky/
     background in this artwork) instead of splitting it evenly, so the
     bottom — including the Bizzo logo — stays fully visible uncropped. */
  object-position: center bottom;
}

/* Text sits centered directly on the image (no boxed card), with a text
   shadow standing in for the missing background contrast. */
.bonus-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 30rem;
}

.bonus-banner__title {
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.bonus-banner__text {
  margin: 0;
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  /* Wider than the image's own ratio (2.25) on purpose — same cinematic-
     banner logic as the hero's default 2.8/1 box. Since the box is wider
     than the source image, cover only ever trims a little off the top/
     bottom, never the sides, so the characters still reach the true left
     and right edges at full width. */
  .bonus-banner__inner { aspect-ratio: 2.8 / 1; padding: 2rem; }

  /* Same layered treatment as the hero: blurred/darkened/scaled copy fills
     the card for atmosphere, sharp copy on top at full opacity. */
  .bonus-banner__media-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: blur(28px) brightness(0.5) saturate(1.15);
    transform: scale(1.15);
  }
}
