.aura-global-textures {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.aura-texture {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 280ms ease-out;
}

.aura-texture--scanlines {
	background-image:
		linear-gradient(
			to bottom,
			rgba(0, 245, 255, 0.1) 0,
			rgba(0, 245, 255, 0.1) 1px,
			transparent 1px,
			transparent 4px
		),
		linear-gradient(
			to bottom,
			rgba(5, 8, 15, 0.18) 0,
			rgba(5, 8, 15, 0.08) 100%
		);
	background-size: 100% 4px, 100% 100%;
	mix-blend-mode: screen;
	animation: aura-scanline-drift 14s linear infinite;
}

.aura-texture--dotgrid {
	background-image:
		radial-gradient(circle at 1px 1px, rgba(15, 118, 110, 0.18) 1px, transparent 0),
		radial-gradient(circle at 1px 1px, rgba(71, 85, 105, 0.12) 1px, transparent 0);
	background-size: 18px 18px, 36px 36px;
	background-position: 0 0, 9px 9px;
}

[data-theme="void"] .aura-texture--scanlines,
[data-theme="dark"] .aura-texture--scanlines {
	opacity: 0.26;
}

[data-theme="asylum"] .aura-texture--dotgrid,
[data-theme="light"] .aura-texture--dotgrid,
html:not([data-theme]) .aura-texture--dotgrid {
	opacity: 0.45;
}

body > :not(.aura-global-textures) {
	position: relative;
	z-index: 1;
}

@keyframes aura-scanline-drift {
	0% {
		background-position: 0 0, 0 0;
	}

	100% {
		background-position: 0 28px, 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aura-texture {
		transition: none;
	}

	.aura-texture--scanlines {
		animation: none;
		background-position: 0 0, 0 0;
	}
}
