/* Image Shield — CSS part (works even before the script loads). */

/* No long-press "Save image" / callout on touch devices, no selecting images. */
html[data-ishd~="ishd-touch"] img,
html[data-ishd~="ishd-touch"] picture,
html[data-ishd~="ishd-touch"] video {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
html[data-ishd~="ishd"] img { -webkit-user-drag: none; }

/* Optional: no text selection (form fields stay usable). */
html[data-ishd~="ishd-noselect"] body { -webkit-user-select: none; user-select: none; }
html[data-ishd~="ishd-noselect"] input,
html[data-ishd~="ishd-noselect"] textarea,
html[data-ishd~="ishd-noselect"] [contenteditable] { -webkit-user-select: text; user-select: text; }

/* Blur while the window is unfocused / after PrintScreen. */
html.ishd-blur img,
html.ishd-blur picture,
html.ishd-blur video,
html.ishd-blur .ishd-bg { filter: blur(22px) !important; transition: filter .15s ease; }
html.ishd-blur img.ishd-skip,
html.ishd-blur .ishd-skip img { filter: none !important; }

/* Printing: hide images. */
@media print {
	html[data-ishd~="ishd-print"] img,
	html[data-ishd~="ishd-print"] picture,
	html[data-ishd~="ishd-print"] video,
	html[data-ishd~="ishd-print"] .ishd-bg { visibility: hidden !important; }
	html[data-ishd~="ishd-print"] * { background-image: none !important; }
}

/* Notice. */
.ishd-notice {
	position: fixed; left: 50%; bottom: 24px; z-index: 2147483000;
	max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px;
	background: rgba(20, 20, 20, .9); color: #fff; font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.ishd-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
	.ishd-notice, html.ishd-blur img { transition: none; }
}
