:root {
  color-scheme: dark;
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: system-ui, -apple-system, "SF Pro Display", sans-serif;
}

/* Canvas */
#galaxy {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* Soft cinematic vignette */
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Premium centered title block */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.glow-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.glow-ring::before {
  content: "";
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    transparent 70%
  );
  filter: blur(10px);
  opacity: 0.35;
  animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.94) translateY(4px);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.06) translateY(-4px);
    opacity: 0.4;
  }
}

.center-content {
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

.title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f5f5f5;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.subtitle {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #a0a0a0;
  opacity: 0.8;
}

/* GitHub icon bottom-left */
.github-link {
  position: absolute;
  bottom: 1.3rem;
  left: 1.3rem;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.github-link:hover {
  opacity: 0.8;
  transform: translateY(-1px) scale(1.06);
}

.github-link img {
  width: 36px;
  height: 36px;
  filter: invert(1);
  -webkit-user-drag: none;
}

/* 2D mode button (bottom-right) */
.mode-switch {
  position: fixed;
  bottom: 1.3rem;
  opacity: 0.35;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  z-index: 6;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  background: radial-gradient(circle at top left, #202020, #000);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.9);
}

.mode-right {
  right: 1.3rem;
}

.mode-switch:hover {
  opacity: 0.85;
  transform: translateY(-2px) scale(1.03);
  background: radial-gradient(circle at top left, #2b2b2b, #000);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 1);
}

.mode-switch span {
  font-size: 0.83rem;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
