.murmurations-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
}

.controls {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	background: rgba(18, 17, 19, 0.85);
	border: 1px solid rgba(245, 243, 238, 0.2);
	padding: 0.75rem;
	font-size: 12px;
	color: #f5f3ee;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 220px;
	backdrop-filter: blur(4px);
}

.controls label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.controls select,
.controls input[type='range'],
.controls button {
	background: rgba(245, 243, 238, 0.06);
	border: 1px solid rgba(245, 243, 238, 0.2);
	color: #f5f3ee;
	font: inherit;
	padding: 0.25rem 0.5rem;
}

.controls button {
	cursor: pointer;
}

.controls button:hover {
	background: rgba(245, 243, 238, 0.15);
}

.controls .status {
	font-size: 11px;
	opacity: 0.6;
}

.controls .section {
	font-size: 11px;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(245, 243, 238, 0.15);
}

.controls input[type='range'] {
	flex: 1;
	max-width: 110px;
}

.controls {
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}

.controls details {
	border-top: 1px solid rgba(245, 243, 238, 0.15);
	padding-top: 0.4rem;
}

.controls details:first-of-type {
	border-top: none;
	padding-top: 0;
}

.controls summary {
	cursor: pointer;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8;
	padding: 0.15rem 0;
	user-select: none;
}

.controls details[open] summary {
	margin-bottom: 0.35rem;
}

.controls details > * + * {
	margin-top: 0.4rem;
}

.controls label > span:first-child {
	flex-shrink: 0;
	min-width: 70px;
}

.controls .val {
	font-variant-numeric: tabular-nums;
	font-size: 10px;
	opacity: 0.6;
	min-width: 36px;
	text-align: right;
}

.controls button.reset {
	font-size: 10px;
	opacity: 0.7;
	padding: 0.2rem 0.4rem;
}

.controls button.reset:hover {
	opacity: 1;
}

.controls-header {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.controls-header > button:first-child {
	flex: 1;
}

.controls-header .close {
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
}

.controls-toggle {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	width: 36px;
	height: 36px;
	background: rgba(18, 17, 19, 0.85);
	border: 1px solid rgba(245, 243, 238, 0.2);
	color: #f5f3ee;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(4px);
}

.controls-toggle:hover {
	background: rgba(245, 243, 238, 0.15);
}
