/* ---------- Promo banners ---------- */
.g-promo-banners {
  padding: 10px 0;
  width: 100%;
  max-width: var(--ct-container);
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.g-promo-banners__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.g-promo-banners__title {
  flex: 1 1 auto;
  min-width: min(100%, 180px);
  margin: 0;
  color: var(--ct-text-primary);
  font-size: 17px;
  font-weight: var(--ct-font-w-500);
  line-height: 1.2;
}

.g-promo-banners__grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.g-promo-banners__grid--cols-1 {
  grid-template-columns: 1fr;
}

.g-promo-banners__grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-promo-banners__grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g-promo-banners__card {
  position: relative;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.g-promo-banners__media {
  border: 1px solid var(--ct-border-default);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  background: var(--ct-secondary);
  border-radius: var(--ct-border-radius-lg);
}

/* .g-promo-banners__media::before {
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 1px solid transparent;
  border-image-source: url('../images/buttons/game-card-frame.webp');
  border-image-slice: 90;
  border-image-width: 24px;
  border-image-outset: 5px;
  content: '';
  pointer-events: none;
} */

.g-promo-banners__card--has-bg .g-promo-banners__media {
  background-image: var(--ct-scrim), var(--g-promo-banners-bg, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.g-promo-banners__headline {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--ct-text-primary);
  font-weight: var(--ct-font-w-700);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.4);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #0d0807;
  paint-order: stroke;
}

.g-promo-banners__subline {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: min(620px, 100%);
  margin: 0 0 16px;
  color: var(--ct-text-default);
  text-align: center;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.4);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #0d0807;
  paint-order: stroke;
}

.g-promo-banners__cta {
  --stb-button-inner-background-inset: 3px;
  --stb-button-inner-background-border-radius: 4px;
  --stb-button-inner-active-background-inset: 2px;
  --stb-button-inner-active-background-border-radius: 4px;
  --stb-button-text-color: #ffffff;
  --stb-button-background: radial-gradient(
      51.3% 72.22% at 52.91% 0%,
      rgb(255 255 255 / 0.9) 0%,
      rgb(255 214 161 / 0) 100%
    ),
    linear-gradient(180deg, #fff166 0%, #fe5e01 48.56%, #990000 100%),
    linear-gradient(180deg, #ffd941 0%, #ff3300 100%);
  --stb-button-inner-background: radial-gradient(
      89.4% 50% at 50% 0%,
      rgb(246 94 0 / 0.6) 0%,
      rgb(254 191 1 / 0) 100%
    ),
    linear-gradient(180deg, #ffd941 0%, #ff3300 100%);
  --stb-button-text-shadow: 0 -1px 1px rgb(255 210 94 / 0.5),
    0 1px 1px rgb(242 0 0 / 0.6);
  --stb-button-shadow: 0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -2px 4px 0 rgb(255 255 153 / 0.15), 0 1px 10px 0 rgb(51 26 29 / 0.7);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 220px;
  min-height: 48px;
  margin-top: 0;
  padding: 4px 12px;
  color: var(--stb-button-text-color);
  font-size: 14px;
  font-weight: var(--ct-font-w-500);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: var(--stb-button-text-shadow);
  background: var(--stb-button-background);
  border: 0;
  border-radius: var(--ct-border-radius-sm);
  box-shadow: var(--stb-button-shadow);
  transition: var(--transition-default);
}

.g-promo-banners__cta:hover {
  background: radial-gradient(
      51.3% 72.22% at 52.91% 0%,
      rgb(255 255 255 / 0.9) 0%,
      rgb(255 214 161 / 0) 100%
    ),
    linear-gradient(180deg, #fff166 0%, #fe5e01 48.56%, #990000 100%);
  box-shadow: -2px -2px 10px 0 rgb(255 186 36 / 0.1),
    2px -2px 10px 0 rgb(255 186 36 / 0.1), 0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -4px 16px 0 rgb(255 255 153 / 0.1), 0 1px 5px 0 rgb(51 26 29 / 0.3);
  color: var(--stb-button-text-color);
}

.g-promo-banners__cta::before {
  content: '';
  position: absolute;
  inset: var(--stb-button-inner-background-inset);
  z-index: 0;
  border-radius: var(--stb-button-inner-background-border-radius);
  background: var(--stb-button-inner-background);
  pointer-events: none;
  transition: var(--transition-default);
}

.g-promo-banners__cta::before:hover {
  background: radial-gradient(
      89.4% 50% at 50% 0%,
      rgb(246 94 0 / 0.6) 0%,
      rgb(254 191 1 / 0) 100%
    ),
    linear-gradient(180deg, #ffe066 0%, #ff571a 100%);
}

.g-promo-banners__media:has(.g-promo-banners__cta:hover) {
  border: 1px solid var(--ct-red);
}

.g-promo-banners__cta-inner {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .g-promo-banners__grid--cols-2,
  .g-promo-banners__grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .g-promo-banners {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .g-promo-banners__card {
    min-height: 160px;
  }

  .g-promo-banners__media {
    min-height: 300px;
    padding: 22px;
  }

  .g-promo-banners__headline {
    font-size: 18px;
  }

  .g-promo-banners__cta {
    min-width: 0;
    min-height: 44px;
    padding: 8px 34px;
    font-size: clamp(14px, 3.8vw, 17px);
  }
}
