/**
 * Lightweight cyber/HUD atmosphere. CSS-only layers; no raster backdrop,
 * no canvas, no continuous layout-affecting animation.
 */
.nvd-atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	--nvd-grid-line: rgba(97, 232, 91, 0.14);
	--nvd-grid-cyan: rgba(71, 217, 232, 0.12);
}

.nvd-atmosphere__glow,
.nvd-atmosphere__scanlines,
.nvd-atmosphere__grid,
.nvd-atmosphere__particle,
.nvd-atmosphere__bracket {
	position: absolute;
	display: block;
	pointer-events: none;
}

.nvd-atmosphere__glow--green {
	inset: -20% 8% 10% -10%;
	background:
		radial-gradient(46% 44% at 62% 46%, rgba(97, 232, 91, 0.17), transparent 68%),
		radial-gradient(38% 34% at 38% 72%, rgba(97, 232, 91, 0.08), transparent 72%);
}
.nvd-atmosphere__glow--cyan {
	inset: 8% -10% 12% 42%;
	background: radial-gradient(44% 40% at 82% 62%, rgba(71, 217, 232, 0.12), transparent 70%);
}

.nvd-atmosphere__scanlines {
	inset: 0;
	background: repeating-linear-gradient(180deg, rgba(243, 248, 245, 0.035) 0 1px, transparent 1px 5px);
	opacity: 0.55;
	mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* Perspective technical floor grid. */
.nvd-atmosphere__grid {
	left: -25%;
	right: -25%;
	bottom: -34%;
	height: 72%;
	background-image:
		repeating-linear-gradient(90deg, var(--nvd-grid-line) 0 1px, transparent 1px 72px),
		repeating-linear-gradient(0deg, var(--nvd-grid-cyan) 0 1px, transparent 1px 54px);
	transform: perspective(620px) rotateX(68deg) translateY(0);
	transform-origin: center bottom;
	opacity: 0.5;
	mask-image: linear-gradient(180deg, transparent 5%, #000 55%, transparent 100%);
	animation: nvd-grid-drift 24s linear infinite alternate;
}
@keyframes nvd-grid-drift {
	from { transform: perspective(620px) rotateX(68deg) translateY(0); }
	to   { transform: perspective(620px) rotateX(68deg) translateY(38px); }
}

/* Tiny light points, deliberately sparse. */
.nvd-atmosphere__particle {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--color-primary-bright);
	box-shadow: 0 0 10px rgba(120, 255, 113, 0.8);
	opacity: 0.5;
	animation: nvd-particle-pulse 7s ease-in-out infinite;
}
.nvd-atmosphere__particle--a { left: 12%; top: 24%; }
.nvd-atmosphere__particle--b { left: 47%; top: 12%; animation-delay: -2.4s; background: var(--color-secondary); box-shadow: 0 0 10px rgba(71, 217, 232, 0.8); }
.nvd-atmosphere__particle--c { left: 74%; top: 78%; animation-delay: -4.8s; }
@keyframes nvd-particle-pulse { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.7; } }

/* Corner brackets. */
.nvd-atmosphere__bracket {
	width: 22px;
	height: 22px;
	border-color: rgba(99, 238, 111, 0.36);
	border-style: solid;
	border-width: 0;
}
.nvd-atmosphere__bracket--tl { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.nvd-atmosphere__bracket--tr { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.nvd-atmosphere__bracket--bl { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.nvd-atmosphere__bracket--br { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

/* Section variant is quieter. No text, no corner microcopy. */
.nvd-atmosphere--section .nvd-atmosphere__grid { opacity: 0.22; }
.nvd-atmosphere--section .nvd-atmosphere__bracket { display: none; }
.nvd-atmosphere--section .nvd-atmosphere__scanlines { opacity: 0.3; }

@media (prefers-reduced-motion: reduce) {
	.nvd-atmosphere__grid,
	.nvd-atmosphere__particle { animation: none !important; }
}
