* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-color-light: #87ceeb;
	--bg-color-dark: #1a1a2e;
}

body {
	overflow: hidden;
	font-family: monospace;
	background: var(--bg-color-light);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
	body {
		background: var(--bg-color-dark);
	}
}

.webgl {
	display: block;
	width: 100vw;
	height: 100vh;
}

/* Loading screen */
#loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, #87ceeb, #4a90e2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 0.5s ease;
}

@media (prefers-color-scheme: dark) {
	#loading-screen {
		background: linear-gradient(to bottom, #1a1a2e, #0a0a1e);
	}
}

#loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.loading-content {
	text-align: center;
	color: white;
}

.loading-title {
	font-size: 2em;
	margin-bottom: 1em;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.loading-progress {
	font-size: 1.2em;
	margin-bottom: 0.5em;
}

.loading-bar-container {
	width: 300px;
	height: 20px;
	background: rgba(255,255,255,0.2);
	border-radius: 10px;
	overflow: hidden;
	margin: 1em auto;
}

.loading-bar {
	height: 100%;
	background: linear-gradient(90deg, #4a90e2, #6bb6ff);
	width: 0%;
	transition: width 0.3s ease;
}

.loading-status {
	font-size: 0.9em;
	opacity: 0.8;
	margin-top: 0.5em;
}
