:root {
	font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: #f3f4f6;
	background-color: #030712;
}

* {
	box-sizing: border-box;
	user-select: none;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #030712;
	color: inherit;
}

body.game-page {
	overflow: hidden;
}

.game-root {
	position: relative;
	width: 100vw;
	height: 100vh;
	max-height: 100svh;
	margin: 0;
}

#game-canvas {
	width: 100%;
	height: 100%;
	display: block;
	background: radial-gradient(circle at top, #111827 0%, #030712 60%);
}

.hud {
	position: absolute;
	top: 1.2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 1rem;
	padding: 0.6rem 1rem;
	background: rgba(3, 7, 18, 0.75);
	border: 1px solid rgba(99, 102, 241, 0.4);
	border-radius: 999px;
	backdrop-filter: blur(6px);
	font-size: 0.95rem;
	transition: opacity 0.2s ease;
	opacity: 0;
	pointer-events: none;
}

body.is-playing .hud {
	opacity: 1;
	pointer-events: auto;
}

.hud-item {
	text-align: center;
	line-height: 1.2;
}

.hud-item span {
	display: block;
	font-size: 0.8rem;
	color: #cbd5f5;
}

.hud-item strong {
	font-size: 1.1rem;
	letter-spacing: 0.08em;
}

.primary-button {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	padding: 0.9rem 1.2rem;
	border-radius: 999px;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	background: linear-gradient(120deg, #f97316, #facc15);
	color: #111827;
	box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.2s ease;
	z-index: 2;
}

.primary-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.overlay-klopapier {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(3, 7, 18, 0.92);
	color: #f8fafc;
	z-index: 3;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.overlay-klopapier.visible {
	opacity: 1;
	pointer-events: auto;
}

.overlay-content {
	max-width: 420px;
	text-align: center;
}

.overlay-klopapier h1,
.overlay-klopapier h2 {
	margin-bottom: 0.8rem;
	letter-spacing: 0.08em;
}

.overlay-klopapier p {
	line-height: 1.4;
	margin-bottom: 1rem;
}

.overlay-klopapier .primary-button {
	position: static;
	transform: none;
	width: 100%;
}

.lock-note {
	color: #f87171;
	font-weight: 600;
}

.noscript-message {
	position: absolute;
	inset: 0;
	margin: auto;
	text-align: center;
	background: #1f2937;
	padding: 1rem;
	max-width: 300px;
	border-radius: 0.5rem;
	color: #fef3c7;
}

@media (max-width: 520px) {
	

	.primary-button {
		min-width: 160px;
		bottom: 1.4rem;
	}
}
