html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	background: #14141a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #f4f4f6;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

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

.hidden { display: none !important; }

/* ---- HUD bar ---- */
#hud-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	pointer-events: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	z-index: 5;
}

#lives { display: flex; gap: 4px; font-size: 1.3rem; }

#target {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(20, 20, 26, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	padding: 6px 16px;
	font-weight: 700;
	font-size: 0.95rem;
}
.target-label { color: #d5d6de; font-weight: 600; }
.swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
#target-name { color: #fff; }

#score { font-size: 1.3rem; font-weight: 800; }

/* ---- Overlays (shared pattern with the other sample games) ---- */
.overlay {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	background: rgba(10, 10, 14, 0.72);
	backdrop-filter: blur(3px);
	padding: 24px;
	z-index: 10;
}

.overlay h1 {
	margin: 0 0 4px;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.overlay p {
	margin: 0;
	color: #c7c8d1;
	max-width: 360px;
	font-size: 0.95rem;
}

.overlay .hint { font-size: 0.85rem; color: #9a9ba7; }

.score-line { font-size: 1.1rem; color: #fff; font-weight: 700; }
.score-line.best { font-size: 0.9rem; color: #9a9ba7; font-weight: 500; }

.btn {
	margin-top: 10px;
	background: #8b5cf6;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.btn:hover { background: #7c3aed; }
.btn:active { transform: translateY(1px); }
