:root {
  color-scheme: dark;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  color: #f9f3fa;
  background: #100c15;
  --muted: #c3b1c9;
  --accent: #ff95cd;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.shell {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 108px 24px 52px;
  background:
    radial-gradient(ellipse at 50% 53%, #401837 0%, transparent 49%),
    radial-gradient(ellipse at 78% 20%, #272044 0%, transparent 55%), #100c15;
}
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(#fff3 1px, transparent 1.3px) 0 0 / 24px 24px;
  mask-image: radial-gradient(ellipse, #000, transparent 76%);
}
.orbit {
  position: absolute;
  z-index: -1;
  top: 50%; left: 50%;
  width: min(830px, 120vw);
  aspect-ratio: 1;
  translate: -50% -46%;
  border: 1px solid #ff9cdc29;
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-in 1.2s both cubic-bezier(.2,.75,.2,1);
}
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid #ffa0dc23; border-radius: inherit; inset: 9%; }
.orbit::after { inset: 20%; border-style: dashed; }
.orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffc0e4; box-shadow: 0 0 20px 2px #ff6dc2; }
.orbit i:nth-child(1) { top: 15%; left: 13%; }
.orbit i:nth-child(2) { top: 37%; right: 1%; }
.orbit i:nth-child(3) { bottom: 10%; right: 19%; width: 5px; height: 5px; }
.gate {
  position: relative;
  width: min(100%, 455px);
  padding: clamp(27px, 6vw, 49px);
  border: 1px solid #f5a0d050;
  border-radius: 31px;
  background: linear-gradient(145deg,#271b2dfa,#170f1bfa 70%);
  box-shadow: 0 34px 108px #08030dbd, inset 0 1px #ffe1f627, 0 0 50px #f850a314;
  animation: assemble .72s both cubic-bezier(.21,.83,.25,1);
}
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, #ff9bd929 50%, transparent 65%);
  background-size: 250% 100%;
  pointer-events: none;
  animation: sweep 1.06s .16s both ease-out;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: #ffc5e5; font: 650 11px/1.3 system-ui,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 13px #ff6dbe; }
h1 { margin: 18px 0 10px; font-size: clamp(34px, 7vw, 51px); line-height: 1.02; letter-spacing: -.052em; font-weight: 700; }
.intro { margin: 0 0 29px; color: var(--muted); line-height: 1.5; font-size: 15px; }

@keyframes assemble { from { opacity: 0; transform: translateY(20px) scale(.976); } to { opacity: 1; transform: none; } }
@keyframes orbit-in { from { opacity: 0; scale: .85; rotate: -11deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes sweep { from { opacity: .9; background-position: 100% 0; } to { opacity: 0; background-position: 0% 0; } }

@media (max-width: 360px) { .shell { padding-inline: 15px; } .gate { padding-inline: 22px; } }

.entry-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 47%, #3a142a, transparent 58%),
    linear-gradient(136deg, #1c1423, #0d0a11 69%);
}

.entry {
  --radius: 28px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  padding: clamp(30px, 7vw, 51px) clamp(24px, 7vw, 49px) 46px;
  text-align: center;
}

.entry::before, .entry::after, .entry-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
}

.entry::before {
  z-index: -1;
  content: "";
  border: 1px solid #ffb7df43;
  background: linear-gradient(155deg, #2a1627, #160f1b 70%);
  box-shadow: 0 26px 92px #09050bcc, inset 0 1px #ffdae919;
  animation: panel-form .95s .12s var(--ease-out) both;
}

.entry::after {
  content: "";
  z-index: 1;
  opacity: 0;
  background: linear-gradient(112deg, transparent 40%, #ff95c8a6 49.5%, #fff1fae0 50%, transparent 52%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  animation: frame-light .76s 1.02s var(--ease-out) both;
}

.entry-frame {
  --travel: clamp(38px, 11vw, 110px);
  z-index: -1;
}

.entry-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #ff9cc7;
  border-radius: inherit;
  opacity: 0;
  animation: frame-pulse .79s .72s ease-out both;
}

.entry-frame i {
  position: absolute;
  width: 37px;
  height: 37px;
  border: 2px solid #ffd2e6;
  filter: drop-shadow(0 0 8px #ff4ba7);
  animation: frame-corner .84s var(--delay) var(--ease-out) both;
}

.entry-frame i:nth-child(1) {
  --x: calc(0px - var(--travel)); --y: -57px; --turn: -26deg; --delay: .02s;
  top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius);
}
.entry-frame i:nth-child(2) {
  --x: var(--travel); --y: -57px; --turn: 26deg; --delay: .08s;
  top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: var(--radius);
}
.entry-frame i:nth-child(3) {
  --x: var(--travel); --y: 57px; --turn: -26deg; --delay: .14s;
  bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius);
}
.entry-frame i:nth-child(4) {
  --x: calc(0px - var(--travel)); --y: 57px; --turn: 26deg; --delay: .2s;
  bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: var(--radius);
}

.entry h1 {
  margin: 0 0 28px;
  font-size: clamp(38px, 10vw, 62px);
  animation: entry-title .65s .32s var(--ease-out) both;
}

.entry-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.entry-form input, .entry-form button {
  width: 100%;
  border-radius: 12px;
  font: inherit;
}

.entry-form input {
  height: 61px;
  border: 1px solid #a57591;
  background: #120c17;
  color: #fff1f9;
  caret-color: #ffa6cd;
  text-align: center;
  font-size: 26px;
  letter-spacing: .45em;
  text-indent: .45em;
  animation: entry-field .64s .49s var(--ease-out) both;
}

.entry-form input::placeholder {
  color: #b990a6;
  font-size: 17px;
  letter-spacing: .22em;
}

.entry-form input:not(:placeholder-shown) { animation: none; }
.entry-form input:focus { border-color: #ffacd3; box-shadow: 0 0 0 3px #ff8fc629; outline: none; }
.entry-form input[aria-invalid="true"] { border-color: #ff8fae; }

.entry-form button {
  min-height: 51px;
  border: 0;
  background: linear-gradient(105deg, #ffd5e6, #ffa1cb 75%);
  color: #2d1323;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 33px #f363a64a, inset 0 1px #fff9;
  transition: filter .18s, transform .18s;
  animation: entry-button .63s .72s var(--ease-out) both;
}

.entry-form button:hover { filter: brightness(1.08); }
.entry-form button:active { transform: translateY(1px); }
.entry-form button:focus-visible { outline: 2px solid #ffd9ed; outline-offset: 4px; }
.entry-form button:disabled { cursor: wait; }

.entry-feedback {
  position: absolute;
  inset: 100% 0 auto;
  margin: 9px 0 0;
  color: #ffc0d4;
  font-size: 13px;
  line-height: 1.4;
}

@keyframes frame-corner {
  0% { opacity: 0; translate: var(--x) var(--y); rotate: var(--turn); }
  24% { opacity: 1; }
  72% { opacity: .95; }
  100% { opacity: .49; translate: 0 0; rotate: 0deg; }
}
@keyframes panel-form {
  from { opacity: 0; clip-path: inset(46% 25% round 6px); }
  36% { opacity: .9; }
  90% { clip-path: inset(-1% round var(--radius)); }
  to { opacity: 1; clip-path: none; }
}
@keyframes frame-pulse {
  from { opacity: .78; scale: 1; }
  to { opacity: 0; scale: 1.19; }
}
@keyframes entry-title {
  from { opacity: 0; translate: 0 22px; filter: blur(9px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes entry-field {
  from { opacity: .2; translate: 0 24px; scale: .86 .8; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes entry-button {
  from { opacity: 0; translate: 35px 15px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes frame-light {
  from { opacity: .58; background-position: 100% 0; }
  60% { opacity: .35; }
  to { opacity: 0; background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .gate::before { display: none; } }
