/* ======================== */
/* SFONDO ANIMATO           */
/* ======================== */

/* — Contenitore — */
/* position: fixed = rimane ancorato alla viewport anche durante lo scroll.
   inset: 0 = copre tutta la finestra.
   z-index: 0 = sotto tutti i componenti (navbar z:1000, cursor z:99999, hero z:1). */
#bg {
  position: fixed;  /* non scrolla con la pagina — resta sempre sotto tutto */
  inset: 0;         /* top:0 right:0 bottom:0 left:0 — occupa tutta la viewport */
  z-index: 0;       /* sotto navbar, hero, cursor */
}

/* ======================== */
/* CANVAS                   */
/* ======================== */

#bgCanvas {
  position: absolute; /* rispetto a #bg */
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ======================== */
/* VARIANT SWITCHER         */
/* ======================== */

.variant-switcher {
  position: fixed;             /* fixed perché è fuori da #bg — si posiziona sulla viewport */
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;                 /* sopra hero (z:1) e le sezioni, sotto navbar (z:1000) */
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 4, 20, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
}

.variant-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-right: 6px;
  border-right: 1px solid var(--border);
  margin-right: 2px;
}

.v-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.v-btn.active {
  color: var(--bg);
  background: var(--accent);
}

.v-btn:hover:not(.active) {
  color: var(--text);
}
