.exit-modal {
  --exit-modal-accent-deep: var(--color-cta-primary-deep);
  --exit-modal-accent-bright: var(--color-cta-primary-bright);
  position: fixed;
  inset: 0;
  z-index: var(--z-tooltip);
  border: none;
  padding: var(--space-0);
  margin: var(--space-auto);
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: transparent;
}
.exit-modal::backdrop {
  background: var(--color-surface-overlay);
  -webkit-backdrop-filter: var(--glass-blur-high);
  backdrop-filter: var(--glass-blur-high);
}
.exit-modal[open] {
  display: flex;
}
body:has(.exit-modal[open]) {
  overflow: hidden;
}
.exit-modal[open] .exit-modal__content {
  transform: translateY(0) scale(1);
}
.exit-modal__content {
  background: linear-gradient(
    0deg,
    var(--color-surface-neutral) 0%,
    var(--pure_white) 100%
  );
  border-radius: var(--bento-radius-lg);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--glass-white-strong);
  width: calc(100vw - 2rem);
  max-width: 960px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
  position: relative;
  will-change: transform;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    max-width: 420px;
    max-height: 95vh;
    width: calc(100vw - 0.5rem);
  }

  @media screen and (max-width: 932px) and (orientation: landscape) {
    max-width: 420px;
    width: calc(100vw - 3rem);
  }
}
.exit-modal__content .carousel-nav {
  display: none;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    position: absolute;
    top: 50%;
    z-index: calc(var(--z-base) + 10);
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border-light-strong);
    border-radius: 50%;
    background: var(--color-surface-overlay);
    color: var(--pure_white);
    box-shadow: var(--m3-shadow-1);
    transform: translateY(-50%);
    transition:
      opacity var(--haptic-duration-fast) ease,
      transform var(--haptic-duration-fast) var(--haptic-spring);
  }
}
.exit-modal__content .carousel-nav--prev {
  left: var(--space-lg);
}
.exit-modal__content .carousel-nav--next {
  right: var(--space-lg);
}
.exit-modal__content .carousel-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}
.exit-modal__content .carousel-nav:not(:disabled):hover {
  transform: translateY(-50%) scale(1.06);
}
.exit-modal__content .carousel-nav.is-hidden,
.exit-modal__content .carousel-nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.exit-modal__header {
  background: linear-gradient(
    0deg,
    var(--color-section-header-start) 0%,
    var(--color-section-header-end) 100%
  );
  color: var(--pure_white);
  padding: var(--space-4xl) var(--space-8xl) var(--space-4xl) var(--space-5xl);
  text-align: center;
  position: relative;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: center;
    column-gap: var(--space-lg);
    padding: var(--space-xl-plus) var(--space-xs);
  }
}
.exit-modal__header::before {
  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    content: "";
    width: 2rem;
    height: 2rem;
  }
}
.exit-modal__header h2 {
  margin: var(--space-0);
  font-size: var(--text-fluid-modal);
  line-height: 1.3;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    grid-column: 2;
    text-align: center;
    font-size: var(--text-fluid-modal-compact);
    line-height: 1.2;
    letter-spacing: -0.2px;
    white-space: nowrap;
  }
}
.exit-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: calc(var(--z-base) + 9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--transparent);
  color: var(--pure_white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition:
    opacity 0.2s ease,
    transform var(--haptic-duration-fast, 0.16s)
      var(--haptic-spring, cubic-bezier(0.22, 1, 0.36, 1));
  opacity: 0.8;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    position: static;
    justify-self: end;
    width: 1.9rem;
    height: 1.9rem;
  }
}
.exit-modal__close-icon {
  position: relative;
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  transform-origin: center;
  transition: transform var(--haptic-duration, 0.22s)
    var(--haptic-spring, cubic-bezier(0.22, 1, 0.36, 1));
}
.exit-modal__close-icon::before,
.exit-modal__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.75px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}
.exit-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.exit-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.exit-modal__close:hover,
.exit-modal__close:focus-visible {
  opacity: 1;
  transform: translateY(var(--haptic-lift-subtle, -1px)) scale(1.02);
}
.exit-modal__close:focus-visible {
  outline: none;
  box-shadow: none;
}
.exit-modal__close:hover .exit-modal__close-icon,
.exit-modal__close:focus-visible .exit-modal__close-icon {
  transform: rotate(90deg);
}
.exit-modal__close:active {
  opacity: 1;
  transform: translateY(var(--haptic-press-y, 1px))
    scale(var(--haptic-scale-press, 0.96));
  transition-duration: 0.08s;
  transition-timing-function: var(
    --haptic-spring-press,
    cubic-bezier(0.2, 0.9, 0.3, 1.35)
  );
}
.exit-modal__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5xl);
  padding: var(--space-6xl) var(--space-5xl);

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--space-5xl) var(--space-3xl);
    gap: var(--space-3xl);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
}

