.bonus-section {
  margin-block-start: var(--section-gap);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bonus-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  inline-size: 100%;
  min-inline-size: 0;
  border: 1px solid #48394f;
  border-radius: 8px;
  background: #14101c;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bonus-art {
  overflow: hidden;
  aspect-ratio: 3.4;
}

.bonus-art > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.bonus-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 56px;
  margin-block-start: auto;
  padding: 8px 18px;
  border-block-start: 1px solid rgb(255 255 255 / 6%);
  background: linear-gradient(110deg, #18111f, #110c17);
}

.bonus-copy {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.bonus-title {
  margin: 0;
  color: #eeeaf1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.bonus-description {
  display: block;
  margin-block-start: 2px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
}

.bonus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  inline-size: 32px;
  block-size: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff6266, #f33340);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%);
  color: var(--color-text);
  cursor: pointer;
}

.bonus-button > svg {
  flex: 0 0 auto;
}

.bonus-card:focus-within {
  border-color: rgb(255 72 77 / 70%);
}

@media (hover: hover) {
  .bonus-card:hover {
    border-color: rgb(255 72 77 / 70%);
    box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
  }

  .bonus-button:hover {
    background: var(--color-accent-hover);
  }
}

@media (max-width: 1000px) {
  .bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bonus-card:last-child {
    grid-column: 1 / -1;
    inline-size: calc((100% - 16px) / 2);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .bonus-title {
    font-size: 15px;
  }

  .bonus-button {
    inline-size: 40px;
    block-size: 40px;
  }

  .bonus-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bonus-grid::-webkit-scrollbar {
    display: none;
  }

  .bonus-card,
  .bonus-card:last-child {
    flex: 0 0 88%;
    grid-column: auto;
    inline-size: 88%;
    max-inline-size: 420px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-card {
    transition: none;
  }
}
