.wagyu-pdf-viewer {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 22px;
	outline: 0;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 35px 95px rgba(0, 0, 0, 0.33);
	color: #fff;
}

.wagyu-pdf-viewer:focus-visible {
	box-shadow: 0 0 0 3px rgba(229, 44, 26, 0.7), 0 35px 95px rgba(0, 0, 0, 0.33);
}

.wagyu-pdf-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 82px;
	padding: 18px 25px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
	background: rgba(0, 0, 0, 0.16);
}

.wagyu-pdf-topbar > div {
	display: flex;
	flex-direction: column;
}

.wagyu-pdf-label {
	color: #e52c1a;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.wagyu-pdf-topbar strong {
	margin-top: 3px;
	font-size: 14px;
	font-weight: 900;
}

.wagyu-pdf-limit {
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wagyu-pdf-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 690px;
	padding: 30px 70px;
	background:
		radial-gradient(circle at 50% 50%, rgba(229, 44, 26, 0.14), transparent 34%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
	perspective: 1500px;
}

.wagyu-pdf-stage::after {
	position: absolute;
	right: 15%;
	bottom: 5%;
	left: 15%;
	height: 35px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	content: "";
	filter: blur(22px);
}

.wagyu-pdf-pages {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 620px;
	perspective: 1500px;
}

.wagyu-pdf-sheet {
	position: absolute;
	display: grid;
	place-items: center;
	max-width: 100%;
	opacity: 0;
	transform: translateY(6px) scale(0.985);
	transform-origin: center;
	transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.75, 0.22, 1);
	will-change: transform, opacity;
}

.wagyu-pdf-sheet.is-active {
	opacity: 1;
	transform: none;
}

.wagyu-pdf-sheet canvas {
	display: block;
	max-width: 100%;
	height: auto !important;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.47);
}

.wagyu-pdf-sheet.is-entering-next {
	transform: rotateY(-24deg) translateX(35px) scale(0.97);
	transform-origin: left center;
}

.wagyu-pdf-sheet.is-entering-prev {
	transform: rotateY(24deg) translateX(-35px) scale(0.97);
	transform-origin: right center;
}

.wagyu-pdf-sheet.is-leaving-next {
	opacity: 0;
	transform: rotateY(32deg) translateX(-48px) scale(0.96);
	transform-origin: right center;
}

.wagyu-pdf-sheet.is-leaving-prev {
	opacity: 0;
	transform: rotateY(-32deg) translateX(48px) scale(0.96);
	transform-origin: left center;
}

.wagyu-pdf-loading {
	position: absolute;
	z-index: 5;
	display: grid;
	place-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	text-align: center;
}

.wagyu-pdf-loading[hidden] {
	display: none;
}

.wagyu-pdf-loading.has-error {
	max-width: 430px;
	padding: 25px;
	border: 1px solid rgba(229, 44, 26, 0.38);
	border-radius: 12px;
	background: rgba(229, 44, 26, 0.08);
}

.wagyu-pdf-loading.has-error span {
	color: rgba(255, 255, 255, 0.55);
}

.wagyu-pdf-spinner {
	width: 38px;
	height: 38px;
	border: 3px solid rgba(255, 255, 255, 0.13);
	border-top-color: #e52c1a;
	border-radius: 50%;
	animation: wagyu-pdf-spin 0.8s linear infinite;
}

@keyframes wagyu-pdf-spin {
	to { transform: rotate(360deg); }
}

.wagyu-pdf-hotspot {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(16, 8, 6, 0.78);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.wagyu-pdf-hotspot span {
	margin-top: -3px;
	font-family: Georgia, serif;
	font-size: 34px;
	line-height: 1;
}

.wagyu-pdf-hotspot:hover:not(:disabled),
.wagyu-pdf-hotspot:focus-visible:not(:disabled) {
	background: #e52c1a;
	transform: translateY(-50%) scale(1.05);
}

.wagyu-pdf-hotspot:disabled {
	opacity: 0.22;
	cursor: not-allowed;
}

.wagyu-pdf-hotspot-prev {
	left: 24px;
}

.wagyu-pdf-hotspot-next {
	right: 24px;
}

.wagyu-pdf-controls {
	display: grid;
	grid-template-columns: 120px minmax(190px, 1fr) 120px;
	align-items: center;
	gap: 28px;
	padding: 19px 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.17);
}

.wagyu-pdf-control {
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	font-weight: 900;
	cursor: pointer;
}

.wagyu-pdf-control:first-child {
	text-align: left;
}

.wagyu-pdf-control:last-child {
	text-align: right;
}

.wagyu-pdf-control:hover:not(:disabled),
.wagyu-pdf-control:focus-visible:not(:disabled) {
	color: #ff5b48;
}

.wagyu-pdf-control:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

.wagyu-pdf-progress-wrap {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 13px;
}

.wagyu-pdf-progress-wrap > span {
	color: rgba(255, 255, 255, 0.52);
	font-size: 9px;
	font-weight: 800;
	white-space: nowrap;
}

.wagyu-pdf-progress {
	overflow: hidden;
	height: 2px;
	background: rgba(255, 255, 255, 0.13);
}

.wagyu-pdf-progress > span {
	display: block;
	width: 20%;
	height: 100%;
	background: #e52c1a;
	transition: width 0.35s ease;
}

.wagyu-pdf-hint {
	margin: 0;
	padding: 0 20px 16px;
	background: rgba(0, 0, 0, 0.17);
	color: rgba(255, 255, 255, 0.38);
	font-size: 9px;
	text-align: center;
}

.wagyu-pdf-empty {
	display: grid;
	place-items: center;
	min-height: 380px;
	padding: 35px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.035);
	text-align: center;
}

.wagyu-pdf-empty span {
	color: #e52c1a;
	font-family: Georgia, serif;
	font-size: 65px;
	font-weight: 900;
}

.wagyu-pdf-empty strong {
	font-size: 16px;
}

@media (max-width: 700px) {
	.wagyu-pdf-topbar {
		min-height: 72px;
		padding: 15px 16px;
	}

	.wagyu-pdf-limit {
		display: none;
	}

	.wagyu-pdf-stage {
		min-height: 570px;
		padding: 22px 19px;
	}

	.wagyu-pdf-pages {
		min-height: 520px;
	}

	.wagyu-pdf-hotspot {
		top: auto;
		bottom: 16px;
		width: 42px;
		height: 42px;
		transform: none;
	}

	.wagyu-pdf-hotspot:hover:not(:disabled),
	.wagyu-pdf-hotspot:focus-visible:not(:disabled) {
		transform: scale(1.05);
	}

	.wagyu-pdf-hotspot-prev {
		left: 15px;
	}

	.wagyu-pdf-hotspot-next {
		right: 15px;
	}

	.wagyu-pdf-controls {
		grid-template-columns: 65px 1fr 65px;
		gap: 12px;
		padding: 17px 15px;
	}

	.wagyu-pdf-progress-wrap {
		grid-template-columns: 1fr;
		gap: 6px;
		text-align: center;
	}
}

@media (max-width: 430px) {
	.wagyu-pdf-stage {
		min-height: 500px;
	}

	.wagyu-pdf-pages {
		min-height: 455px;
	}

	.wagyu-pdf-control {
		font-size: 0;
	}

	.wagyu-pdf-control span {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wagyu-pdf-spinner {
		animation: none;
	}

	.wagyu-pdf-sheet,
	.wagyu-pdf-progress > span {
		transition: none;
	}
}

