.pixel-animation__overlay[hidden] {
	display: none !important;
}

.pixel-animation__overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow: hidden;
	background: transparent;
	color: var(--pa-ink, #ffffff);
}

.pixel-animation__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: transparent;
}

.pixel-animation__pixels {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	contain: layout paint;
}

.pixel-animation__pixel {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	background: var(--pa-pixel, rgba(0, 0, 0, 0.93));
}

.pixel-animation__stage {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	opacity: 1;
}

.pixel-animation__frame,
.pixel-animation__chrome {
	position: absolute;
	inset: 0;
	z-index: 1;
	box-sizing: border-box;
	pointer-events: none;
}

.pixel-animation__chrome {
	z-index: 2;
}

.pixel-animation__frame {
	overflow: hidden;
	padding:
		calc(28px + env(safe-area-inset-top))
		0
		calc(28px + env(safe-area-inset-bottom))
		calc(28px + env(safe-area-inset-left));
	-webkit-overflow-scrolling: touch;
}

.pixel-animation__mask {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.pixel-animation__content,
.pixel-animation__close {
	pointer-events: auto;
}

.pixel-animation__content {
	box-sizing: border-box;
	max-height: 100%;
	padding-right: calc(28px + env(safe-area-inset-right));
	overflow-x: hidden;
	overflow-y: auto;
	overflow-wrap: break-word;
	scrollbar-width: thin;
	scrollbar-color: #99999969 #000000;
}

.pixel-animation__content::-webkit-scrollbar {
	width: 9px;
}

.pixel-animation__content::-webkit-scrollbar-track {
	background: #000000;
}

.pixel-animation__content::-webkit-scrollbar-thumb {
	background: #99999969;
}

.pixel-animation__content::-webkit-scrollbar-thumb:hover {
	background: #99999999;
}

.pixel-animation__content :where(a) {
	color: inherit;
}

#pixel-animation-page-curtain .pixel-animation__content {
	color: var(--pa-ink, #ffffff);
}

#pixel-animation-page-curtain .pixel-animation__content :where(h1, h2, h3, h4, h5, h6, p, li, td, th, figcaption, blockquote, .wp-block-post-title) {
	color: inherit;
}

.pixel-animation__title {
	margin: 0 48px 16px 0;
	font-size: 1.4rem;
	line-height: 1.3;
}

.pixel-animation__overlay .pixel-animation__close,
.pixel-animation-page__close {
	position: absolute;
	top: calc(20px + env(safe-area-inset-top));
	right: calc(20px + env(safe-area-inset-right));
	z-index: 2;
	padding: 3px 8px;
	border: 0;
	background: transparent;
	/* background: #b90000dc; */
	cursor: pointer;
	appearance: none;
	outline: none;
}

.pixel-animation__overlay .pixel-animation__close:hover,
.pixel-animation__overlay .pixel-animation__close:focus,
.pixel-animation-page__close:hover,
.pixel-animation-page__close:focus {
	/* background: #d10a0a; */
	outline: none;
}

.pixel-animation__close-icon {
	display: block;
	width: 18px;
	height: 18px;
}

.pixel-animation-page__close {
	position: fixed;
	z-index: 100001;
}

.pixel-animation-page__close[hidden] {
	display: none !important;
}

body.admin-bar .pixel-animation-page__close {
	top: calc(44px + env(safe-area-inset-top));
}

@media (max-width: 782px) {
	body.admin-bar .pixel-animation-page__close {
		top: calc(58px + env(safe-area-inset-top));
	}
}

.pixel-animation__trigger {
	cursor: pointer;
}

body.pixel-animation-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.pixel-animation__pixel {
		display: none !important;
	}

	.pixel-animation__stage {
		opacity: 1 !important;
		transition: none !important;
	}

	.pixel-animation__frame,
	.pixel-animation__chrome {
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}
}
