@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #05050f;
	overflow: hidden;
	font-family: "Inter", system_ui, sans-serif;
}

canvas {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	pointer-events: none;
	z-index: 10;
	line-height: 1.4;
}

.controls {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(10, 10, 30, 0.7);
	backdrop-filter: blur(12px);
	padding: 12px 18px;
	border-radius: 12px;
	color: white;
	font-size: 13px;
	display: flex;
	gap: 16px;
	align-items: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	z-index: 10;
	flex-wrap: wrap;
}

button,
label {
	display: flex;
	align-items: center;
	gap: 8px;
}

button {
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
}

button:hover {
	background: rgba(255, 255, 255, 0.3);
}

input[type="range"] {
	width: 140px;
}

/* Circular Angle Knob */
.angle-knob {
	width: 72px;
	height: 72px;
	position: relative;
	cursor: grab;
	user-select: none;
	touch-action: none;
	/* better mobile behavior */
}

.angle-knob:active {
	cursor: grabbing;
}

.angle-knob svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.angle-knob .knob-circle {
	fill: none;
	stroke: #4488ff;
	stroke-width: 9;
}

.angle-knob .knob-indicator {
	stroke: #4488ff;
	stroke-width: 7;
	stroke-linecap: round;
}

.angle-knob .center-dot {
	fill: #000;
	stroke: rebeccapurple;
	stroke-width: 2;
}

.angle-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	pointer-events: none;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}