body {
	margin: 0;
	background: #111;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	position: relative;
}

#game-wrapper {
	display: flex;
	flex-direction: column;
	/* вертикальний потік: HUD над canvas */
	align-items: center;
	/* центруємо по горизонталі */
	gap: 10px;
	/* відстань між HUD і canvas */
}

#hud {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 10px;
}

#lives-container {
	display: flex;
	gap: 5px;
}

#score-container {
	display: flex;
	align-items: center;
	gap: 5px;
}

#score-value {
	color: gold;
	/* або будь-який інший колір */
	font-weight: bold;
	font-size: 32px;
}

#speed-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

label[for="speed"] {
	color: rgb(16, 134, 230);
	/* бажаний колір */
	font-weight: bold;
	/* за бажанням */
	font-size: 14px;
}

.shoot__btn {
	position: relative;
}

#shoot-btn {
	position: absolute;
	top: -60px;
	left: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 128, 0, 0.8);
	color: white;
	font-size: 28px;
	font-weight: bold;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	/* поверх canvas */
	user-select: none;
}

#shoot-btn:active {
	background: rgba(0, 100, 0, 1);
	transform: scale(0.95);
}

/* Ховаємо кнопку на екранах ширших за 768px */
@media (min-width: 768px) {
	#shoot-btn {
		display: none;
	}
}

canvas {
	width: 80%;
	/* займати всю ширину контейнера / екрану */
	max-width: 400px;
	/* не більше за оригінальну ширину */
	height: auto;
	/* зберігає пропорції */
	display: block;
	/* прибирає зайві відступи */
	margin: 0 auto;
	/* центрування на екрані */
	background: gold;
	border: 20px solid #4CAF50;
	touch-action: none;
	/* забороняє прокрутку по канві */
}

/* Модальне вікно */
.modal {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #222;
	padding: 30px 40px;
	border: 2px solid #FFD700;
	color: #FFD700;
	font-family: Arial;
	text-align: center;
	border-radius: 12px;
	z-index: 1000;
	min-width: 240px;
}

#game-over-modal {
	position: absolute;
	/* поверх канви */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(23, 3, 248, 0.8);
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	font-size: 25px;
	padding: 20px 30px;
	border-radius: 10px;
	text-align: center;
	display: none;
	/* ховаємо спочатку */
	z-index: 10;
	/* поверх канви */
	color: #fff;
}

.modal-text {
	font-size: 20px;
	margin-bottom: 16px;
}

.btn {
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	margin-right: 10px;
}

.btn.gold {
	background: #FFD700;
}

.btn.gray {
	background: #555;
	color: white;
}

.btn.focused {
	outline: 5px solid #ffffff;
}