/* Matrix VFX — applied to any block that has the effect switched on. */
:where(.has-matrix-vfx) { position: relative; isolation: isolate; }
.has-matrix-vfx > .matrix-vfx__canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  pointer-events: none;
  z-index: 0;
}
/* Keep the real content above the animation (zero specificity so themes can override). */
:where(.has-matrix-vfx) > :where(:not(.matrix-vfx__canvas)) { position: relative; z-index: 1; }

/* WordPress constrained layouts must never constrain the effect/zone surface. */
.has-matrix-vfx > .matrix-vfx__canvas,.has-matrix-vfx > .ncpp-matrix-zone-editor{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;transform:none!important;align-self:stretch!important}
.has-matrix-vfx > .matrix-vfx__canvas{border:0!important;border-radius:inherit;contain:strict}
.has-matrix-vfx > .ncpp-matrix-zone-editor{z-index:60!important;isolation:isolate;overflow:hidden;pointer-events:auto!important}
.ncpp-matrix-zone-editor *{box-sizing:border-box;max-width:none;margin:0}
.ncpp-matrix-zone-editor:focus-visible{outline:2px solid #0738f9!important}
