.gate-card .gate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin: 22px auto 0;
  position: relative;
  text-align: left;
}

.gate-card:has(.heyoh-signup-form) {
  width: min(640px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.gate-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.gate-field--wide,
.gate-submit,
.gate-consent,
.gate-note,
.gate-honeypot {
  grid-column: 1 / -1;
}

.gate-field > span {
  color: #6f674f;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.gate-card .gate-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1.5px solid #ead9b0;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(64,46,12,.06);
  transition: border-color .2s, box-shadow .2s;
}

.gate-card .gate-form input::placeholder {
  color: #b3a98e;
  font-style: normal;
}

.gate-card .gate-form input:focus-visible {
  border-color: var(--sun-deep);
  box-shadow: 0 0 0 4px rgba(240,180,41,.18);
}

.gate-card .gate-form input[aria-invalid="true"] {
  border-color: #c75e4a;
}

.gate-card .gate-submit {
  position: static;
  display: inline-flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 18px -8px rgba(240,180,41,.8);
  transform: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.gate-card .gate-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(240,180,41,.9);
}

.gate-card .gate-submit:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.gate-card .gate-submit svg {
  width: 18px;
  height: 18px;
}

.gate-consent {
  margin: -2px 2px 0;
  color: #8a8168;
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.gate-card .gate-note {
  min-height: 18px;
  margin: 0;
  text-align: center;
}

.gate-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gate-signup-success {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-height: 250px;
  align-content: center;
  padding: 18px;
  text-align: center;
}

.gate-signup-success h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
}

.gate-signup-success p {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  #gate {
    align-items: flex-end;
    padding: max(18px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .gate-card:has(.heyoh-signup-form) {
    max-height: calc(100dvh - 30px);
    border-radius: 24px;
    padding: 25px 18px 20px;
  }

  .gate-card:has(.heyoh-signup-form) .gate-mark-slot {
    width: 52px;
    margin-top: -52px;
  }

  .gate-card:has(.heyoh-signup-form) .gate-h1 {
    margin-top: 8px;
    font-size: 34px;
  }

  .gate-card:has(.heyoh-signup-form) .gate-sub {
    margin-top: 6px;
    font-size: 13.5px;
  }

  .gate-card .gate-form {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .gate-field,
  .gate-field--wide,
  .gate-submit,
  .gate-consent,
  .gate-note {
    grid-column: 1;
  }

  .gate-card .gate-form input {
    height: 46px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    padding: 0 13px;
  }
}
