/* myve-background-static-v1 — même ambiance bleu/vert, aucun mouvement permanent. */
body.myve-ambient-page {
  isolation: isolate;
}

.myve-ambient-background,
[data-myve-background] {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background:
    radial-gradient(circle at 14% 8%, rgba(66, 184, 255, .12), transparent 30%),
    radial-gradient(circle at 86% 7%, rgba(85, 230, 165, .08), transparent 27%),
    linear-gradient(145deg, #02070c 0%, #06111b 48%, #081825 100%);
}

/* Grille fixe : remplace la grille animée. */
.myve-ambient-background::before,
[data-myve-background]::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .30;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 70%);
  mask-image: radial-gradient(circle at center, black 15%, transparent 70%);
}

/* Halos fixes : pas de transform, blur animé ni composition permanente. */
.myve-ambient-background::after,
[data-myve-background]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at -4% 18%, rgba(66,184,255,.18), transparent 31%),
    radial-gradient(circle at 104% 82%, rgba(85,230,165,.12), transparent 30%);
}

/* Compatibilité si d'anciennes couches restent présentes dans le DOM. */
.myve-ambient-grid,
.myve-ambient-orb,
.myve-ambient-sparks,
.myve-ambient-spark {
  display: none !important;
  animation: none !important;
  transition: none !important;
}

/* Le bouton de pause n'a plus de raison d'être avec un décor fixe. */
.myve-ambient-controls,
.myve-ambient-toggle,
[data-myve-background-toggle] {
  display: none !important;
}

body.myve-ambient-page #app > .premiumShell { background: transparent; }

@media (forced-colors: active) {
  .myve-ambient-background, [data-myve-background] { display: none; }
}
@media print {
  .myve-ambient-background, [data-myve-background], .myve-ambient-controls { display: none !important; }
}
