body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Monospace;
	font-size: 13px;
	line-height: 24px;
	overscroll-behavior: none;
}

a {
	color: #ff0;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

#info {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1;
}

a,
button,
input,
select {
	pointer-events: auto;
}

.lil-gui {
	z-index: 2 !important;
}

@media all and (max-width: 640px) {
	.lil-gui.root {
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.7);
}

#overlay button {
	background: transparent;
	border: 0;
	border: 1px solid rgb(255, 255, 255);
	border-radius: 4px;
	color: #ffffff;
	padding: 12px 18px;
	text-transform: uppercase;
	cursor: pointer;
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

#github-link {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 100;

	display: flex;
	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0.7rem;

	color: white;
	text-decoration: none;
	border: none;

	transition: all 0.2s ease;
}

#github-link svg {
	width: 40px;
	height: 40px;
	fill: currentColor;
	transition: transform 0.2s ease, color 0.2s ease;
}

#github-link:hover {
	color: #ccc;
}

#github-link:hover svg {
	transform: scale(1.15);
}

#sound-btn {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 10, 30, 0.85);
	color: #00eeff;
	border: 1px solid rgba(0, 220, 255, 0.4);
	font-family: monospace;
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	padding: 14px 28px;
	border-radius: 4px;
	cursor: pointer;
	animation: sound-pulse 2s infinite;
	transition: opacity 0.6s ease;
}

#sound-btn:hover {
	background: rgba(0, 220, 255, 0.1);
	border-color: rgba(0, 220, 255, 0.8);
}

@keyframes sound-pulse {

	0%,
	100% {
		box-shadow: 0 0 8px rgba(0, 220, 255, 0.2);
	}

	50% {
		box-shadow: 0 0 20px rgba(0, 220, 255, 0.5);
	}
}

/* hide sound-btn until loader is gone */
#sound-btn {
	display: none;
}

#loader-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #000011;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Share Tech Mono', monospace;
	transition: opacity 0.8s ease;
}

#loader-overlay.fade-out {
	opacity: 0;
	pointer-events: none;
}

.grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 220, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 220, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	animation: loaderGridShift 8s linear infinite;
}

@keyframes loaderGridShift {
	from {
		background-position: 0 0;
	}

	to {
		background-position: 0 48px;
	}
}

.scanline {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(0, 220, 255, 0.15), transparent);
	animation: loaderScan 4s linear infinite;
}

@keyframes loaderScan {
	from {
		top: -2px;
	}

	to {
		top: 100%;
	}
}

.corner {
	position: absolute;
	width: 32px;
	height: 32px;
	border-color: rgba(0, 220, 255, 0.5);
	border-style: solid;
}

.corner-tl {
	top: 24px;
	left: 24px;
	border-width: 2px 0 0 2px;
}

.corner-tr {
	top: 24px;
	right: 24px;
	border-width: 2px 2px 0 0;
}

.corner-bl {
	bottom: 24px;
	left: 24px;
	border-width: 0 0 2px 2px;
}

.corner-br {
	bottom: 24px;
	right: 24px;
	border-width: 0 2px 2px 0;
}

.loader-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: 360px;
}

.loader-eyebrow {
	font-size: 11px;
	letter-spacing: 0.3em;
	color: rgba(0, 220, 255, 0.5);
	text-transform: uppercase;
}

.loader-title {
	font-family: 'Rajdhani', sans-serif;
	font-size: 48px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	margin-top: -8px;
}

.loader-title span {
	color: #00eeff;
}

.loader-ring {
	position: relative;
	width: 96px;
	height: 96px;
}

.loader-ring svg {
	animation: loaderSpin 4s linear infinite;
}

@keyframes loaderSpin {
	to {
		transform: rotate(360deg);
	}
}

.loader-ring-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #00eeff;
	animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {

	0%,
	100% {
		opacity: 0.5;
	}

	50% {
		opacity: 1;
	}
}

.loader-progress-section {
	width: 100%;
}

.loader-progress-label {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: rgba(0, 220, 255, 0.5);
	letter-spacing: 0.15em;
	margin-bottom: 8px;
}

.loader-track {
	width: 100%;
	height: 3px;
	background: rgba(0, 220, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.loader-fill {
	height: 100%;
	background: #00eeff;
	width: 0%;
	transition: width 0.4s ease;
	position: relative;
}

.loader-fill::after {
	content: '';
	position: absolute;
	right: 0;
	top: -3px;
	width: 2px;
	height: 9px;
	background: #fff;
}

.loader-segs {
	display: flex;
	gap: 4px;
	margin-top: 10px;
}

.lseg {
	flex: 1;
	height: 2px;
	background: rgba(0, 220, 255, 0.12);
	transition: background 0.4s ease;
}

.lseg.done {
	background: rgba(0, 220, 255, 0.6);
}

.loader-asset-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.loader-asset {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.3);
	letter-spacing: 0.05em;
	transition: color 0.3s ease;
}

.loader-asset.la-loading {
	color: rgba(255, 255, 255, 0.8);
}

.loader-asset.la-done {
	color: rgba(0, 220, 255, 0.7);
}

.la-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(0, 220, 255, 0.2);
	flex-shrink: 0;
	transition: background 0.3s ease;
}

.loader-asset.la-loading .la-dot {
	background: #fff;
	animation: laDotBlink 0.6s ease-in-out infinite;
}

.loader-asset.la-done .la-dot {
	background: #00eeff;
}

@keyframes laDotBlink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}
}

.la-status {
	margin-left: auto;
	font-size: 10px;
	opacity: 0.6;
}

.loader-status {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.1em;
	text-align: center;
	min-height: 16px;
}
