.landing-main {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 22vh;
}

.gate {
  position: relative;
  width: min(30rem, 100%);
  padding: 2.75rem 2rem 2rem;
  text-align: center;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(20, 30, 66, 0.72), rgba(14, 20, 46, 0.78));
  border: 1px solid rgba(255, 225, 160, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: gate-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.gate-star {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  background: radial-gradient(circle, #fff6d8 0 18%, var(--gold) 40%, transparent 72%);
  clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 60%, 80% 100%, 50% 76%, 20% 100%, 31% 60%, 0 38%, 39% 36%);
  filter: drop-shadow(0 0 14px rgba(255, 200, 100, 0.9));
  animation: star-glow 3.5s ease-in-out infinite;
}

@keyframes star-glow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.08) rotate(6deg); opacity: 1; }
}

.gate-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

.gate h1 {
  margin: 0.15rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(255, 200, 120, 0.25);
}

.gate-lead {
  margin: 0 auto 1.75rem;
  max-width: 22rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gate-form label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.gate-field {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gate-field input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: rgba(6, 10, 26, 0.6);
  border: 1px solid rgba(200, 210, 240, 0.25);
  border-radius: 0.8rem;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

.gate-field input::placeholder { color: rgba(201, 207, 227, 0.45); }

.gate-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 199, 102, 0.25);
}

.gate-field button {
  flex: 1 0 auto;
  padding: 0.85rem 1.3rem;
  font: inherit;
  font-weight: 700;
  color: #2c1a07;
  background: linear-gradient(180deg, #ffd88a, #f4ab3e);
  border: 0;
  border-radius: 0.8rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(244, 171, 62, 0.35);
  transition: transform 120ms, box-shadow 150ms, filter 150ms;
}

.gate-field button:hover { filter: brightness(1.05); box-shadow: 0 10px 28px rgba(244, 171, 62, 0.5); }
.gate-field button:active { transform: translateY(1px); }
.gate-field button:disabled { cursor: progress; filter: saturate(0.6) brightness(0.9); }

.gate-message {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: #ffc2b4;
}

.gate-message.is-info { color: var(--gold-soft); }

.gate.shake { animation: gate-shake 420ms ease; }

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.gate-return {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink-soft);
}

.gate-return p { margin: 0 0 0.5rem; }

.gate-return ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.gate-return a {
  display: inline-block;
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
}

.gate-return a:hover { background: rgba(255, 220, 150, 0.1); text-decoration: underline; }

.landing-footer {
  position: fixed;
  z-index: 10;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  right: 1rem;
  font-size: 0.8rem;
}

.landing-footer a {
  color: rgba(40, 52, 90, 0.75);
  text-decoration: none;
}

.landing-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .gate, .gate-star { animation: none; }
}
