:root {
	--bg-color: #0f0f11;
	--text-color: #ffffff;
	--glass-bg: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
}

body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: var(--bg-color);
	font-family: "Outfit", sans-serif;
	color: var(--text-color);
	width: 100vw;
	height: 100vh;
}

/* Container for our physics divs */
#scene-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	/* Let clicks pass through to Matter.js mouse constraint if needed, but we'll handle events differently */
	z-index: 1;
}

/* The individual color "pills" */
.color-body {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 999px;
	/* Pill shape */
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	cursor: grab;
	user-select: none;
	will-change: transform;
	pointer-events: auto;
	/* Enable interaction */
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: box-shadow 0.1s;
}

.color-body:active {
	cursor: grabbing;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
	transform: scale(1.05);
	/* Slight pop on grab */
}

/* UI Layer */
.ui-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
	padding: 2rem;
	box-sizing: border-box;
	background: radial-gradient(
		circle at 50% 50%,
		transparent 80%,
		rgba(0, 0, 0, 0.4) 100%
	);
}

h1 {
	font-size: 3rem;
	font-weight: 900;
	margin: 0;
	background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

p {
	font-size: 1.1rem;
	opacity: 0.7;
	margin-top: 0.5rem;
	max-width: 400px;
}

.controls {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	pointer-events: auto;
}

button {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: white;
	padding: 0.8rem 1.5rem;
	border-radius: 12px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: all 0.2s ease;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 1px;
}

button:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
	transform: translateY(0);
}

/* Canvas generated by Matter.js (hidden or debug) */
canvas {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	/* We hide the raw physics wireframes to show only our DOM elements */
	pointer-events: auto;
	/* Needs to catch mouse events for the physics engine */
}