:root {
  --teal: #1abc9c;
  --navy: #0d1f1a;
  --gate-ink: #111413;
  --gate-panel: #1b1e1d;
  --gate-muted: #969e9a;
}

html.gate-active,
body.gate-active {
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--gate-ink);
}

#gateOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 58%, rgba(26, 188, 156, .1), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(26, 188, 156, .06), transparent 22%),
    var(--gate-ink);
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}

#gateOverlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-scroll-wrap {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #363c39 transparent;
}


.gate-topbar {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-top-logo {
  display: block;
  width: 154px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(71%) sepia(88%) saturate(4265%) hue-rotate(130deg) brightness(101%) contrast(80%);
}

.gate-top-waitlist {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f4;
  color: #111;
  font: 700 14px/1 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.gate-top-waitlist:hover {
  transform: translateY(-2px);
  background: #fff;
}

.gate-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100dvh - 40px);
  margin: 0 auto;
  padding: 126px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(54px, 7vw, 110px);
}

.gate-left {
  min-width: 0;
}

.gate-logo-row,
.gate-wordmark-mobile {
  display: none;
}

.gate-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #c5ccc8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.gate-kicker span {
  width: 26px;
  height: 2px;
  background: var(--teal);
}

.gate-headline {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: clamp(62px, 6.5vw, 94px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: 0;
}

.gate-headline em {
  color: var(--teal);
  font-style: normal;
}

.gate-tagline {
  max-width: 530px;
  margin: 28px 0 34px;
  color: var(--gate-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.gate-enter-btn,
.gate-waitlist-btn {
  border: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.gate-enter-btn {
  min-height: 56px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #292d2b;
  color: #fff;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gate-enter-btn:hover {
  transform: translateY(-2px);
  background: #343a37;
}

.gate-passcode-fields.open ~ .gate-actions .gate-enter-btn {
  background: #fff;
  color: #111;
}

.gate-passcode-fields.open ~ .gate-actions .gate-enter-btn:hover {
  background: #e8ebe9;
}

.gate-passcode-fields {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height .35s ease, margin .35s ease, opacity .25s ease, transform .35s ease;
}

.gate-passcode-fields.open {
  max-height: 66px;
  margin-bottom: 10px;
  opacity: 1;
  transform: translateY(0);
}

.gate-passcode-input-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #3a403d;
  border-radius: 999px;
  background: #f3f5f4;
}

.gate-passcode-input-wrap .gate-passcode-input {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #111;
  padding: 0 19px;
  font: 600 15px/1 'DM Sans', Arial, sans-serif;
  outline: 0;
  -webkit-text-security: disc;
}

.gate-passcode-input-wrap .gate-passcode-input::placeholder {
  color: #7f8883;
}

.gate-passcode-input-wrap .gate-passcode-input:focus {
  outline: 0;
}

.gate-passcode-fields.open .gate-passcode-input-wrap {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, .12);
}

.gate-passcode-input.error {
  animation: gate-shake .4s ease;
}

.gate-passcode-close {
  width: 0;
  min-height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3a403d;
  border-radius: 999px;
  background: #202321;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: width .3s ease, opacity .2s ease;
}

.gate-passcode-close.visible {
  width: 56px;
  opacity: 1;
  pointer-events: auto;
}

.gate-divider {
  width: min(100%, 440px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #69706d;
  font-size: 12px;
}

.gate-divider-line {
  height: 1px;
  flex: 1;
  background: #2e3331;
}

.gate-waitlist-wrap {
  width: min(100%, 440px);
}

.gate-waitlist-fields {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height .35s ease, margin .35s ease, opacity .25s ease, transform .35s ease;
}

.gate-waitlist-fields.open {
  max-height: 66px;
  margin-bottom: 10px;
  opacity: 1;
  transform: translateY(0);
}

.gate-phone-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #3a403d;
  border-radius: 999px;
  background: #f3f5f4;
}

.gate-phone-prefix {
  padding-left: 19px;
  color: #4d5551;
  font-weight: 700;
}

.gate-phone-wrap input {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #111;
  padding: 0 18px 0 7px;
  font: 600 15px/1 'DM Sans', Arial, sans-serif;
  outline: 0;
}

.gate-phone-wrap input:focus,
.gate-phone-wrap input:focus-visible {
  outline: none;
  box-shadow: none;
}

.gate-actions {
  display: flex;
  gap: 8px;
}

.gate-waitlist-btn {
  min-height: 56px;
  flex: 1;
  border-radius: 999px;
  background: var(--teal);
  color: #07120f;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gate-waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(26, 188, 156, .22);
}

.gate-waitlist-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.gate-waitlist-close {
  width: 0;
  min-height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3a403d;
  border-radius: 999px;
  background: #202321;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: width .3s ease, opacity .2s ease;
}

.gate-waitlist-close.visible {
  width: 56px;
  opacity: 1;
  pointer-events: auto;
}

.gate-waitlist-msg {
  min-height: 21px;
  margin: 10px 5px 0;
  color: #a5adaa;
  font-size: 13px;
  line-height: 1.45;
}

.gate-waitlist-msg.success {
  color: var(--teal);
}

.gate-waitlist-msg.error {
  color: #ff8a82;
}

.gate-waitlist-wrap.done .gate-actions,
.gate-waitlist-wrap.done .gate-waitlist-fields {
  display: none;
}

.gate-social-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
  color: #fff;
}

.gate-social-label {
  margin-right: 3px;
  font-size: 12px;
  font-weight: 600;
}

.gate-social-row a {
  display: flex;
  color: #fff;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.gate-social-row a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.gate-social-row svg {
  width: 18px;
  height: 18px;
}

.gate-right {
  position: relative;
  min-width: 0;
  min-height: 610px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.gate-visual-card {
  position: relative;
  width: min(100%, 520px);
  height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(224,239,233,.92));
  box-shadow: 0 42px 90px rgba(0,0,0,.34);
  transform: rotate(1.5deg);
}

.gate-visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 38%);
  pointer-events: none;
}

