
.nsvs-game {
	--nsvs-border: rgba(255,255,255,.18);
	--nsvs-panel: rgba(8,16,30,.88);
	width: min(100%, 760px);
	margin: 24px auto;
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	outline: none;
}

.nsvs-toolbar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 10px 14px;
	background: #0d1726;
	border: 1px solid var(--nsvs-border);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.nsvs-label {
	font-size: 11px;
	opacity: .65;
	margin-right: 6px;
	letter-spacing: .08em;
}

.nsvs-stage-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 0 0 12px 12px;
	background: #09111c;
	border: 1px solid var(--nsvs-border);
}

.nsvs-canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 540 / var(--nsvs-canvas-height, 760);
	background: #0d241e;
	touch-action: none;
}

.nsvs-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0,0,0,.34);
	z-index: 5;
}

.nsvs-overlay.is-hidden {
	display: none;
}

.nsvs-panel {
	width: min(92%, 500px);
	padding: 28px;
	background: var(--nsvs-panel);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	backdrop-filter: blur(10px);
}

.nsvs-panel h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 5vw, 40px);
	letter-spacing: .08em;
}

.nsvs-panel p {
	margin: 8px 0;
	line-height: 1.7;
}

.nsvs-keys {
	font-size: 13px;
	opacity: .8;
}

.nsvs-start-button {
	margin-top: 18px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #09111c;
	font-weight: 800;
	font-size: 16px;
	cursor: pointer;
}

.nsvs-help {
	margin-top: 10px;
	color: #445;
	font-size: 13px;
	line-height: 1.6;
}

.nsvs-mobile-controls {
	display: none;
	position: absolute;
	inset: auto 0 0;
	z-index: 4;
	justify-content: space-between;
	align-items: flex-end;
	padding: 14px;
	pointer-events: none;
}

.nsvs-mobile-controls button {
	pointer-events: auto;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	border: 1px solid rgba(255,255,255,.2);
	background: rgba(8,16,30,.55);
	color: #fff;
	backdrop-filter: blur(4px);
}

.nsvs-dpad > button,
.nsvs-dpad div button {
	width: 54px;
	height: 48px;
	border-radius: 12px;
	font-size: 18px;
}

.nsvs-dpad > button {
	display: block;
	margin: 0 auto 5px;
}

.nsvs-dpad div {
	display: flex;
	gap: 5px;
}

.nsvs-actions {
	display: flex;
	gap: 8px;
	align-items: end;
}

.nsvs-actions button {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	font-weight: 800;
	font-size: 12px;
}

.nsvs-actions .nsvs-fire {
	transform: translateY(-18px);
}

@media (max-width: 782px), (hover: none) and (pointer: coarse) {
	.nsvs-mobile-controls {
		display: flex;
	}
	.nsvs-help {
		display: none;
	}
	.nsvs-toolbar {
		font-size: 13px;
	}
}
