.contact-gate {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 1.5rem;
  background: var(--bg-cream, #faf9f6);
  color: var(--content-primary, #141e26);
  font-family: var(--font-display, sans-serif);
  color-scheme: light;
}

.contact-gate::backdrop {
  background: rgb(20 30 38 / 68%);
}

.contact-gate__title {
  margin: 0 0 1rem;
  padding-inline-end: 3rem;
  font-size: clamp(1.375rem, 4vw, 2rem);
  line-height: 1.15;
}

.contact-gate__form,
.contact-gate__field {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.contact-gate__field {
  gap: 0.375rem;
}

.contact-gate__field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #617279;
  border-radius: 0.5rem;
  background: var(--bg-white, #fff);
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.contact-gate__consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.contact-gate__consent input {
  appearance: auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #007779;
}

.contact-gate__consent a {
  color: #006e70;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-gate__error {
  margin: 0;
  color: #a31c28;
  font-size: 0.875rem;
}

.contact-gate__submit {
  min-height: 2.75rem;
  background: #007779;
}

.contact-gate__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-gate :focus-visible {
  outline: 2px solid #007779;
  outline-offset: 2px;
}

.contact-gate__close,
#game > .game__pause {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.contact-gate__close {
  inset-block-start: 12px;
  inset-inline-end: 12px;
  color: #141e26;
}

#game > .game__pause {
  inset-block-start: max(8px, env(safe-area-inset-top, 0px));
  inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
  z-index: 7;
  color: #fff;
  background: #141e26e8;
}

#game > .game__pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#game:has(.game__modal) > .game__pause {
  display: none;
}

#game .game__top {
  padding-inline-end: max(var(--gutter), calc(58px + env(safe-area-inset-right, 0px)));
}

@media (max-width: 767px) {
  #game .game__screen--intro .game__skip-intro {
    margin-inline-end: 44px;
  }
}