.exit-card {
  background: var(--pure_white);
  border-radius: var(--bento-radius-md);
  overflow: hidden;
  box-shadow: var(--m3-shadow-1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 16px;
    max-width: none;
  }
}
.exit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--m3-shadow-2);
}
.exit-card__header {
  padding: var(--space-xs);
  height: 100px;
  min-height: 50px;

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    margin-bottom: var(--space-lg);
  }
}
.exit-card__header a {
  display: inline-block;
  transition:
    transform var(--haptic-duration-fast, 0.16s)
      var(--haptic-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    filter var(--haptic-duration-fast, 0.16s) ease,
    box-shadow var(--haptic-duration-fast, 0.16s) ease;
}
.exit-card__header a:active {
  transform: translateY(var(--haptic-press-y, 1px))
    scale(var(--haptic-scale-press, 0.96));
  filter: brightness(0.96);
  transition-duration: 0.08s;
  transition-timing-function: var(
    --haptic-spring-press,
    cubic-bezier(0.2, 0.9, 0.3, 1.35)
  );
}
.exit-card__header img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: var(--space-0) var(--space-auto);
}
.exit-card__body {
  padding: var(--space-5xl) var(--space-sm);
  flex: 1;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--pure_white) 0%,
    var(--color-surface-muted) 100%
  );
  gap: var(--space-xl-plus);
}
.exit-card__body .casino-entry__cta-button {
  --casino-accent-deep: var(--exit-modal-accent-deep);
  --casino-accent-bright: var(--exit-modal-accent-bright);
  width: calc(100% - 2rem);
  padding: var(--space-xl-plus) var(--casino-cta-padding-x-end)
    var(--space-xl-plus) var(--casino-cta-padding-x-start);
  margin: var(--space-0) var(--space-auto);

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    min-height: 2.5rem;
    width: calc(100% - 6rem);
    padding: var(--space-md-plus);
    font-size: var(--text-base);
  }
}
.exit-card__offer-main {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--charcoal);
  margin: var(--space-0);
  line-height: 1.2;

  @media (max-width: 991px) {
    font-size: var(--text-base-plus);
  }

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    font-size: var(--text-xl);
  }
}
.exit-card__offer-sub {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--casino-text-muted);
  margin: var(--space-0);
  margin-bottom: var(--space-3xl);

  @media (max-width: 767px),
    screen and (max-width: 932px) and (orientation: landscape) {
    font-size: var(--text-base);
    margin-bottom: var(--space-5xl);
  }
}
.exit-card__footer {
  padding: var(--space-xl-plus) var(--space-lg);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--casino-text-muted);
  background: linear-gradient(
    180deg,
    var(--color-surface-muted) 0%,
    var(--color-surface-muted-deep) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .exit-modal__content,
  .exit-modal__close,
  .exit-modal__close-icon,
  .exit-card,
  .exit-card__header a {
    transition: none;
  }

  .exit-modal__close:hover .exit-modal__close-icon,
  .exit-modal__close:focus-visible .exit-modal__close-icon,
  .exit-card:hover,
  .exit-card__header a:active {
    transform: none;
  }
}