.gate-visual-label {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 30px;
  color: #59625e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.gate-visual-ring {
  position: absolute;
  width: 430px;
  height: 430px;
  right: -155px;
  top: -120px;
  border: 72px solid rgba(26,188,156,.22);
  border-radius: 50%;
}

.gate-phone-img {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -58px;
  width: 80%;
  height: 560px;
  object-fit: contain;
  transform: translateX(-50%) rotate(-2deg);
  filter: drop-shadow(0 24px 28px rgba(14,40,32,.18));
}

.gate-stat {
  position: absolute;
  z-index: 4;
  min-width: 158px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(28,32,30,.92);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(15px);
}

.gate-stat span,
.gate-stat strong {
  display: block;
}

.gate-stat span {
  color: #959e99;
  font-size: 11px;
  font-weight: 650;
}

.gate-stat strong {
  margin-top: 3px;
  color: #fff;
  font-size: 23px;
  letter-spacing: -.03em;
}

.gate-stat-paid {
  left: -38px;
  top: 155px;
  transform: rotate(-4deg);
}

.gate-stat-points {
  right: -30px;
  bottom: 112px;
  transform: rotate(4deg);
}

.gate-stat-paid strong {
  color: var(--teal);
}

.gate-stat-points strong {
  color: var(--teal);
}

.gate-ball {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border: 18px solid rgba(26,188,156,.16);
  border-radius: 50%;
  opacity: .72;
  pointer-events: none;
  will-change: transform;
}

.gate-disclaimer {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: -58px auto 20px;
  color: #626a66;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

#gateOverlay button:focus-visible,
#gateOverlay a:focus-visible,
#gateOverlay input:focus-visible {
  outline: 3px solid rgba(26,188,156,.42);
  outline-offset: 3px;
}

#gateOverlay .gate-phone-wrap input:focus-visible {
  outline: none;
}

@keyframes gate-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 900px) {
  .gate-topbar {
    top: 0;
    width: 100%;
    padding: 18px 16px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
  }

  .gate-inner {
    width: 100%;
    min-height: 0;
    padding: 90px 16px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 58px;
  }

  .gate-left {
    text-align: center;
  }

  .gate-kicker,
  .gate-social-row {
    justify-content: center;
  }

  .gate-headline,
  .gate-tagline,
  .gate-entry-column,
  .gate-divider,
  .gate-waitlist-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .gate-right {
    min-height: 470px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
  }

  .gate-visual-card {
    height: 440px;
  }

  .gate-phone-img {
    width: 72%;
    height: 440px;
    bottom: -48px;
  }

  .gate-stat-paid {
    left: 16px;
    top: 112px;
  }

  .gate-stat-points {
    right: 16px;
    bottom: 80px;
  }

  .gate-disclaimer {
    margin: 0 auto 24px;
  }
}

