.registration-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 20px;
  color: #311126;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 210, 19, .18), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .1), transparent 34%),
    rgba(38, 8, 28, .97);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity .3s ease, visibility .3s ease;
}

html.registration-gate-active,
html.registration-gate-active body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.registration-gate-active .registration-gate {
  display: grid;
}

.registration-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.registration-gate-card {
  position: relative;
  width: min(94vw, 820px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 3px solid #ffd213;
  border-radius: 26px;
  background: #fffaf0;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .56);
}

.registration-gate-card::before,
.registration-gate-card::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.registration-gate-card::before {
  top: 92px;
  right: -85px;
  width: 220px;
  height: 220px;
  background: rgba(255, 210, 19, .17);
}

.registration-gate-card::after {
  left: -55px;
  bottom: 86px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(116, 54, 93, .08);
}

.registration-gate-brand,
.registration-gate-content,
.registration-gate-countdown {
  position: relative;
  z-index: 1;
}

.registration-gate-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 17px 30px;
  color: #fff;
  background: #74365d;
}

.registration-gate-brand img {
  display: block;
  width: min(260px, 58vw);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.registration-gate-brand > span {
  color: #ffd213;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.registration-gate-content {
  padding: clamp(25px, 5vw, 44px) clamp(24px, 6vw, 54px) 28px;
  text-align: center;
}

.registration-gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: #74365d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.registration-gate-kicker {
  margin: 18px 0 6px;
  color: #a26d00;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.registration-gate-content h1 {
  max-width: 690px;
  margin: 0 auto;
  color: #5f244c;
  font-family: 'Exo', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.06;
}

.registration-gate-content > p:not(.registration-gate-kicker) {
  max-width: 650px;
  margin: 16px auto 0;
  color: #5f5360;
  font-size: clamp(.92rem, 2.4vw, 1.08rem);
  line-height: 1.6;
}

.registration-gate-programs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.registration-gate-programs span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(116, 54, 93, .2);
  border-radius: 12px;
  color: #5f244c;
  background: #fff;
  font-size: .9rem;
  font-weight: 800;
}

.registration-gate-programs i,
.registration-gate-benefits i {
  color: #b17a00;
}

.registration-gate-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #493b48;
  font-size: .88rem;
  font-weight: 700;
}

.registration-gate-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.registration-gate-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 22px;
  color: #5f244c;
  font-size: clamp(.88rem, 2.3vw, 1rem);
}

.registration-gate-contact span {
  font-weight: 600;
}

.registration-gate-contact strong {
  color: #74365d;
  font-weight: 900;
}

.registration-gate-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 78px;
  padding: 13px 24px;
  color: #fff;
  background: #5f244c;
  text-align: center;
  font-size: clamp(.82rem, 2.3vw, 1rem);
}

.registration-gate-countdown > strong {
  min-width: 112px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5f244c;
  background: #ffd213;
  font-size: clamp(.95rem, 2.8vw, 1.15rem);
  white-space: nowrap;
}

.registration-gate-countdown small {
  flex-basis: 100%;
  color: rgba(255, 255, 255, .82);
  font-size: .76rem;
}

.registration-gate-countdown b {
  color: #ffd213;
}

@media (max-width: 560px) {
  .registration-gate {
    padding: 10px;
  }

  .registration-gate-card {
    width: 96vw;
    max-height: calc(100dvh - 20px);
    border-width: 2px;
    border-radius: 18px;
  }

  .registration-gate-brand {
    min-height: 72px;
    padding: 12px 18px;
  }

  .registration-gate-brand img {
    max-height: 46px;
  }

  .registration-gate-brand > span {
    display: none;
  }

  .registration-gate-content {
    padding: 20px 17px 18px;
  }

  .registration-gate-kicker {
    margin-top: 14px;
  }

  .registration-gate-content > p:not(.registration-gate-kicker) {
    margin-top: 10px;
    line-height: 1.45;
  }

  .registration-gate-programs {
    margin-top: 15px;
  }

  .registration-gate-programs span {
    padding: 8px 10px;
    font-size: .78rem;
  }

  .registration-gate-benefits {
    display: none;
  }

  .registration-gate-contact {
    margin-top: 15px;
  }

  .registration-gate-countdown {
    min-height: 69px;
    padding: 10px 15px;
  }
}

@media (max-height: 650px) and (min-width: 561px) {
  .registration-gate-brand {
    min-height: 70px;
    padding-block: 10px;
  }

  .registration-gate-brand img {
    max-height: 45px;
  }

  .registration-gate-content {
    padding-block: 18px;
  }

  .registration-gate-content > p:not(.registration-gate-kicker),
  .registration-gate-benefits {
    display: none;
  }

  .registration-gate-programs,
  .registration-gate-contact {
    margin-top: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .registration-gate {
    transition: none;
  }
}
