html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

#root {
	min-height: 100vh;
}

.wishio-splash {
	position: fixed;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--background-color, #f0f5f5);
	color: var(--text-color, #202020);
	text-align: center;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

html.wishio-splash-hidden .wishio-splash {
	display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
	.wishio-splash {
		display: flex;
	}
}

.wishio-splash__logo {
	width: 96px;
	height: 96px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	margin-bottom: 24px;
}

.wishio-splash__logo img {
	max-width: 72px;
	height: auto;
	display: block;
}

.wishio-splash__title {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.04em;
	margin-bottom: 8px;
}

.wishio-splash__subtitle {
	font-size: 14px;
	opacity: 0.9;
	max-width: 260px;
}

.wishio-splash__spinner {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 3px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	margin-top: 24px;
	animation: wishio-spin 0.9s linear infinite;
}

@keyframes wishio-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-color-scheme: dark) {
	.wishio-splash {
		background: radial-gradient(circle at top, #222222, #050505);
		color: #ffffff;
	}

	.wishio-splash__logo {
		background: rgba(0, 0, 0, 0.7);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
	}

	.wishio-splash__spinner {
		border: 3px solid rgba(255, 255, 255, 0.3);
		border-top-color: #ffffff;
	}
}
