/* React Bits backgrounds stay beneath text and never receive pointer input. */
#studio-threads, #studio-silk, #studio-antigravity {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.studio-effect-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
#empty-state, .profile-identity, .close { position: relative; isolation: isolate; }
#empty-state > :not(#studio-threads),
.profile-identity > :not(#studio-silk),
.close > :not(#studio-antigravity) { position: relative; z-index: 1; }
#empty-state { overflow: hidden; }
#studio-threads { opacity: .8; mask-image: linear-gradient(180deg, transparent 4%, #000 28%, #000 78%, transparent 98%); }
.profile-identity { overflow: hidden; border-radius: 16px; }
#studio-silk { opacity: .52; }
#studio-antigravity { opacity: .9; }
[data-effect-state="classroom-active"] { visibility: hidden; }
[data-effect-state="reduced-motion"] .studio-effect-canvas,
[data-effect-state="fallback"] .studio-effect-canvas { visibility: hidden; }
#studio-silk[data-effect-state="fallback"],
#studio-silk[data-effect-state="reduced-motion"] { background: linear-gradient(125deg, #e8eeec, #dbe5e6 58%, #e9edec); }
#studio-threads[data-effect-state="fallback"],
#studio-threads[data-effect-state="reduced-motion"] { background: repeating-linear-gradient(-12deg, transparent 0 14px, #8aa2ad12 14px 15px); opacity: .3; }
@media (max-width: 760px) {
  #studio-threads { opacity: .62; }
  #studio-silk { opacity: .42; }
}
