html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: #0b0a18;
	color: #e9e4ff;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

#app, #app canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
}

#ui {
	position: fixed;
	left: calc(12px + env(safe-area-inset-left));
	bottom: calc(12px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(14, 10, 30, 0.55);
	border: 1px solid rgba(190, 120, 255, 0.25);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-size: 12px;
	line-height: 1;
	z-index: 2;
}

.ctl {
	display: grid;
	grid-template-columns: 52px 110px 22px;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.lbl {
	display: flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
}
.dot.neon { background: #ff3cc8; box-shadow: 0 0 6px #ff3cc8; }
.dot.rain { background: #7ad8ff; box-shadow: 0 0 6px #7ad8ff; }

output {
	font-variant-numeric: tabular-nums;
	text-align: right;
	opacity: 0.65;
	font-size: 11px;
}

input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 110px;
	height: 18px;
	margin: 0;
	background: transparent;
	touch-action: pan-x;
}
input[type="range"]::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 60, 200, 0.85), rgba(80, 220, 255, 0.85));
}
input[type="range"]::-moz-range-track {
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 60, 200, 0.85), rgba(80, 220, 255, 0.85));
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5.5px;
	border-radius: 50%;
	background: #f4eaff;
	border: 2px solid #b85cff;
	box-shadow: 0 0 6px rgba(200, 120, 255, 0.8);
}
input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f4eaff;
	border: 2px solid #b85cff;
}
input[type="range"]:focus-visible { outline: 1px dashed #b85cff; outline-offset: 2px; }

#hint {
	position: fixed;
	top: calc(12px + env(safe-area-inset-top));
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(14, 10, 30, 0.5);
	font-size: 11px;
	opacity: 0.75;
	pointer-events: none;
	transition: opacity 1.2s ease;
	white-space: nowrap;
	z-index: 2;
}
#hint.gone { opacity: 0; }

.err { padding: 2em; text-align: center; }

@media (max-width: 420px) {
	.ctl { grid-template-columns: 46px 96px 20px; }
	input[type="range"] { width: 96px; }
}