@media (max-width: 520px) {
  .gate-topbar {
    top: 0;
    width: 100%;
    padding: 14px 14px;
  }

  .gate-top-logo {
    width: 126px;
  }

  .gate-top-waitlist {
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .gate-inner {
    width: 100%;
    padding-top: 82px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 0;
    gap: 42px;
  }

  .gate-kicker {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .gate-headline {
    font-size: clamp(48px, 14vw, 62px);
  }

  .gate-tagline {
    margin: 22px auto 28px;
    font-size: 16px;
  }

  .gate-enter-btn,
  .gate-passcode-input,
  .gate-passcode-close,
  .gate-passcode-input-wrap,
  .gate-phone-wrap,
  .gate-phone-wrap input,
  .gate-waitlist-btn,
  .gate-waitlist-close {
    min-height: 52px;
  }

  .gate-passcode-input-wrap .gate-passcode-input {
    min-height: 50px;
  }

  .gate-social-label {
    display: none;
  }

  .gate-social-row {
    margin-top: 22px;
  }

  .gate-right {
    min-height: 340px;
  }

  .gate-visual-card {
    width: calc(100% - 24px);
    height: 330px;
    border-radius: 30px;
  }

  .gate-phone-img {
    width: 78%;
    height: 338px;
    bottom: -40px;
  }

  .gate-visual-label {
    top: 20px;
    left: 22px;
  }

  .gate-visual-ring {
    width: 280px;
    height: 280px;
    right: -108px;
    top: -86px;
    border-width: 48px;
  }

  .gate-stat {
    min-width: 126px;
    padding: 11px 13px;
    border-radius: 15px;
  }

  .gate-stat strong {
    font-size: 18px;
  }

  .gate-stat-paid {
    left: 0;
    top: 94px;
  }

  .gate-stat-points {
    right: 0;
    bottom: 58px;
  }

  .gate-disclaimer {
    width: calc(100% - 32px);
    margin-bottom: 18px;
    font-size: 9px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .gate-ball {
    display: none;
  }

  #gateOverlay,
  #gateOverlay * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Centered, phone-first gate composition */
.gate-inner {
  min-height: 100dvh;
  padding: 118px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.gate-left {
  width: 100%;
  text-align: center;
}

.gate-kicker,
.gate-social-row {
  justify-content: center;
}

.gate-kicker {
  margin-bottom: 18px;
}

.gate-headline {
  max-width: 940px;
  margin: 0 auto 46px;
  font-size: clamp(62px, 6vw, 86px);
  line-height: .91;
}

.gate-tagline {
  max-width: 620px;
  margin: 22px auto 28px;
  font-size: clamp(17px, 1.4vw, 19px);
}

.gate-access-row {
  width: min(100%, 590px);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.gate-entry-column,
.gate-waitlist-wrap {
  width: 276px;
  min-width: 0;
}

.gate-entry-column .gate-actions {
  display: flex;
  gap: 8px;
}

.gate-access-or {
  display: none;
}

.gate-waitlist-msg {
  text-align: left;
}

.gate-social-row {
  margin-top: 18px;
}

.gate-right {
  width: min(900px, 100%);
  min-height: 505px;
  height: 505px;
  margin: 0 auto;
  display: block;
}

.gate-right::after {
  content: '';
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 18px;
  width: 620px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(26, 188, 156, .13);
  filter: blur(42px);
}

.gate-phone-stack {
  position: relative;
  width: min(700px, 100%);
  height: 500px;
  margin: 0 auto;
}

.gate-app-phone {
  position: absolute;
  bottom: 0;
  display: block;
  width: auto;
  object-fit: contain;
  border-radius: 16% / 8%;
  clip-path: inset(0 1.2% round 16% / 8%);
  transform-origin: bottom center;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, .42));
}

.gate-app-phone-center {
  z-index: 3;
  left: 50%;
  height: 485px;
  transform: translateX(-50%);
}

.gate-app-phone-left,
.gate-app-phone-right {
  z-index: 1;
  height: 405px;
  opacity: .52;
  filter: brightness(.52) saturate(.6) drop-shadow(0 24px 36px rgba(0, 0, 0, .38));
}

.gate-app-phone-left {
  left: 34%;
  transform: translateX(-50%) rotate(-10deg);
}

.gate-app-phone-right {
  right: 34%;
  transform: translateX(50%) rotate(10deg);
}

.gate-stat-paid {
  left: 110px;
  top: 190px;
}

.gate-stat-points {
  right: 105px;
  bottom: 92px;
}


.gate-disclaimer {
  margin: 0 auto 18px;
}

.gate-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .gate-inner {
    width: 100%;
    padding: 90px 16px 0;
    gap: 26px;
  }

  .gate-headline {
    font-size: clamp(58px, 10vw, 76px);
  }

  .gate-right {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    min-height: 450px;
    height: auto;
    flex: 1;
    overflow: hidden;
  }

  .gate-phone-stack {
    height: 445px;
  }

  .gate-app-phone-center {
    height: 425px;
  }

  .gate-app-phone-left,
  .gate-app-phone-right {
    height: 350px;
  }

  .gate-stat-paid {
    left: 32px;
    top: 166px;
  }

  .gate-stat-points {
    right: 32px;
    bottom: 74px;
  }
}

@media (max-width: 520px) {
  .gate-inner {
    width: 100%;
    padding-top: 82px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 0;
    gap: 22px;
  }

  .gate-kicker {
    margin-bottom: 14px;
  }

  .gate-headline {
    margin-bottom: 38px;
    font-size: clamp(48px, 13vw, 60px);
  }

  .gate-tagline {
    margin: 18px auto 24px;
    font-size: 15px;
  }

  .gate-access-row {
    width: min(100%, 430px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .gate-entry-column,
  .gate-waitlist-wrap {
    width: 100%;
  }

  .gate-access-or {
    display: none;
  }

  .gate-waitlist-msg {
    text-align: center;
  }

  .gate-social-row {
    margin-top: 18px;
  }

  .gate-right {
    min-height: 340px;
    height: auto;
    flex: 1;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    overflow: hidden;
  }

  .gate-phone-stack {
    height: 378px;
  }

  .gate-app-phone-center {
    height: 365px;
  }

  .gate-app-phone-left,
  .gate-app-phone-right {
    height: 285px;
  }

  .gate-app-phone-left {
    left: 31%;
  }

  .gate-app-phone-right {
    right: 31%;
  }

  .gate-stat {
    min-width: 112px;
    padding: 10px 12px;
  }

  .gate-stat strong {
    font-size: 17px;
  }

  .gate-stat-paid {
    left: 12px;
    top: 142px;
  }

  .gate-stat-points {
    right: 12px;
    bottom: 56px;
  }

  .gate-right::after {
    width: 360px;
    height: 100px;
  }
}

/* Gate viewport, safe-area, and header fixes */
body.gate-active > .nav,
body.gate-active > main,
body.gate-active > footer {
  display: none;
}

#gateOverlay {
  height: 100dvh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#gateOverlay[hidden] {
  display: none;
}

.gate-scroll-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow: visible;
}

.gate-topbar {
  position: sticky;
  top: 18px;
  left: auto;
  flex: 0 0 auto;
  margin: 28px auto 0;
  transform: none;
}

.gate-inner {
  flex: 1 0 auto;
  min-height: 0;
  padding-top: 56px;
}

.gate-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 24px max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gate-footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.gate-footer-brand img {
  display: block;
  width: 116px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(71%) sepia(88%) saturate(4265%) hue-rotate(130deg) brightness(101%) contrast(80%);
}

.gate-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate-footer-links a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #c5ccc8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.gate-footer-links a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

@media (max-width: 900px) {
  .gate-topbar {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 28px);
    margin: max(10px, env(safe-area-inset-top)) auto 0;
    transform: none;
    padding: 9px 10px 9px 18px;
    overflow: visible;
    border: 1px solid #303532;
    border-radius: 24px;
    background: #171a18;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
    isolation: isolate;
  }

  .gate-inner {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .gate-footer {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .gate-topbar {
    padding: 8px 9px 8px 16px;
  }

  .gate-inner {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .gate-footer {
    width: 100%;
    padding-right: max(14px, env(safe-area-inset-right));
    padding-top: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .gate-footer-links {
    gap: 0;
  }

  .gate-footer-links a {
    padding: 0 9px;
    font-size: 12px;
  }
}

/* Let iOS Safari respond to the page scroll and collapse its own toolbar. */
html.gate-active {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  background: var(--gate-ink);
}

body.gate-active {
  min-height: 100svh;
  overflow: visible;
  overscroll-behavior-y: none;
  background: var(--gate-ink);
}

#gateOverlay {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  touch-action: pan-y;
}

.gate-scroll-wrap {
  min-height: 100svh;
}

@media (max-width: 900px), (pointer: coarse) {
  html.gate-active {
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }

  /* Paint the gate background as one viewport-fixed layer (see ::before below)
     instead of on the overlay's scroll box, which ends at the footer and
     leaves flat ink below it. */
  body.gate-active {
    min-height: auto;
    overflow: visible;
    overscroll-behavior-y: auto;
    background: transparent;
  }

  body.gate-active::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(circle at 78% 58%, rgba(26, 188, 156, .1), transparent 27%),
      radial-gradient(circle at 12% 88%, rgba(26, 188, 156, .06), transparent 22%),
      var(--gate-ink);
  }

  #gateOverlay {
    position: static;
    min-height: 0;
    overflow: visible;
    touch-action: auto;
    -webkit-overflow-scrolling: auto;
    background: transparent;
  }

  .gate-scroll-wrap {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .gate-ball {
    display: none;
  }

  .gate-app-phone {
    overflow: hidden;
    clip-path: none;
    filter: none;
  }

  .gate-app-phone-left,
  .gate-app-phone-right {
    opacity: .4;
    filter: none;
  }

  .gate-right::after {
    display: none;
  }

  .gate-footer {
    padding-bottom: 24px;
  }
}
