:root {
	color-scheme: dark;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #090a0f;
	color: #f6f7fb;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	touch-action: none;
	background: #090a0f;
}

#stage {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	background: transparent;
	touch-action: none;
	cursor: crosshair;
}

#media {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: 100vw;
	height: 100vh;
	transform: translate(-50%, -50%);
	background: #000000;
	object-fit: contain;
	pointer-events: none;
}

#stage {
	z-index: 1;
}

#counter {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	min-width: 6ch;
	pointer-events: none;
	text-align: center;
	font-size: clamp(72px, 18vw, 240px);
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	font-variant-numeric: tabular-nums;
}

#debug {
	position: fixed;
	left: 14px;
	top: 14px;
	z-index: 3;
	width: min(280px, calc(100vw - 28px));
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(9, 10, 15, 0.9);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
	font-size: 12px;
	line-height: 1.45;
}

#debug div {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 10px;
	align-items: baseline;
}

#debug span {
	color: rgba(225, 230, 244, 0.62);
}

#debug strong {
	min-width: 0;
	overflow: hidden;
	color: #ffffff;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
	#debug {
		left: 10px;
		top: 10px;
		padding: 10px;
		font-size: 11px;
	}

	#debug div {
		grid-template-columns: 68px minmax(0, 1fr);
	}
}
