@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap');

:root {
  color-scheme: dark;
  --blue: #5865f2;
  --electric: #8295ff;
  --black: #050609;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #03040b;
  font-family: 'Space Grotesk', sans-serif;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .4) 100%);
}

.space-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #03040b;
}

#galaxy-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.galaxy-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(1, 1, 8, .3), transparent 45%, rgba(2, 1, 10, .28));
}

.floating-accounts {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(42px, 9vw, 120px);
  min-height: 100vh;
  padding: 24px;
}

.floating-icon {
  display: grid;
  place-items: center;
  width: clamp(78px, 13vw, 116px);
  height: clamp(78px, 13vw, 116px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #111522;
  box-shadow: 0 0 18px rgba(112, 133, 255, .5), 0 0 55px rgba(75, 95, 245, .24);
  cursor: pointer;
  transition: filter .3s ease, transform 1.8s cubic-bezier(.2, .8, .2, 1), opacity 1.8s ease;
  animation: float 5.5s ease-in-out infinite;
  will-change: transform;
}

body.is-zooming .floating-icon {
  animation: none;
}

body.is-zooming .floating-icon:not(.is-selected) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}

body.is-zooming .floating-icon.is-selected {
  position: relative;
  z-index: 3;
  transform: translate(var(--zoom-x), var(--zoom-y)) scale(1.12);
  opacity: 1;
  cursor: default;
  transition: transform 2s cubic-bezier(.2, .8, .2, 1), opacity .8s ease;
}

body.is-zooming .floating-icon.is-selected.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.floating-icon:nth-child(2) { animation-delay: -1.8s; }
.floating-icon:nth-child(3) { animation-delay: -3.6s; }
.floating-icon:hover, .floating-icon:focus-visible {
  filter: brightness(1.3);
  outline: none;
  transform: scale(1.1);
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup {
  background: #5b21b6;
  box-shadow: 0 0 18px rgba(167, 110, 255, .82), 0 0 55px rgba(91, 33, 182, .58);
}

.plus-icon {
  color: white;
  font-family: Arial, sans-serif;
  font-size: clamp(54px, 8vw, 76px);
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 255, 255, .55);
}

.discord-choice {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 4, 11, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

body.show-discord-choice .discord-choice {
  opacity: 1;
  pointer-events: auto;
}

.discord-choice-card {
  width: min(100%, 430px);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  transform: translateY(18px) scale(.96);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

body.show-discord-choice .discord-choice-card {
  transform: translateY(0) scale(1);
}

.eyebrow {
  margin: 0 0 12px;
  color: #a6b2ff;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.discord-choice h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
}

.discord-required {
  margin: 10px 0 0;
  color: #c7c9dc;
  font-size: .78rem;
}

.discord-login {
  border: 0;
  border-bottom: 2px solid white;
  padding: 4px 2px;
  color: white;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 24px rgba(168, 85, 247, .8);
  box-shadow: 0 8px 20px rgba(168, 85, 247, .3);
  transition: color .25s ease, text-shadow .25s ease, border-color .25s ease;
}

.discord-login:hover, .discord-login:focus-visible {
  color: #d9c2ff;
  border-color: #d9c2ff;
  outline: none;
  text-shadow: 0 0 10px white, 0 0 30px rgba(168, 85, 247, 1);
}

@keyframes float {
  0%, 100% { translate: 0 -7px; }
  50% { translate: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-icon { animation: none; }
}
