#splash-screen {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	z-index: 9999;
	transition: opacity 0.3s ease;
}

#splash-screen .progress-bar {
	width: 220px;
	height: 8px;
	margin-top: 1.5rem;
	background-color: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

#splash-screen .progress-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(250, 204, 21, 0.8) 50%,
		transparent
	);
	animation: shimmer 1s ease-in-out infinite;
	transform: translateX(-100%);
}

@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

#splash-screen {
	transition: opacity 0.3s ease;
}
body:has(#hide-splash-screen):not(:has(#force-splash-screen)) #splash-screen {
	opacity: 0;
	pointer-events: none;
}
