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

:root {
	--ice: #8fa6c8;
	--accent: #6fd4ff;
	--bg: #000000;
	--mono: "Courier New", Courier, monospace;
}

html,
body {
	height: 100%;
}

body {
	background: var(--bg);
	color: var(--ice);
	overflow: hidden;
	cursor: crosshair;
	font-family: var(--mono);
}

.webgl {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	display: block;
	touch-action: none;
}

.vignette {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: radial-gradient(ellipse at center,
			transparent 42%,
			rgba(0, 0, 0, 0.7) 100%);
}

.logo {
	position: fixed;
	top: 1.6rem;
	left: 2.2rem;
	z-index: 10;
	font-size: 0.66rem;
	letter-spacing: 0.34em;
	opacity: 0.5;
}

.brand {
	position: fixed;
	bottom: 1.5rem;
	right: 2.2rem;
	z-index: 10;
	text-align: right;
	line-height: 1.8;
}

.brand .b1 {
	font-family: 'Creepster', sans-serif;
	font-size: 1rem;
	letter-spacing: 0.18em;
	color: #8B0000;
	font-weight: 700;
}

.brand .b2 {
	font-size: 0.56rem;
	letter-spacing: 0.26em;
	color: var(--accent);
	opacity: 0.8;
}

.brand .b3 {
	font-size: 0.56rem;
	letter-spacing: 0.26em;
	opacity: 0.42;
}

.counter {
	position: fixed;
	bottom: 1.6rem;
	left: 2.2rem;
	z-index: 10;
	font-size: 1rem;
	letter-spacing: 0.2em;
	line-height: 2.1;
	color: rgba(143, 166, 200, 0.55);
}

.counter .n {
	color: #e8eef8;
}

.counter .hint {
	opacity: 0.45;
	font-size: 1rem;
	letter-spacing: 0.24em;
}

.card {
	position: fixed;
	left: 50%;
	bottom: 2.4rem;
	transform: translate(-50%, 1.2rem);
	z-index: 12;
	min-width: 300px;
	padding: 0.9rem 1.4rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	background: rgba(4, 6, 12, 0.72);
	backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.45s ease,
		transform 0.45s ease;
}

.card.on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.card .t {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	color: #e8eef8;
}

.card .m {
	margin-top: 0.35rem;
	font-size: 0.55rem;
	letter-spacing: 0.24em;
	color: var(--accent);
	opacity: 0.75;
}

.card .esc {
	margin-top: 0.55rem;
	font-size: 0.5rem;
	letter-spacing: 0.24em;
	opacity: 0.4;
}

@media (max-width: 940px) {

	.logo,
	.brand {
		top: 1rem;
	}

	.logo {
		left: 1.1rem;
	}

	.brand {
		right: 1.1rem;
	}

	.counter {
		left: 1.1rem;
		bottom: 1.1rem;
	}

	.card {
		min-width: 0;
		width: calc(100% - 2.2rem);
	}
}

/* Base Button Styling */
.mute-button {
	position: fixed;
	top: 1.5rem;
	right: 2.2rem;
	background: #222;
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	transition: background 0.2s ease, transform 0.1s ease;
	width: 48px;
	height: 48px;
	z-index: 1002;

}

.mute-button:hover {
	background: #444;
}

.mute-button:active {
	transform: scale(0.95);
}

/* Visibility State Logic */
.mute-button .icon-muted {
	display: none;
	/* Hide muted icon by default */
}

.mute-button .icon-unmuted {
	display: block;
	/* Show unmuted icon by default */
}

/* Toggle States when class '.is-muted' is active */
.mute-button.is-muted .icon-muted {
	display: block;
}

.mute-button.is-muted .icon-unmuted {
	display: none;
}