.unk-webgl-background {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
	background: var(--unk-color-bg);
}

.unk-document--js .unk-webgl-background--loading {
	z-index: 10000;
}

.unk-webgl-background__webgl {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 1;
}

.unk-webgl-background--paused .unk-webgl-background__webgl,
.unk-webgl-background--paused .unk-webgl-background__noise {
	display: none;
}

.unk-document--js .unk-webgl-background--loading .unk-webgl-background__webgl {
	opacity: 0;
	transform: scale(1.025);
}

.unk-webgl-background__webgl canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.unk-webgl-background[data-blur="1"] .unk-webgl-background__webgl::after {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 2;
}

.unk-webgl-background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #501326;
	mix-blend-mode: multiply;
	opacity: 0.24;
	z-index: 2;
}

.unk-webgl-background__noise {
	position: absolute;
	inset: 0;
	background-repeat: repeat;
	opacity: 0.2;
	mix-blend-mode: color-burn;
	z-index: 3;
}

.unk-webgl-background__loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	background: #000;
	color: var(--unk-color-text);
}

.unk-document--js .unk-webgl-background--loading .unk-webgl-background__loader {
	display: flex;
}

.unk-webgl-background__loader[hidden] {
	display: none !important;
}

.unk-webgl-background__loader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 8rem;
	gap: var(--unk-space-xs);
}

.unk-webgl-background__loader-track {
	display: block;
	width: 100%;
	height: 1px;
	background: rgb(255 255 255 / 25%);
}

.unk-webgl-background__loader-bar {
	display: block;
	width: 100%;
	height: 100%;
	background: #fff;
	box-shadow:
		0 0 3px #fff,
		0 0 8px rgb(255 255 255 / 60%);
	transform: scaleX(0);
	transform-origin: left center;
}

.unk-webgl-background__loader-percentage {
	display: block;
	align-self: flex-start;
	min-width: 4ch;
	text-align: left;
	will-change: transform;
}

.unk-webgl-background__easter-egg {
	position: fixed;
	inset: 0;
	overflow: hidden;
	z-index: 2147483647;
	background-size: auto;
	background-position: center;
	background-repeat: repeat;
	display: none;
	pointer-events: none;
}

.unk-webgl-background__easter-egg--active {
	display: block;
}

@media (forced-colors: active) {
	.unk-webgl-background__webgl,
	.unk-webgl-background__noise,
	.unk-webgl-background::after,
	.unk-webgl-background__easter-egg {
		display: none !important;
	}
}
