/* MoonTik — couche holographique partagée (widgets OBS).
   Applique --mt-a/b/c. Ne peint JAMAIS un fond opaque sur html/body (transparence OBS). */
@keyframes mtHoloSweep {
  0% { transform: translateX(-18%); opacity: .35; }
  50% { opacity: .8; }
  100% { transform: translateX(18%); opacity: .35; }
}

.mt-holo-glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 40%, rgba(8,10,22,.55));
  border: 1px solid color-mix(in srgb, var(--mt-a, #c4b5fd) 45%, rgba(255,255,255,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 28px rgba(0,0,0,.35),
              0 0 18px color-mix(in srgb, var(--mt-a, #c4b5fd) 28%, transparent);
  backdrop-filter: blur(10px);
}

.mt-holo-rim {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--mt-a, #c4b5fd) 55%, #fff),
    0 0 16px color-mix(in srgb, var(--mt-b, #22d3ee) 35%, transparent);
}

/* Reflet discret sur les cartes widget déjà existantes — jamais le body. */
.mt-holo .top-card,
.mt-holo .acx-panel,
.mt-holo .member-card,
.mt-holo .cmx-collection,
.mt-holo .alert-root .panel,
.mt-holo .ov-tm,
.mt-holo #st .t,
.mt-holo #st .w,
.mt-holo .score-card,
.mt-holo .lb-card,
.mt-holo .pv-ticket-card {
  position: relative;
}
.mt-holo .top-card::after,
.mt-holo .acx-panel::after,
.mt-holo .cmx-collection::after,
.mt-holo .member-card::after,
.mt-holo .ov-tm::after,
.mt-holo #st .t::after,
.mt-holo #st .w::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 12%,
    color-mix(in srgb, var(--mt-a, #c4b5fd) 28%, transparent) 32%,
    color-mix(in srgb, var(--mt-b, #22d3ee) 32%, transparent) 50%,
    color-mix(in srgb, var(--mt-c, #f472b6) 22%, transparent) 62%,
    transparent 78%);
  mix-blend-mode: screen;
  opacity: .55;
  animation: mtHoloSweep 8s linear infinite;
}

body.is-preview .mt-holo .top-card::after,
html.is-preview .mt-holo .top-card::after,
body.is-preview .mt-holo .acx-panel::after,
html.is-preview .mt-holo .acx-panel::after {
  animation-duration: 12s;
}

/* Fontaine : bulles iridescentes branchées sur le thème */
#stage .soap-bubble.is-soap,
.ov-prev-fontaine .ov-f-bubble.is-soap {
  border-color: color-mix(in srgb, var(--mt-a, #c4b5fd) 70%, #fff) !important;
  box-shadow:
    0 0 16px color-mix(in srgb, var(--mt-a, #c4b5fd) 45%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--mt-b, #22d3ee) 28%, transparent),
    inset 0 -6px 12px color-mix(in srgb, var(--mt-c, #f472b6) 18%, transparent) !important;
}
#stage .heart-visual,
.ov-prev-hearts .ov-heart-svg {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--mt-c, #f472b6) 65%, transparent))
          drop-shadow(0 0 14px color-mix(in srgb, var(--mt-a, #c4b5fd) 40%, transparent));
}
