:root {
  --navy: #072f73;
  --navy2: #001f4f;
  --lime: #cce600;
  --ink: #10213a;
  --muted: #66758a;
  --line: #dde4ec;
  --paper: #f4f7fa;
  --shadow: 0 18px 55px rgba(7, 47, 115, 0.12);
}

html:has(body.gate) {
  background: var(--navy2);
  overflow-x: hidden;
  overflow-y: auto;
}

body.gate {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}


html:has(body.gate) {
  background: var(--navy2);
  overflow-x: hidden;
  overflow-y: auto;
}

.gate-forgot-link {
  margin: -4px 0 0;
  text-align: right;
  font-size: 0.86rem;
}

.gate-forgot-link a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gate-member-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: left;
}

.gate-member-ids {
  display: grid;
  gap: 12px;
}

.gate-card form.gate-forgot {
  gap: 14px;
}

.gate-alt a {
  color: var(--navy);
  font-weight: 800;
}

.gate-proshop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.gate-proshop::before {
  content: "←";
  font-weight: 900;
  line-height: 1;
}

.gate-proshop:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7, 47, 115, 0.12);
}

.gate-home {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin: 0 auto 14px 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.gate-home:hover {
  color: #001f4f;
  transform: translateX(-2px);
}

.gate {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 16px;
  background: transparent;
}

@supports (height: 100dvh) {
  .gate {
    min-height: 100dvh;
  }
}

.gate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 14% 12%, rgba(204, 230, 0, 0.3), transparent 58%),
    radial-gradient(ellipse 50% 42% at 86% 88%, rgba(20, 70, 150, 0.55), transparent 62%),
    radial-gradient(ellipse 36% 30% at 72% 22%, rgba(204, 230, 0, 0.1), transparent 55%),
    var(--navy2);
  background-size: 140% 140%, 150% 150%, 120% 120%, auto;
  background-position: 0% 0%, 100% 100%, 60% 20%, 0 0;
  animation: gateAurora 16s ease-in-out infinite alternate;
}

.gate > .gate-card {
  margin-top: auto;
  margin-bottom: auto;
  flex: 0 0 auto;
}

.gate-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  animation: gateOrb 11s ease-in-out infinite alternate;
}

.gate-orb-a {
  width: 260px;
  height: 260px;
  top: 6%;
  left: -60px;
  background: rgba(204, 230, 0, 0.18);
}

.gate-orb-b {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: 4%;
  background: rgba(7, 47, 115, 0.55);
  animation-delay: -4s;
  animation-duration: 14s;
}

.gate-orb-c {
  width: 180px;
  height: 180px;
  top: 42%;
  right: 12%;
  background: rgba(204, 230, 0, 0.1);
  animation-delay: -7s;
  animation-duration: 13s;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 36px 32px 32px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  animation:
    gateCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    gateCardGlow 4.5s ease-in-out 0.6s infinite alternate;
}

.gate-card-wide { width: min(560px, 100%); }

.gate-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.gate-brand img {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto;
  animation:
    gateLogoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    gateLogoFloat 3.6s ease-in-out 0.7s infinite alternate;
}

.gate-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.gate-tagline::before,
.gate-tagline::after {
  content: "";
  height: 2px;
  min-width: 6px;
  border-radius: 2px;
  background: var(--lime);
  flex: 1 1 0;
}

.gate-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f8e4;
  color: #314000;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

.gate-lookup {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: left;
}

.gate-lookup.ok { color: #314000; }

.gate-lookup.bad { color: #9a3412; }

.gate-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.gate-step {
  border: 1px solid var(--line);
  background: #fff;
  color: #6a788a;
  border-radius: 999px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  animation: gateStepIn 0.45s ease both;
}

.gate-step:nth-child(1) { animation-delay: 0.12s; }

.gate-step:nth-child(2) { animation-delay: 0.2s; }

.gate-step:nth-child(3) { animation-delay: 0.28s; }

.gate-step.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7, 47, 115, 0.28);
  animation: gateStepPulse 2.2s ease-in-out infinite alternate;
}

