@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@700;900&display=swap');

:root {
	--bg-primary: #1b0a2e;
	--bg-secondary: #2d1250;
	--accent-pink: #ff2d78;
	--accent-cyan: #00e5ff;
	--accent-yellow: #ffe135;
	--accent-green: #39ff14;
	--text-primary: #ffffff;
	--text-muted: rgba(255, 255, 255, 0.6);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

html, body {
	height: 100%;
	overflow: hidden;
	touch-action: none;
}

body {
	font-family: 'Nunito', sans-serif;
	background: var(--bg-primary);
}

.game {
	position: relative;
	width: 100%;
	height: 100dvh;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 80%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.game__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.game__hud {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify: space-between;
	align-items: flex-start;
	padding: 12px 16px;
	padding-top: max(12px, env(safe-area-inset-top));
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
	pointer-events: none;
}

.game__label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--text-muted);
	text-transform: uppercase;
}

.game__score {
	font-family: 'Lilita One', cursive;
	font-size: 32px;
	color: var(--text-primary);
	line-height: 1;
	text-shadow: 0 0 20px rgba(255, 45, 120, 0.5);
}

.game__combo {
	font-family: 'Lilita One', cursive;
	font-size: 24px;
	color: var(--accent-yellow);
	line-height: 1;
	text-shadow: 0 0 15px rgba(255, 225, 53, 0.5);
	transition: transform 0.1s;
}

.game__combo--pulse {
	transform: scale(1.4);
}

.game__lives {
	font-size: 20px;
	color: var(--accent-pink);
	line-height: 1;
	text-shadow: 0 0 10px rgba(255, 45, 120, 0.6);
}

.game__score-wrap,
.game__combo-wrap,
.game__lives-wrap {
	text-align: center;
}

.game__overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 4, 20, 0.88);
	backdrop-filter: blur(12px);
	animation: fadeIn 0.3s ease;
}

.game__overlay--hidden {
	display: none;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.game__overlay-content {
	text-align: center;
	padding: 24px;
}

.game__title {
	font-family: 'Lilita One', cursive;
	font-size: clamp(48px, 14vw, 80px);
	color: var(--text-primary);
	line-height: 1;
	margin-bottom: 12px;
	text-shadow:
		0 0 30px rgba(255, 45, 120, 0.4),
		0 4px 0 rgba(0, 0, 0, 0.3);
}

.game__title--accent {
	display: block;
	background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3));
}

.game__title--small {
	font-size: clamp(36px, 10vw, 56px);
}

.game__subtitle {
	font-size: 18px;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 8px;
}

.game__hint {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 32px;
}

.game__final-score {
	font-family: 'Lilita One', cursive;
	font-size: 28px;
	color: var(--accent-cyan);
	margin-bottom: 4px;
}

.game__best-score {
	font-size: 16px;
	color: var(--accent-yellow);
	font-weight: 700;
	margin-bottom: 32px;
}

.game__btn {
	font-family: 'Lilita One', cursive;
	font-size: 22px;
	color: var(--bg-primary);
	background: linear-gradient(135deg, var(--accent-yellow), #ffab00);
	border: none;
	border-radius: 50px;
	padding: 16px 48px;
	cursor: pointer;
	box-shadow:
		0 4px 0 #b89800,
		0 8px 30px rgba(255, 225, 53, 0.3);
	transition: transform 0.1s, box-shadow 0.1s;
	letter-spacing: 1px;
}

.game__btn:active {
	transform: translateY(4px);
	box-shadow:
		0 0 0 #b89800,
		0 2px 15px rgba(255, 225, 53, 0.3);
}