:root {
  --bg: #0b0d12;
  --text: #e6e9f0;
  --text-dim: #8b93a7;
  --accent: #7c9eff;
  --accent2: #52d68f;
  --panel: #151922;
  --border: #262c39;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
}

.bubble-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  transform: translate3d(0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1e2534, var(--panel) 70%);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(124, 158, 255, 0.05), 0 20px 40px -20px rgba(0,0,0,0.6);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  animation: fade-in 0.5s ease forwards;
  animation-delay: var(--delay);
  transition: box-shadow 0.2s, border-color 0.2s, scale 0.2s;
}

.bubble:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124, 158, 255, 0.3), 0 20px 50px -15px rgba(124, 158, 255, 0.35);
  scale: 1.1;
  z-index: 5;
}

.bubble-icon {
  font-size: 2rem;
  line-height: 1;
}

.bubble-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.bubble-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.3;
  padding: 0 0.3rem;
}

.bubble-ghost {
  opacity: 0.45;
  pointer-events: none;
  border-style: dashed;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .hero h1 { font-size: 1.8rem; }
  .bubble-desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none !important;
    opacity: 1;
  }
}
