/* Preloader — theme CSS variables */

body.is-loading {
	overflow: hidden;
}

.preloader-screen {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background-color: #ffffff;
	color: var(--arb-footer-bg);
	font-family: var(--arb-font);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	will-change: opacity;
}

.loader-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 220px;
	max-width: 100%;
}

.animated-logo-svg {
	display: block;
	width: 220px;
	height: auto;
	max-width: 220px;
	aspect-ratio: 389 / 481.9;
	overflow: visible;
}

.animated-logo-svg path {
	fill-opacity: 0;
	fill: var(--arb-footer-bg);
	stroke: var(--arb-footer-bg);
	stroke-width: 2.5px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.glow-aura {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--arb-footer-bg) 8%, transparent) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
	filter: blur(20px);
}

.progress-info {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.progress-bar-container {
	width: 100%;
	max-width: 220px;
	height: 3px;
	background: color-mix(in srgb, var(--arb-footer-bg) 10%, transparent);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.progress-bar-fill {
	width: 0%;
	height: 100%;
	background: var(--arb-footer-bg);
	box-shadow: 0 0 10px color-mix(in srgb, var(--arb-footer-bg) 30%, transparent);
	border-radius: 4px;
}

.counter-text {
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--arb-footer-bg);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 868px) {
	.loader-container {
		width: 88px;
	}

	.animated-logo-svg {
		width: 88px !important;
		max-width: 88px !important;
		height: 109px !important;
		aspect-ratio: auto;
	}

	.glow-aura {
		width: 96px;
		height: 96px;
	}

	.progress-info {
		margin-top: 1rem;
		gap: 0.4rem;
	}

	.progress-bar-container {
		max-width: 88px;
	}

	.counter-text {
		font-size: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.animated-logo-svg path {
		fill-opacity: 1;
		stroke-opacity: 0;
	}
}
