/* Forge enter. Own membership. */

html.gate-wait #gate,
html.is-opening #gate,
html.is-share #gate {
  display: none !important;
}

html:not(.is-share) body.form:not(.is-member) #form-empty,
html:not(.is-share) body.form:not(.is-member) .form-dock,
html:not(.is-share) body.form:not(.is-member) .form-clip,
html:not(.is-share) body.form:not(.is-member) .form-ar-call {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.form.is-gate {
  overflow: hidden;
}

body.form.is-gate #form-stage,
body.form.is-gate .form-empty,
body.form.is-gate .form-aura,
body.form.is-gate .form-dock,
body.form.is-gate .form-clip,
body.form.is-gate .form-note,
body.form.is-gate .form-ar-call {
  visibility: hidden;
  pointer-events: none;
}

body.form.is-gate .form-hud {
  visibility: visible;
  pointer-events: auto;
  z-index: 41;
}

.gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  place-items: center;
  overflow: auto;
  padding: max(2rem, env(safe-area-inset-top)) max(1.6rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1.6rem, env(safe-area-inset-left));
}

body.form.is-gate .gate {
  display: grid;
}

.gate-aura {
  display: none;
}

.gate-enter-layer,
.gate-join-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
}

.gate-enter-layer {
  animation: gate-in 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.gate.is-join .gate-enter-layer,
.gate.is-reset .gate-enter-layer,
.gate-join-layer[hidden],
.gate-join-card[hidden],
.gate-soon-card[hidden] {
  display: none !important;
}

.gate-core {
  width: min(22rem, 100%);
  text-align: center;
}

.gate-brand {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0 auto 2.4rem;
}

.gate-3d {
  margin: 0;
  font-size: clamp(3.2rem, 14vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 0.9;
  text-transform: uppercase;
  color: rgba(243, 245, 248, 0.94);
}

.gate-3d em {
  font-style: normal;
  color: var(--brand);
}

.gate-forge {
  margin: 0.65rem 0 0;
  font-size: clamp(0.92rem, 2.6vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(243, 245, 248, 0.4);
}

.gate-forge-line {
  width: 2.2rem;
  height: 1px;
  margin: 0.95rem auto 0.85rem;
  background: var(--brand);
}

.gate-tag {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: rgba(150, 175, 200, 0.42);
}

.gate-aside {
  margin-top: 1.35rem;
}

.gate-aside-more {
  margin-top: 0.85rem;
}

a.gate-switch,
a.gate-demo {
  display: inline-block;
  text-decoration: none;
}

.gate-switch {
  border: 0;
  background: none;
  padding: 0.4rem 0.2rem;
  color: rgba(243, 245, 248, 0.22);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.28s ease;
}

.gate-demo {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 119, 200, 0.38);
  background: transparent;
  padding: 0.78rem 0.9rem;
  color: rgba(0, 119, 200, 0.86);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (hover: hover) {
  .gate-switch:hover {
    color: var(--brand);
  }

  .gate-demo:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 36px rgba(0, 119, 200, 0.32);
  }
}

.gate-form {
  display: grid;
  gap: 1.35rem;
}

.gate-field {
  display: grid;
  gap: 0.4rem;
  text-align: left;
}

.gate-field span {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 245, 248, 0.34);
}

.gate-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(243, 245, 248, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 0.35rem 0 0.45rem;
  outline: none;
}

.gate-field input:-webkit-autofill,
.gate-field input:-webkit-autofill:hover,
.gate-field input:-webkit-autofill:focus,
.gate-secret input:-webkit-autofill,
.gate-secret input:-webkit-autofill:hover,
.gate-secret input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  box-shadow: 0 0 0 1000px var(--ink) inset;
  transition: background-color 99999s ease-out;
}

.gate-secret {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(243, 245, 248, 0.14);
}

.gate-secret input {
  border-bottom: 0;
  padding-right: 0.2rem;
}

.gate-secret:focus-within {
  border-bottom-color: var(--brand);
}

