/**
 * Pre-JS boot splash only — loaded from index.html before the Vite CSS bundle.
 * Do NOT paint html/body navy here: unlayered body colors beat Tailwind @layer
 * base and leak through the app main column after React mounts.
 */
html,
body {
	margin: 0;
	min-height: 100%;
}

#boot-splash {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	z-index: 9999;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 2rem 1rem;
	background-color: #081a31;
	background-image: url("./brand/bg-dark-gradient.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: system-ui, sans-serif;
	color: #fff;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

#boot-splash.boot-splash--done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#boot-splash img {
	width: min(100%, 20rem);
	height: auto;
}

/* Shared with React BootSplashScreen so the bar motion matches. */
.boot-bar {
	width: min(100%, 12rem);
	height: 3px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}

.boot-bar > span {
	display: block;
	width: 40%;
	height: 100%;
	background: #fff;
	animation: boot-slide 1.1s ease-in-out infinite;
}

@keyframes boot-slide {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(250%);
	}
}
