:root {
  color-scheme: dark;
  --text: #f5f7fb;
  --muted: #a9b2c6;
  --faint: rgba(245, 247, 251, 0.12);
  --glass: rgba(9, 14, 28, 0.46);
  --glass-border: rgba(210, 222, 255, 0.18);
  --blue: #75a9ff;
  --violet: #a68cff;
  --silver: #dce6f8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #03050c;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 44%, rgba(124, 158, 255, 0.17), transparent 18rem),
    radial-gradient(circle at 74% 24%, rgba(147, 93, 255, 0.18), transparent 17rem),
    radial-gradient(circle at 24% 70%, rgba(69, 153, 230, 0.12), transparent 18rem),
    linear-gradient(140deg, #02030a 0%, #071020 44%, #050712 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.78;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(179, 204, 255, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 0.8px, transparent 1.3px);
  background-position: 0 0, 36px 58px, 78px 18px;
  background-size: 150px 150px, 210px 210px, 260px 260px;
  animation: starDrift 46s linear infinite;
}

body::after {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.035) 42%, transparent 56%);
  mix-blend-mode: screen;
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lobby {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 70px);
  place-items: center;
  padding: 48px 20px 28px;
}

.glass-panel {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(42px, 8vw, 86px) clamp(24px, 6vw, 68px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(135%);
}

.glass-panel::before {
  position: absolute;
  inset: -45% -25% auto;
  height: 240px;
  content: "";
  background: radial-gradient(circle, rgba(139, 179, 255, 0.22), transparent 68%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.brand-mark {
  position: relative;
  margin: 0;
  font-size: clamp(2.45rem, 9vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--text);
  text-shadow:
    0 0 22px rgba(111, 164, 255, 0.38),
    0 0 56px rgba(166, 140, 255, 0.22);
}

.signal-line {
  width: min(220px, 56%);
  height: 1px;
  margin: 30px auto 34px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--silver), var(--violet), transparent);
  box-shadow: 0 0 18px rgba(117, 169, 255, 0.52);
}

.access-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  margin-top: 0;
  padding: 0 18px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(21, 31, 54, 0.58);
  border: 1px solid rgba(222, 232, 255, 0.26);
  border-radius: 999px;
  box-shadow:
    0 16px 42px rgba(33, 76, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.access-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.22) 46%, transparent 68%);
  transform: translateX(-125%);
  transition: transform 600ms ease;
}

.access-button:hover,
.access-button:focus-visible {
  border-color: rgba(228, 237, 255, 0.52);
  box-shadow:
    0 18px 54px rgba(58, 107, 206, 0.36),
    0 0 34px rgba(129, 165, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.access-button:hover::before,
.access-button:focus-visible::before {
  transform: translateX(125%);
}

.access-button:focus-visible {
  outline: 2px solid rgba(196, 217, 255, 0.82);
  outline-offset: 4px;
}

.access-button span {
  position: relative;
}

.site-footer {
  position: relative;
  z-index: 1;
  min-height: 70px;
  padding: 18px 20px 28px;
  color: rgba(220, 230, 248, 0.66);
  text-align: center;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-80px, 60px, 0);
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.42;
    transform: translateY(0) scale(0.96);
  }

  to {
    opacity: 0.9;
    transform: translateY(18px) scale(1.08);
  }
}

@media (max-width: 640px) {
  .lobby {
    min-height: calc(100vh - 78px);
    padding-top: 32px;
  }

  .glass-panel {
    border-radius: 22px;
  }

  .brand-mark {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
