/* ink-drag runtime — full-bleed ink smear hero.
   Alles gescoped unter .ms-ink-drag (kein globales CSS, keine festen IDs).
   Das Content-Window-Panel (.hud*) stammt aus _shared/hero-chrome.css —
   der Preview-Host und die Demo binden es selbst ein (BB-Adapter enqueuet
   es als geteiltes Asset), damit file:// und Builder-Kontexte funktionieren. */

.ms-ink-drag {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  cursor: auto;
}

.ms-ink-drag .msd-ink {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ms-ink-drag .msd-ink canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* The photo sits behind the ink and is revealed as the ink is smeared. */
.ms-ink-drag .msd-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ms-ink-drag .msd-photo.is-on { opacity: 1; }

/* Colour overlay BETWEEN photo and ink: 0 = photo fully visible,
   1 = solid colour. Vars setzt die Runtime aus dem background-Feld. */
.ms-ink-drag .msd-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--msd-overlay-color, transparent);
  opacity: var(--msd-overlay-opacity, 0.4);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ms-ink-drag .msd-photo { transition: none; }
}
