body.login { overflow: hidden; min-height: 100vh; }
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pillbar {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: min(1120px, calc(100vw - 32px)); height: 48px; padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid rgba(190, 182, 255, 0.16);
  background: rgba(8, 7, 30, 0.55); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.pb-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; font-size: 12px; }
.pb-brand svg { width: 18px; height: 18px; color: var(--rim); }
.pb-brand i { font-style: normal; color: var(--ink-3); letter-spacing: 0.1em; }
.pb-meta { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(156, 146, 255, 0.1); color: var(--ink-2); font-size: 12px; letter-spacing: 0.04em; }

.stage {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; grid-template-rows: 32vh auto auto 1fr; justify-items: center;
  padding: 0 24px;
}
.word {
  grid-row: 2; margin: 0; width: min(1240px, 88vw);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 900; font-size: clamp(42px, 11vw, 168px); line-height: 1; letter-spacing: 0;
  color: #fbfaff; text-shadow: 0 0 40px rgba(150, 130, 255, 0.45);
}
.word span { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(10px);
  animation: letter 1.1s var(--ease) forwards; }
.word span:nth-child(1) { animation-delay: 0.1s; }
.word span:nth-child(2) { animation-delay: 0.17s; }
.word span:nth-child(3) { animation-delay: 0.24s; }
.word span:nth-child(4) { animation-delay: 0.31s; }
.word span:nth-child(5) { animation-delay: 0.38s; }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }

.line {
  grid-row: 3; margin: 26px 0 0; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); text-align: center;
}

.gate {
  grid-row: 4; align-self: start; margin-top: 34px; width: min(360px, 100%);
  display: grid; gap: 10px;
}
.gate h2 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-align: center; letter-spacing: 0.02em; }
.gate .btn { height: 46px; margin-top: 4px; font-size: 15px; }
.msg { margin: 0; min-height: 18px; font-size: 13px; color: var(--err); text-align: center; }
.msg:empty { min-height: 0; }
.fine { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

body.leaving .word, body.leaving .line, body.leaving .gate, body.leaving .pillbar {
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  opacity: 0; transform: translateY(-14px) scale(0.98); filter: blur(6px);
}
body.leaving .pillbar { transform: translate(-50%, -14px); }

@media (max-width: 640px) {
  .stage { grid-template-rows: 31vh auto auto 1fr; }
  .line { margin-top: 56px; max-width: 30ch; font-size: 10.5px; letter-spacing: 0.12em; line-height: 1.7; text-shadow: 0 0 12px #06051a, 0 0 4px #06051a; }
}
@media (max-height: 700px) {
  .stage { grid-template-rows: 24vh auto auto 1fr; }
  .gate { margin-top: 22px; }
}
