#status {
	background: #07101f;
	isolation: isolate;
	overflow: hidden;
}

#status-splash.fullsize--true {
	filter: brightness(0.52) saturate(1.08);
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: cover;
	position: absolute;
	transform: scale(1.015);
	width: 100%;
	z-index: -2;
}

#status::before {
	background:
		radial-gradient(circle at 68% 42%, transparent 12%, rgba(4, 10, 24, 0.24) 60%),
		linear-gradient(180deg, rgba(4, 9, 20, 0.12) 28%, rgba(4, 9, 20, 0.92) 100%);
	content: '';
	inset: 0;
	position: absolute;
	z-index: -1;
}

#first-load-content {
	align-items: center;
	background: linear-gradient(135deg, rgba(9, 18, 38, 0.78), rgba(8, 14, 28, 0.64));
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1.25rem;
	bottom: clamp(1.5rem, 6vh, 4.5rem);
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.42);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	left: 50%;
	max-width: 46rem;
	padding: clamp(1.1rem, 2.6vw, 2rem) clamp(1.1rem, 4vw, 2.5rem);
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
	width: min(88vw, 46rem);
	z-index: 2;
}

#first-load-title {
	color: #fff5d6;
	font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 0.95;
	text-shadow: 0 0.28rem 0 #7d2f0d, 0 0.6rem 1.4rem rgba(0, 0, 0, 0.7);
}

#first-load-description {
	color: rgba(255, 255, 255, 0.94);
	font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
	font-size: clamp(0.92rem, 2.2vw, 1.08rem);
	line-height: 1.5;
	margin: 0.85rem 0 1rem;
}

#first-load-progress-shell {
	width: 100%;
}

#first-load-meter {
	background: rgba(4, 8, 18, 0.78);
	border: 1px solid rgba(255, 237, 188, 0.52);
	border-radius: 999px;
	box-shadow: inset 0 0.15rem 0.35rem rgba(0, 0, 0, 0.55);
	height: 0.9rem;
	overflow: hidden;
}

#first-load-meter-fill {
	background: linear-gradient(90deg, #ff8b22, #ffd65a 72%, #fff4b3);
	border-radius: inherit;
	box-shadow: 0 0 1rem rgba(255, 185, 52, 0.65);
	height: 100%;
	min-width: 0.35rem;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 120ms linear;
}

#first-load-progress-label {
	align-items: baseline;
	display: flex;
	font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
	justify-content: space-between;
	margin-top: 0.5rem;
}

#first-load-percentage {
	color: #ffe9a2;
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

#first-load-phase {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.86rem;
}

#first-load-tip {
	color: rgba(255, 255, 255, 0.66);
	font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
	font-size: clamp(0.76rem, 2vw, 0.88rem);
	margin: 0.8rem 0 0;
}

/* Godot keeps driving this native element; the branded meter mirrors real byte progress. */
#status-progress {
	height: 1px !important;
	width: 1px !important;
	opacity: 0;
	pointer-events: none;
}

#status-notice {
	font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
	max-width: min(80vw, 42rem);
	z-index: 4;
}

@media (max-width: 640px), (max-height: 560px) {
	#status-splash.fullsize--true {
		object-position: 58% center;
	}

	#first-load-content {
		bottom: max(1rem, env(safe-area-inset-bottom));
		border-radius: 1rem;
		padding: 1rem 1.1rem;
		width: min(92vw, 34rem);
	}

	#first-load-description {
		margin: 0.65rem 0 0.8rem;
	}

	#first-load-phase {
		max-width: 70%;
		text-align: right;
	}
}