.gate-peek {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: rgba(243, 245, 248, 0.28);
  cursor: pointer;
}

.gate-peek svg {
  width: 17px;
  height: 17px;
  display: none;
}

.gate-peek .gate-peek-show {
  display: block;
}

.gate-peek.is-on {
  color: var(--brand);
}

.gate-peek.is-on .gate-peek-show {
  display: none;
}

.gate-peek.is-on .gate-peek-hide {
  display: block;
}

.gate-peek:hover,
.gate-field input:focus {
  color: var(--brand);
}

.gate-field input:focus {
  border-bottom-color: var(--brand);
}

.gate-go {
  margin-top: 0.85rem;
  border: 1px solid rgba(0, 119, 200, 0.48);
  background: transparent;
  padding: 0.95rem 0;
  color: var(--brand);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gate-go:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 36px rgba(0, 119, 200, 0.32);
}

.forge-door {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  place-items: center;
  background: #050505;
  overflow: hidden;
}

html.gate-wait .forge-door,
html.is-share .forge-door,
html.door-off .forge-door {
  display: none !important;
}

body.form.is-gate .forge-door {
  display: grid;
}

.forge-door-core {
  position: absolute;
  inset: 0 0 12vh;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
}

.forge-door .gate-brand {
  margin: 0;
}

.forge-door .gate-3d {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  font-size: clamp(6.6rem, 16vw, 11rem);
  letter-spacing: 0;
  text-indent: 0;
  perspective: 900px;
}

.forge-door-three {
  color: rgba(243, 245, 248, 0.94);
}

.forge-door-d {
  display: inline-grid;
  color: var(--brand);
  transform-style: preserve-3d;
  transform-origin: 50% 55%;
  animation: forge-door-yaw 9s ease-in-out infinite;
}

.forge-door-d i {
  grid-area: 1 / 1;
  font-style: normal;
  color: #06345a;
}

