/* Blink overlay for the introduction. The alpha WebM is displayed above the
 * scene background but below the text box, so the line stays readable while
 * the eyelids close. The final blackout sits above all UI. */
.story-blink-layer {
	position: absolute;
	inset: 0;
	z-index: 5;
	overflow: hidden;
	pointer-events: none;
}

.story-blink {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	background: transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s linear;
}

.story-blink.is-playing {
	opacity: 1;
}

.story-blackout {
	position: absolute;
	inset: 0;
	z-index: 50;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.85s ease-in;
}

.story-blackout.is-on {
	opacity: 1;
}
