/**
 * Copy prevention styles — active when body.stn-copy-protect is present.
 * Not DRM; light deterrence for casual scraping.
 */

/* Content surfaces: no text selection / long-press callouts */
body.stn-copy-protect .entry-content,
body.stn-copy-protect .wns-reader-content,
body.stn-copy-protect .wns-reader-main,
body.stn-copy-protect .wns-story-body,
body.stn-copy-protect .wns-story-excerpt,
body.stn-copy-protect .wns-ebook-stage,
body.stn-copy-protect .wns-ebook-page,
body.stn-copy-protect .stn-ebook,
body.stn-copy-protect .stn-drama-card,
body.stn-copy-protect .wns-drama-stage,
body.stn-copy-protect .stn-video-block,
body.stn-copy-protect .stn-locked-block {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none !important;
}

/* Comic / chapter images: discourage drag-save */
body.stn-copy-protect .entry-content img,
body.stn-copy-protect .wns-reader-content img,
body.stn-copy-protect .stn-ebook img,
body.stn-copy-protect .wns-ebook-stage img {
	-webkit-user-drag: none;
	user-drag: none;
	-webkit-touch-callout: none;
}

/* Keep interactive UI fully usable */
body.stn-copy-protect input,
body.stn-copy-protect textarea,
body.stn-copy-protect select,
body.stn-copy-protect button,
body.stn-copy-protect a,
body.stn-copy-protect [contenteditable="true"],
body.stn-copy-protect .stn-char-name-input,
body.stn-copy-protect .stn-char-name-box,
body.stn-copy-protect .stn-char-name-box *,
body.stn-copy-protect .wns-reader-controls,
body.stn-copy-protect .wns-reader-toc,
body.stn-copy-protect .stn-chapter-nav,
body.stn-copy-protect .stn-ebook-nav,
body.stn-copy-protect .stn-ebook-bar,
body.stn-copy-protect .stn-pricing-wrap,
body.stn-copy-protect .stn-pricing-wrap * {
	-webkit-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}

/* Video controls must receive pointer events */
body.stn-copy-protect video,
body.stn-copy-protect audio,
body.stn-copy-protect .stn-video-player,
body.stn-copy-protect .stn-video-player * {
	pointer-events: auto !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

/* Soft toast when copy is blocked */
.stn-copy-protect-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%) translateY(12px);
	z-index: 99999;
	background: rgba(17, 17, 17, 0.92);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 650;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	max-width: min(90vw, 360px);
	text-align: center;
}
.stn-copy-protect-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media print {
	/* Discourage casual print-to-PDF of chapter text (soft; not DRM) */
	body.stn-copy-protect .entry-content,
	body.stn-copy-protect .wns-reader-content,
	body.stn-copy-protect .stn-ebook {
		visibility: hidden;
	}
	body.stn-copy-protect::after {
		content: "Printing of this content is disabled.";
		visibility: visible;
		display: block;
		text-align: center;
		padding: 2rem;
		font-size: 1rem;
	}
}
