body.yscg360-no-select,
body.yscg360-no-select * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

body.yscg360-no-select input,
body.yscg360-no-select textarea,
body.yscg360-no-select select,
body.yscg360-no-select option,
body.yscg360-no-select [contenteditable="true"],
body.yscg360-no-select .yscg360-allow,
body.yscg360-no-select .yscg360-allow * {
  -webkit-touch-callout: default !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body.yscg360-protect-images img,
body.yscg360-protect-images picture,
body.yscg360-protect-images canvas,
body.yscg360-protect-images svg,
body.yscg360-protect-images video {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

.yscg360-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #0d2137;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font: 600 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.yscg360-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.yscg360-watermark::after {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483646;
  padding: 8px 12px;
  border: 1px solid rgba(201, 150, 58, 0.42);
  border-radius: 999px;
  background: rgba(9, 17, 29, 0.5);
  color: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 700 10px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
}

@media print {
  body.yscg360-no-print * {
    visibility: hidden !important;
  }

  body.yscg360-no-print::before {
    content: "Printing is disabled for protected content.";
    visibility: visible !important;
    display: block !important;
    margin: 15vh auto 0;
    width: min(620px, 86vw);
    padding: 28px;
    border: 2px solid #0d2137;
    color: #0d2137;
    font: 700 22px/1.35 Arial, sans-serif;
    text-align: center;
  }
}
