.intro-modal[hidden] {
  display: none;
}

.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.intro-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.intro-modal__dialog {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: intro-bounce 520ms cubic-bezier(0.22, 1.28, 0.42, 1) both;
}

.intro-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(0, 74, 106, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.intro-modal__close::before,
.intro-modal__close::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 20px;
  height: 2px;
  background: #ffffff;
  content: "";
}

.intro-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.intro-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.intro-modal__link {
  display: block;
  min-width: 0;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 86px);
}

.intro-modal__link img {
  display: block;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 86px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.intro-modal__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
  margin-top: 0;
  padding: 12px 16px;
  color: #1f2933;
  background: #f2f4f6;
  border: 1px solid #d7dde4;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(20, 35, 58, 0.14);
  cursor: pointer;
}

.intro-modal__remember input {
  width: 18px;
  height: 18px;
  accent-color: #0b4774;
}

@keyframes intro-bounce {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
  64% {
    opacity: 1;
    transform: translateY(-8px) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767.98px) {
  .intro-modal {
    padding: 12px;
  }

  .intro-modal__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .intro-modal__link,
  .intro-modal__link img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 86px);
  }

  .intro-modal__remember {
    justify-self: start;
  }
}
