:root {
	color-scheme: dark;
	font-family: 'Courier New', monospace;
}

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

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #1a1a2e;
}

#game-container {
	position: relative;
	width: 100%;
	height: 100vh;
}

#game-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

#ui-overlay {
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	text-align: center;
	pointer-events: none;
	z-index: 10;
}

#score {
	font-size: 72px;
	font-weight: 900;
	color: #fff;
	text-shadow:
		3px 3px 0 #000,
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000;
	letter-spacing: 2px;
}

#high-score {
	font-size: 16px;
	font-weight: 700;
	color: #ffcc00;
	text-shadow: 2px 2px 0 #000;
	margin-top: 4px;
}

#start-screen,
#game-over {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 30, 0.85);
	z-index: 20;
}

#start-screen h1 {
	font-size: 64px;
	font-weight: 900;
	color: #ffcc00;
	text-shadow: 4px 4px 0 #b8860b, 6px 6px 0 #000;
	text-align: center;
	line-height: 1.1;
	margin-bottom: 20px;
}

#start-screen p {
	font-size: 16px;
	color: #aaa;
	margin-bottom: 30px;
}

#game-over h2 {
	font-size: 56px;
	font-weight: 900;
	color: #ff4444;
	text-shadow: 3px 3px 0 #8b0000, 5px 5px 0 #000;
	margin-bottom: 10px;
}

#game-over #final-score {
	font-size: 24px;
	color: #fff;
	margin-bottom: 30px;
}

button {
	font-family: 'Courier New', monospace;
	font-size: 22px;
	font-weight: 900;
	padding: 14px 48px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: transform 0.1s;
}

button:active {
	transform: scale(0.95);
}

#start-btn {
	background: #ffcc00;
	color: #1a1a2e;
	box-shadow: 0 4px 0 #b8860b;
}

#retry-btn {
	background: #ff4444;
	color: #fff;
	box-shadow: 0 4px 0 #8b0000;
}

.hidden {
	display: none !important;
}