/* Fixed hit targets; only the inert optical layer and inner label deform. */
.nxl-black-hole[popover] {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  padding: 0; margin: 0; border: 0; background: transparent; overflow: visible;
  pointer-events: none !important; z-index: 2147483647; opacity: 0;
}
.nxl-black-hole::backdrop { background: transparent; pointer-events: none; }
.nxl-black-hole * { pointer-events: none !important; }
.nxl-black-hole > svg { position: absolute; width: 0; height: 0; }
.nxl-gravity-field { position: absolute; top: 0; left: 0; will-change: transform; }
.nxl-gravity-backdrop, .nxl-gravity-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nxl-black-hole[data-optics="refractive"] .nxl-gravity-backdrop { backdrop-filter: url('#nxl-gravity-filter'); }
body .nxl-gravity-target > :is(.nxl-button-label,.nxl-button-hover,svg,span:not(.nxl-button-fill):not(.nxl-ripple-layer)) {
  transform: var(--bh-tidal-transform) !important;
  transform-origin: center;
  transition: transform 140ms ease-out, opacity 300ms ease-out;
}
/* Own the layout above legacy world/footer button rules, including later imports. */
body #black-hole-toggle.nxl-cursor-toggle {
  border: 1px solid #526172; border-radius: 999px; padding: 9px 12px;
  background: #152338; color: #f3f4f1; font: inherit; font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; white-space: nowrap;
}
body > .nxl-cursor-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 100; }
.nxl-cursor-toggle:focus-visible { outline: 2px solid #d6ff46; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  html.nxl-black-hole-active, html.nxl-black-hole-active * { cursor: none !important; }
}
@media (pointer: coarse), (hover: none), (forced-colors: active) {
  .nxl-black-hole, .nxl-cursor-toggle { display: none !important; }
  html.nxl-black-hole-active, html.nxl-black-hole-active * { cursor: revert !important; }
}
@media (prefers-reduced-motion: reduce) { .nxl-gravity-target > * { transition: none !important; } }
@media print { .nxl-black-hole, .nxl-cursor-toggle { display: none !important; } }
