.coupon-directory-page > header {
  position: relative;
}

.coupon-directory-page .main-links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.coupon-directory {
  display: block;
  max-width: 1140px;
  min-height: 60vh;
  padding: clamp(32px, 6vw, 76px) 20px;
  color: #2d2535;
}

.coupon-directory h1,
.coupon-directory h2,
.coupon-directory p {
  margin: 0;
}

.coupon-directory h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.coupon-directory .coupon-intro {
  margin-top: 14px;
  color: #514c59;
}

.coupon-directory .coupon-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.coupon-game {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid #e3dce9;
  border-radius: 14px;
  background: #fff;
}

.coupon-game:target,
.coupon-game:focus-within {
  outline: 2px solid #775295;
  outline-offset: 2px;
}

.coupon-game .coupon-destination::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.coupon-game:hover {
  border-color: #775295;
}

.coupon-game img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 15px;
}

.coupon-game h2 {
  max-width: 100%;
  font-size: 1.4rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.coupon-game .coupon-channel {
  color: #595460;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.coupon-game .coupon-destination {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  max-width: 100%;
  margin-top: auto;
  color: #5d347a;
  line-height: 1.45;
}

.coupon-destination .coupon-link-label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-wrap: balance;
}

.coupon-directory .coupon-instructions {
  padding: 21px 24px;
  border-left: 3px solid #aa91b8;
  background: #f8f5fa;
}

.coupon-instructions h2 {
  margin-bottom: 5px;
  font-size: 1.15rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .coupon-directory .coupon-games {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 24px 0;
  }

  .coupon-game {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 1px 15px;
    padding: 17px;
  }

  .coupon-game img {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
  }

  .coupon-game .coupon-destination {
    grid-column: 1 / -1;
    margin-top: 7px;
    justify-self: start;
  }
}

:is(.game-content, .posts) .game-coupon-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(12px, 3vw, 24px);
  margin: 0 0 12px;
}

/* Other languages and the public export still use the original collection entry. */
.game-content .game-coupon-entry ~ [data-slot-collection-entry],
.game-content .game-coupon-entry ~ [data-bay-collection-entry],
.posts .game-coupon-entry + :is([data-slot-collection-entry], [data-bay-collection-entry]) {
  display: none;
}

:is(.game-content, .posts) .game-coupon-entry a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  max-width: 100%;
  color: #553879;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.game-coupon-entry .game-coupon-label {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.game-coupon-entry a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.sc-hero .sc-download:has(.collection-action) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.sc-download:has(.collection-action) .download-method-button {
  display: none;
}

.sc-hero .sc-download .collection-action {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #553879;
  text-decoration: none;
  text-underline-offset: .2em;
  white-space: nowrap;
}
