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

body {
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  color: #fff;
  overflow: hidden;
  user-select: none;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  z-index: 1;
  opacity: 0.9;
}

.subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  opacity: 0.4;
  z-index: 1;
  margin-bottom: 60px;
}

.characters {
  display: flex;
  gap: 24px;
  padding: 40px 20px;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
}

.character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(var(--arc-offset, 0px));
}

.character:hover {
  transform: translateY(calc(var(--arc-offset, 0px) - 4px)) !important;
}

.character:hover .orb {
  opacity: 0.45;
}

.orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--color), color-mix(in srgb, var(--color), #000 40%));
  opacity: 0.25;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px transparent;
  animation: breathe 4s ease-in-out infinite;
  position: relative;
}

.orb::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.character.active .orb {
  opacity: 1;
  box-shadow: 0 0 30px color-mix(in srgb, var(--color), transparent 50%),
              0 0 60px color-mix(in srgb, var(--color), transparent 70%);
  animation: none;
}

.character.active .orb::after {
  opacity: 0.4;
}

.character.active.beat .orb {
  transform: scale(1.15);
  transition: transform 0.08s ease-out;
}

.character:not(.beat) .orb {
  transition: transform 0.2s ease-out, opacity 0.3s ease, box-shadow 0.3s ease;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.character.active .label {
  opacity: 0.85;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.06); opacity: 0.35; }
}

@media (max-width: 700px) {
  .characters {
    max-width: 420px;
    gap: 16px;
  }
  .orb { width: 55px; height: 55px; }
  .title { font-size: 20px; letter-spacing: 5px; }
  .subtitle { margin-bottom: 40px; }
}

/* First-load fade in */
.characters {
  animation: fadeInUp 1s ease-out;
}

.title {
  animation: fadeInUp 0.8s ease-out;
}

.subtitle {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
