:root {
	--bg: #0a0710;
	--fg: #e8e4f0;
	--muted: #7a748c;
	--primary: #a855f7;
	--primary-dim: rgba(168, 85, 247, .4);
	--surface: rgba(30, 20, 50, .5);
	--border: rgba(168, 85, 247, .15);
}

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

html,
body {
	height: 100%;
	background: var(--bg);
	color: var(--fg);
	font-family: "Space Grotesk", sans-serif;
	overflow: hidden;
}

body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#particles {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.grid-bg {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: .06;
	background-image:
		linear-gradient(to right, var(--primary) 1px, transparent 1px),
		linear-gradient(to bottom, var(--primary) 1px, transparent 1px);
	background-size: 60px 60px;
}

.diag-lines {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

.diag-lines span {
	position: absolute;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--primary-dim), transparent);
}

.diag-lines .d1 {
	left: -10vw;
	top: 22%;
	width: 45vw;
	transform: rotate(-7deg);
}

.diag-lines .d2 {
	right: -10vw;
	bottom: 22%;
	width: 45vw;
	transform: rotate(-7deg);
}

.diag-lines .d3 {
	left: 50%;
	top: 0;
	width: 1px;
	height: 60vh;
	background: linear-gradient(to bottom, rgba(168, 85, 247, .25), transparent);
}

.corners {
	position: fixed;
	inset: 24px;
	z-index: 3;
	pointer-events: none;
}

.c {
	position: absolute;
	width: 32px;
	height: 32px;
	border-color: var(--primary-dim);
}

.c.tl {
	top: 0;
	left: 0;
	border-top: 1px solid;
	border-left: 1px solid;
}

.c.tr {
	top: 0;
	right: 0;
	border-top: 1px solid;
	border-right: 1px solid;
}

.c.bl {
	bottom: 0;
	left: 0;
	border-bottom: 1px solid;
	border-left: 1px solid;
}

.c.br {
	right: 0;
	bottom: 0;
	border-right: 1px solid;
	border-bottom: 1px solid;
}

.scanlines {
	position: fixed;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	opacity: .3;
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, .05) 2px,
		rgba(0, 0, 0, .05) 4px
	);
}

#vignette {
	position: fixed;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	transition: background .1s linear;
}

/* Welcome */
#welcome {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 7, 16, .7);
	backdrop-filter: blur(10px);
	cursor: pointer;
	transition: opacity .5s;
}

#welcome.hide {
	opacity: 0;
	pointer-events: none;
}

.welcome-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	animation: pulseSlow 2.5s ease-in-out infinite;
}

.click-cta {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .5em;
	color: var(--muted);
	transition: color .2s;
}

#welcome:hover .click-cta {
	color: var(--primary);
}

.play-cta {
	font-size: 18px;
	color: rgba(232, 228, 240, .7);
}

@keyframes pulseSlow {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: .6;
	}
}

/* Content */
.content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 640px;
	padding: 24px;
	text-align: center;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	margin-bottom: 24px;
	border: 1px solid var(--primary-dim);
	border-radius: 999px;
	background: var(--surface);
	backdrop-filter: blur(4px);
}

.tag span:last-child {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .2em;
	color: var(--primary);
}

.dot {
	position: relative;
	display: inline-block;
	width: 8px;
	height: 8px;
}

.dot b {
	position: absolute;
	inset: 0;
	background: var(--primary);
	border-radius: 50%;
	animation: ping 1.5s cubic-bezier(0, 0, .2, 1) infinite;
}

.dot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--primary);
	border-radius: 50%;
}

@keyframes ping {
	75%,
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}

.divider {
	display: flex;
	align-items: center;
	gap: 12px;
}

.divider.mt {
	margin-top: 28px;
}

.divider span {
	width: 64px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--primary-dim));
}

.divider span:last-child {
	background: linear-gradient(to left, transparent, var(--primary-dim));
}

.divider i {
	width: 6px;
	height: 6px;
	background: var(--primary);
	box-shadow: 0 0 10px rgba(168, 85, 247, .8);
	transform: rotate(45deg);
}

.title {
	margin-top: 24px;
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
}

.glow {
	text-shadow:
		0 0 20px rgba(168, 85, 247, .5),
		0 0 40px rgba(168, 85, 247, .3);
}

.subtitle {
	margin-top: 12px;
	font-family: "JetBrains Mono", monospace;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .2em;
	color: var(--muted);
}

/* Visualizer */
.viz-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 480px;
	height: 60px;
	margin-top: 24px;
}

#viz {
	display: block;
	width: 100%;
	height: 100%;
}

/* Lyrics */
.lyrics-box {
	width: 100%;
	max-width: 520px;
	margin-top: 20px;
}

.lyrics-head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-family: "JetBrains Mono", monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .3em;
	color: rgba(122, 116, 140, .7);
}

.lyrics-inner {
	position: relative;
	height: 80px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	backdrop-filter: blur(4px);
}

.lyric {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	font-size: 15px;
	color: rgba(232, 228, 240, .95);
	text-align: center;
	opacity: 0;
	filter: blur(4px);
	transform: translateY(20px);
	transition:
		opacity .6s ease,
		transform .6s ease,
		filter .6s ease;
}

.lyric.current {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
}

.lyric.prev {
	opacity: 0;
	filter: blur(4px);
	transform: translateY(-20px);
}

.lyric.dots {
	font-family: "JetBrains Mono", monospace;
	letter-spacing: .5em;
	color: var(--primary);
}

.lyrics-progress {
	height: 2px;
	overflow: hidden;
	border-radius: 0 0 8px 8px;
	background: rgba(168, 85, 247, .1);
}

.lyrics-progress i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--primary);
	box-shadow: 0 0 8px var(--primary);
	transition: width .1s linear;
}

/* Controls */
.controls {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 520px;
	margin-top: 16px;
}

.ctrl-btn {
	padding: 8px 16px;
	border: 1px solid var(--primary-dim);
	border-radius: 6px;
	background: var(--surface);
	color: var(--fg);
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .2em;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: all .2s;
}

.ctrl-btn:hover {
	background: rgba(168, 85, 247, .15);
	color: var(--primary);
	box-shadow: 0 0 16px rgba(168, 85, 247, .2);
}

.time {
	min-width: 90px;
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	color: var(--muted);
}

#seek {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: rgba(168, 85, 247, .15);
	outline: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

#seek::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 8px rgba(168, 85, 247, .8);
	cursor: pointer;
	-webkit-appearance: none;
}

#seek::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 8px rgba(168, 85, 247, .8);
	cursor: pointer;
}

/* Socials */
.socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.socials a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--fg);
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: all .2s;
}

.socials a:hover {
	border-color: var(--primary-dim);
	color: var(--primary);
	box-shadow: 0 0 20px rgba(168, 85, 247, .15);
}

.socials svg {
	width: 16px;
	height: 16px;
	color: var(--muted);
	transition: color .2s;
}

.socials a:hover svg {
	color: var(--primary);
}

.socials span {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .15em;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 44px;
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	color: var(--muted);
}

.fdot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: rgba(168, 85, 247, .6);
	vertical-align: middle;
}

.sep {
	margin: 0 6px;
	color: var(--border);
}

.footer p {
	margin-top: 6px;
	opacity: .5;
}