* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000000;
  color: #f9fafb;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vortex {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

.vortex::before,
.vortex::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(40% 40% at 30% 35%, rgba(80, 12, 47, 0.8), transparent 40%),
    radial-gradient(35% 35% at 70% 30%, rgba(124, 54, 255, 0.7), transparent 40%),
    radial-gradient(45% 45% at 60% 70%, rgba(18, 220, 255, 0.7), transparent 40%);
  background-size: 160% 160%;
  background-position: 30% 35%;
  filter: blur(40px) saturate(120%);
  opacity: 0.7;
  z-index: 0;
  transform: translateZ(0);
  animation: vortexColorMix 40s ease-in-out infinite alternate;
}

.vortex::after {
  background: radial-gradient(45% 45% at 20% 70%, rgba(5, 5, 5, 0.6), transparent 45%),
    radial-gradient(35% 35% at 80% 65%, rgba(90, 60, 255, 0.6), transparent 45%),
    radial-gradient(40% 40% at 55% 20%, rgba(190, 40, 255, 0.45), transparent 45%);
  background-size: 180% 180%;
  background-position: 55% 20%;
  filter: blur(55px) saturate(130%);
  opacity: 0.55;
  animation: vortexColorMix 48s ease-in-out infinite alternate-reverse;
}

@keyframes vortexColorMix {
  0% {
    transform: translate3d(-0.5%, -0.3%, 0) scale(1.01);
    background-position: 20% 30%;
    filter: blur(40px) saturate(125%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(0.4%, 0.3%, 0) scale(1.015);
    background-position: 60% 45%;
    filter: blur(46px) saturate(145%) hue-rotate(28deg);
  }
  100% {
    transform: translate3d(-0.3%, 0.5%, 0) scale(1.01);
    background-position: 35% 60%;
    filter: blur(42px) saturate(135%) hue-rotate(-22deg);
  }
}

.vortex-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.center-image {
  max-width: 90vw;
  max-height: 80vh;
}

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(35vw, 100px);
  height: auto;
  pointer-events: none;
}

#earth-canvas {
  width: 100%;
  height: auto;
  max-width: 720px;
  max-height: 720px;
  aspect-ratio: 1 / 1;
  display: block;
}
