html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 38%, #cfb2a2 0%, #b2948a 100%);
	-webkit-tap-highlight-color: transparent;
}

#app {
	position: fixed;
	inset: 0;
}

#app canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	outline: none;
}

#ui {
	position: fixed;
	left: max(12px, env(safe-area-inset-left));
	bottom: max(12px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 7px 10px;
	border-radius: 10px;
	background: rgba(58, 34, 24, 0.3);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff7ee;
	font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	user-select: none;
	-webkit-user-select: none;
	z-index: 2;
}

.ctl {
	display: grid;
	grid-template-columns: 34px 118px 50px;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.ctl .name {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ctl input[type="range"] {
	width: 118px;
	margin: 0;
	accent-color: #e2643a;
	cursor: pointer;
}

.ctl output {
	opacity: 0.85;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#hint {
	position: fixed;
	right: max(12px, env(safe-area-inset-right));
	bottom: max(12px, env(safe-area-inset-bottom));
	color: rgba(70, 40, 28, 0.55);
	font: 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
	z-index: 2;
}

#loading {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	color: rgba(70, 40, 28, 0.75);
	font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
	transition: opacity 0.6s;
	z-index: 3;
}

@media (max-width: 560px) {
	#ui {
		left: 50%;
		transform: translateX(-50%);
	}
	#hint {
		display: none;
	}
	.ctl {
		grid-template-columns: 34px 112px 48px;
	}
	.ctl input[type="range"] {
		width: 112px;
	}
}
