html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: #0c0a1c;
	color: #e9defc;
	font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-user-select: none;
	user-select: none;
}
#app, #app canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
}

#ui {
	position: fixed;
	left: 50%;
	bottom: max(12px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 7px 12px;
	border-radius: 12px;
	background: rgba(18, 10, 36, 0.55);
	border: 1px solid rgba(255, 90, 220, 0.25);
	box-shadow: 0 0 18px rgba(255, 60, 200, 0.15);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 2;
}
.ctl {
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
}
.lbl {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 11px;
	opacity: 0.9;
}
.ico {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}
.ico.neon { background: #ff3cc8; box-shadow: 0 0 6px #ff3cc8, 0 0 10px #ff3cc8; }
.ico.rain { background: #7fd8ff; box-shadow: 0 0 6px #7fd8ff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

input[type=range] {
	-webkit-appearance: none;
	appearance: none;
	width: 92px;
	height: 18px;
	background: transparent;
	margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #4a2a7a, #ff3cc8);
}
#rain::-webkit-slider-runnable-track { background: linear-gradient(90deg, #2a2a5a, #7fd8ff); }
input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5.5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 8px rgba(255, 120, 230, 0.9);
}
input[type=range]::-moz-range-track {
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #4a2a7a, #ff3cc8);
}
#rain::-moz-range-track { background: linear-gradient(90deg, #2a2a5a, #7fd8ff); }
input[type=range]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 8px rgba(255, 120, 230, 0.9);
}

#hint {
	position: fixed;
	top: max(10px, env(safe-area-inset-top));
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(18, 10, 36, 0.4);
	font-size: 11px;
	opacity: 0.75;
	pointer-events: none;
	transition: opacity 1.2s;
	white-space: nowrap;
	z-index: 2;
}
#hint.hide { opacity: 0; }

#err {
	position: fixed;
	inset: auto 12px 64px 12px;
	padding: 10px;
	border-radius: 8px;
	background: rgba(80, 0, 30, 0.85);
	color: #fff;
	z-index: 3;
}

@media (max-width: 420px) {
	#ui { gap: 10px; padding: 6px 9px; }
	input[type=range] { width: 74px; }
}
