/* The loading screen of the host's index.html, before .NET runs. The host's app.css sets the --app-startup-* colours,
   light and dark, and supplies the logo */

.app-startup {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 2rem);
	background: var(--app-startup-background);
}

.app-startup-shell {
	width: min(100%, 24rem);
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.app-startup-logo {
	width: clamp(10rem, 40vw, 14rem);
	height: auto;
	align-self: center;
	margin-bottom: 0.125rem;
}

.app-startup-label {
	margin: 0;
	color: var(--app-startup-text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: center;
}

.loading-progress {
	position: relative;
	display: block;
	width: 100%;
	height: 0.25rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--app-startup-track);
}

	.loading-progress::before {
		content: "";
		position: absolute;
		inset: 0;
		width: var(--blazor-load-percentage, 0%);
		border-radius: inherit;
		background: var(--app-startup-bar);
		transition: width 0.18s ease-out;
	}

.app-startup-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.loading-progress-text {
	min-width: 3ch;
	color: var(--app-startup-muted);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

	.loading-progress-text::after {
		content: var(--blazor-load-percentage-text, "0%");
	}

@media (max-width: 480px) {
	.app-startup-shell {
		gap: 0.5rem;
	}

	.app-startup-logo {
		margin-bottom: 0;
	}

	.app-startup-label {
		font-size: 0.875rem;
	}

	.loading-progress-text {
		font-size: 0.6875rem;
	}
}