@charset "utf-8";
:root {
	--bg: radial-gradient(circle at top, #0b1220 0%, #020617 60%, #000 100%);
	--bg-night: radial-gradient(circle at top, #020617 0%, #000 80%);
	--bg-morning: radial-gradient(circle at top, #0f172a 0%, #0ea5e9 85%);
	--bg-evening: radial-gradient(circle at top, #020617 0%, #a855f7 70%, #0f172a 100%);
	--text: #e2e8f0;
	--muted: rgba(226, 232, 240, 0.35);
}
* { box-sizing: border-box; }
body {
	margin: 0;
	height: 100vh;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--text);
	overflow: hidden;
}
canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}
.overlay {
	position: relative;
	z-index: 4;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	padding: 1.4rem;
	max-width: min(92vw, 1100px);
	align-items: center;
}
.badge {
	display: inline-flex;
	gap: .4rem;
	align-items: center;
	background: rgba(15,23,42,0.35);
	border: 1px solid rgba(148,163,184,0.2);
	border-radius: 999px;
	padding: .35rem .85rem .3rem;
	font-size: 1rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
#title {
	font-size: clamp(1.6rem, 3.6vw, 2.35rem);
	font-weight: 700;
	text-shadow: 0 12px 30px rgba(0,0,0,.32);
}
#subtitle {
	font-size: 1rem;
	color: var(--muted);
}
#startBtn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: .3rem;
	font-size: 1.05rem;
	padding: .7rem 1.8rem .75rem;
	border: none;
	border-radius: 999px;
	background: rgba(15, 118, 178, 0.25);
	color: #e2e8f0;
	backdrop-filter: blur(10px);
	box-shadow: 0 0 30px rgba(15, 118, 178, 0.3);
	cursor: pointer;
	transition: all .3s ease;
	font-weight: 600;
	letter-spacing: .02em;
	margin: .25rem auto 0;
}
#startBtn:hover {
	background: rgba(15, 118, 178, 0.38);
	transform: scale(1.035);
}
#startBtn.playing {
	opacity: 0.75;
	cursor: pointer;
	box-shadow: none;
	transform: scale(1);
}
.control-bar.center {
	margin-top: .8rem;
	display: flex;
	justify-content: center;
	gap: .5rem;
	z-index: 5;
	opacity: .65;
	transition: opacity .25s ease;
}
.overlay:hover .control-bar.center {
	opacity: 1;
}
.ctrl-btn {
	background: rgba(2,6,23,0.15);
	border: 1px solid rgba(148,163,184,0.15);
	color: rgba(226,232,240,0.7);
	font-size: 1rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: all .2s ease;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}
.ctrl-btn.active {
	background: rgba(14,165,233,0.35);
	color: #e2e8f0;
}
.ctrl-btn:hover {
	background: rgba(14,165,233,0.15);
}
.ctrl-btn.stop {
	background: rgba(248,113,113,0.06);
	border-color: rgba(248,113,113,0.26);
	color: rgba(254,242,242,0.85);
}
.ctrl-btn.stop:hover {
	background: rgba(248,113,113,0.25);
}
#caption {
	position: absolute;
	bottom: 20px;
	width: 100%;
	text-align: center;
	font-size: 1rem;
	opacity: .35;
	letter-spacing: .04em;
	z-index: 2;
	pointer-events: none;
}
#spider {
	position: absolute;
	width: 40vmin;
	max-width: 420px;
	opacity: 0;
	transition: opacity .5s ease;
	pointer-events: none;
	filter: drop-shadow(0 0 25px rgba(0,0,0,.4));
	z-index: 3;
	mix-blend-mode: screen;
}
#spider.visible {
	opacity: .55;
}