/* Shared close control for Carnival Figures and Laundry Monsters viewers.
   Keep the approved fine X outside the artwork/player frame, at screen top right. */
html body [data-cf-has-viewer-close] {
  padding-top: max(48px, calc(env(safe-area-inset-top, 0px) + 44px)) !important;
}
html body [data-cf-has-viewer-close] > .cf-viewer-close {
  position: fixed; top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px);
  z-index: 3; display: block; box-sizing: border-box; width: 44px; height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #999; text-decoration: none; box-shadow: none; outline: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body [data-cf-has-viewer-close] > .cf-viewer-close::before,
html body [data-cf-has-viewer-close] > .cf-viewer-close::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 1px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
html body [data-cf-has-viewer-close] > .cf-viewer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
html body [data-cf-has-viewer-close] > .cf-viewer-close:hover { color: #fff; }
html body [data-cf-has-viewer-close] > .cf-viewer-close:focus-visible {
  color: #fff; outline: 1px solid #999; outline-offset: -6px;
}