.gate-step:not(:disabled):hover {
  border-color: var(--navy);
  color: var(--navy);
}

.gate-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gate-register {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  text-align: left;
}

.gate-panel[hidden] { display: none !important; }

.gate-panel-in {
  animation: gatePanelIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  text-align: left;
}

.gate-group h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.gate-group-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gate-span { grid-column: 1 / -1; }

.gate-hidden {
  display: none !important;
}

.gate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gate-nav-center {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.gate-nav-center .gate-next,
.gate-nav-center .gate-manual {
  width: 100%;
  text-align: center;
}

.gate-manual {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gate-manual:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: #f4f8e4;
}

.gate-back,
.gate-next,

.gate-submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gate-back {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  margin-right: auto;
}

.gate-next,
.gate-submit {
  background: var(--lime);
  color: var(--navy2);
  box-shadow: 0 8px 22px rgba(204, 230, 0, 0.35);
  animation: gateBtnGlow 2.4s ease-in-out infinite alternate;
}

.gate-next:disabled,
.gate-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
  box-shadow: none;
}

.gate-next:hover:not(:disabled),
.gate-submit:hover:not(:disabled),

.gate-back:hover {
  transform: translateY(-2px);
}

.gate-next:hover:not(:disabled),
.gate-submit:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 47, 115, 0.28);
  animation: none;
}

.gate-card input[readonly] {
  background: #eef2f7;
  color: var(--navy);
}

.gate-card img {
  display: block;
  width: 176px;
  height: auto;
}

.gate-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 10px auto 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--navy);
  animation: gateFadeUp 0.5s ease 0.12s both;
}

.gate-brand .gate-kicker::before {
  display: none;
}

.gate-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--lime);
}

.gate-card h1 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  animation: gateFadeUp 0.5s ease 0.18s both;
}

.gate-lead {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--muted);
  animation: gateFadeUp 0.5s ease 0.24s both;
}

  .gate-steps { grid-template-columns: 1fr; }

  .gate-grid { grid-template-columns: 1fr; }

  .gate-step { text-align: left; padding-left: 14px; }

@keyframes gateCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes gateCardGlow {
  from { box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06); }
  to { box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(204, 230, 0, 0.18); }
}

@keyframes gateLogoIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes gateLogoFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

@keyframes gateFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes gateStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes gateStepPulse {
  from { box-shadow: 0 6px 14px rgba(7, 47, 115, 0.2); }
  to { box-shadow: 0 10px 22px rgba(7, 47, 115, 0.34); }
}

@keyframes gatePanelIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes gateOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(22px, -18px, 0) scale(1.1); }
}

@keyframes gateAurora {
  from {
    background-position: 0% 0%, 100% 100%, 60% 20%, 0 0;
    filter: saturate(1);
  }
  to {
    background-position: 18% 12%, 78% 86%, 42% 28%, 0 0;
    filter: saturate(1.08);
  }
}

@keyframes gateBtnGlow {
  from { box-shadow: 0 8px 18px rgba(204, 230, 0, 0.28); }
  to { box-shadow: 0 12px 28px rgba(204, 230, 0, 0.48); }
}

.gate-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4f0;
  color: #9a3412;
  font-weight: 700;
  text-align: left;
}

.gate-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  text-align: left;
}

.gate-card label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.gate-card input,
.gate-card select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gate-card input:focus,
.gate-card select:focus {
  outline: 3px solid rgba(204, 230, 0, 0.85);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7, 47, 115, 0.1);
}

.gate-card form > button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy2);
  font-weight: 800;
  padding: 12px 16px;
}

.gate-card form > button[type="submit"]:hover {
  background: var(--navy);
  color: #fff;
}

  .gate-orb { display: none; }

  .gate::before { animation: none !important; filter: none !important; }

  .gate-card { animation: none !important; }

  .gate-step.active { animation: none !important; }

.gate-alt {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.gate-card .gate-submit {
  width: 100
.gate-alt {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.gate-card .gate-submit {
  width: 100%;
  margin-top: 8px;
}