.forge-door-d i:nth-child(1) { transform: translateZ(-0.44em); color: #01080e; }
.forge-door-d i:nth-child(2) { transform: translateZ(-0.4em); color: #021018; }
.forge-door-d i:nth-child(3) { transform: translateZ(-0.36em); color: #031422; }
.forge-door-d i:nth-child(4) { transform: translateZ(-0.32em); color: #04182c; }
.forge-door-d i:nth-child(5) { transform: translateZ(-0.28em); color: #051e36; }
.forge-door-d i:nth-child(6) { transform: translateZ(-0.24em); color: #062440; }
.forge-door-d i:nth-child(7) { transform: translateZ(-0.2em); color: #072a4a; }
.forge-door-d i:nth-child(8) { transform: translateZ(-0.16em); color: #083054; }
.forge-door-d i:nth-child(9) { transform: translateZ(-0.12em); color: #09365e; }
.forge-door-d i:nth-child(10) { transform: translateZ(-0.08em); color: #0a3c68; }
.forge-door-d i:nth-child(11) { transform: translateZ(-0.04em); color: #0b4474; }
.forge-door-d i.is-face {
  color: var(--brand);
  transform: translateZ(0);
}

@keyframes forge-door-yaw {
  0%,
  100% {
    transform: rotateX(7deg) rotateY(-16deg);
  }
  50% {
    transform: rotateX(7deg) rotateY(16deg);
  }
}

.forge-door .gate-forge {
  margin-top: 0.15rem;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  letter-spacing: 0.78em;
  text-indent: 0.78em;
  color: rgba(243, 245, 248, 0.62);
}

.forge-door .gate-forge-line {
  width: 4.8rem;
  margin-top: 1.4rem;
}

.forge-door-acts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(2.4rem, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.forge-door .gate-go {
  width: auto;
  min-width: 8.6rem;
  margin: 0;
  padding: 0.9rem 1.4rem;
}

.forge-door .gate-go:not(.is-ghost) {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 36px rgba(0, 119, 200, 0.28);
}

.forge-door .gate-go.is-ghost {
  color: rgba(243, 245, 248, 0.78);
  border-color: rgba(243, 245, 248, 0.16);
  background: transparent;
  box-shadow: none;
}

.forge-door-demo {
  margin-left: 0.6rem;
  border: 0;
  background: none;
  padding: 0.4rem 0.2rem;
  color: rgba(243, 245, 248, 0.38);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}

.forge-door-demo:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .forge-door .gate-3d {
    font-size: clamp(5.4rem, 26vw, 7.2rem);
  }

  .forge-door-acts {
    flex-wrap: wrap;
    padding: 0 1.2rem;
  }

  .forge-door-demo {
    flex-basis: 100%;
    margin: 0.2rem 0 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forge-door-d {
    animation: none;
    transform: rotateX(7deg) rotateY(12deg);
  }
}

.gate-note {
  margin-top: 1.15rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(0, 119, 200, 0.9);
}

.gate-reset,
.gate-again {
  margin-top: 0.55rem;
}

.gate-reset[hidden],
.gate-again[hidden],
.gate-note[hidden] {
  display: none;
}

.gate-join-card.is-sent .gate-join-grid,
.gate-join-card.is-sent .gate-go,
.gate-join-card.is-sent .gate-pass-hint {
  display: none;
}

.gate-join-layer {
  min-height: 100%;
  animation: gate-join-in 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.gate-join-wash {
  position: fixed;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  z-index: 0;
  pointer-events: none;
  font-size: clamp(5.5rem, 22vw, 13rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 245, 248, 0.045);
  text-indent: 0.18em;
}

.gate-join-card {
  position: relative;
  z-index: 1;
  width: min(38rem, 100%);
  padding: 2rem 1.7rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(243, 245, 248, 0.08);
  background:
    linear-gradient(180deg, rgba(243, 245, 248, 0.035), rgba(5, 5, 5, 0.35) 42%, rgba(5, 5, 5, 0.55)),
    rgba(5, 5, 5, 0.62);
  box-shadow:
    0 0 0 1px rgba(0, 119, 200, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 119, 200, 0.08);
  backdrop-filter: blur(14px);
}

.gate-join-back {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  background: none;
  padding: 0.2rem 0.15rem;
  color: rgba(243, 245, 248, 0.34);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
}

.gate-join-back svg {
  width: 16px;
  height: 16px;
}

.gate-join-back:hover {
  color: var(--brand);
}

.gate-join-kicker {
  font-size: 10px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--brand);
  text-indent: 0.46em;
}

.gate-join-title {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  text-indent: 0.22em;
  color: rgba(243, 245, 248, 0.92);
}

.gate-join-line {
  width: 2.4rem;
  height: 1px;
  margin: 1.15rem auto 1.7rem;
  background: var(--brand);
  box-shadow: 0 0 16px rgba(0, 119, 200, 0.7);
}

.gate-join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.4rem;
  text-align: left;
}

.gate-join-grid > .gate-join-wide {
  grid-column: 1 / -1;
}

.gate-join-go {
  width: 100%;
  margin-top: 1.7rem;
}

.gate-soon-card {
  width: min(26rem, 100%);
  padding-top: 3.4rem;
  padding-bottom: 2.2rem;
}

.gate-soon-lead {
  margin: 0 0 0.65rem;
  color: rgba(243, 245, 248, 0.78);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.5;
}

.gate-soon-fine {
  margin: 0 0 1.85rem;
  color: rgba(243, 245, 248, 0.38);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.gate-soon-card .gate-go {
  width: 100%;
}

.gate-pass-hint {
  margin: 0.85rem 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgba(243, 245, 248, 0.38);
}

.gate-plans {
  display: none;
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gate-join-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gate-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (max-width: 720px) {
  .gate-join-card {
    padding: 3.2rem 1.15rem 1.5rem;
  }

  .gate-join-grid {
    grid-template-columns: 1fr;
  }
}
