/* First-paint loader shown inside #Wrapper until the app mounts (it is replaced automatically). */
html[data-theme="dark"] { --loaderBg: #0b1220; --loaderText: #f8fafc; }
html[data-theme="light"] { --loaderBg: #f8fafc; --loaderText: #0f172a; }
html { --loaderBg: #0b1220; --loaderText: #f8fafc; }

.loader
{
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--loaderBg);
	color: var(--loaderText);
}

.loading-page
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.loading-logo
{
	width: 6rem;
	height: 6rem;
	object-fit: contain;
	animation: loaderPulse 1.6s ease-in-out infinite;
	filter: drop-shadow(0 4px 14px oklch(0.77 0.165 70 / 0.4));
}

.loading
{
	display: flex;
	gap: 0.3rem;
	font-family: Inter, system-ui, sans-serif;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.35em;
}

.loading03 span
{
	display: inline-block;
	animation: loaderWave 1.2s ease-in-out infinite;
}

.loading03 span:nth-child(2) { animation-delay: 0.1s; }
.loading03 span:nth-child(3) { animation-delay: 0.2s; }
.loading03 span:nth-child(4) { animation-delay: 0.3s; }
.loading03 span:nth-child(5) { animation-delay: 0.4s; }
.loading03 span:nth-child(6) { animation-delay: 0.5s; }
.loading03 span:nth-child(7) { animation-delay: 0.6s; }

@keyframes loaderWave
{
	0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
	30% { transform: translateY(-0.45rem); opacity: 1; color: #ffc107; }
}

@keyframes loaderPulse
{
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce)
{
	.loading-logo, .loading03 span { animation: none; }
}
