/* Fallout FX — Apple IIe runner banner (v1.0.3)
 * A self-contained green-phosphor CRT strip. Works in both light and dark modes. */

#fx-runner-banner {
	position: relative;
	height: 190px;
	background: #020603;
	overflow: hidden;
	border-top: 2px solid #123f12;
	border-bottom: 2px solid #123f12;
	line-height: 1;
}

#fx-runner-banner .fx-stage {
	position: absolute;
	inset: 0;
}

#fx-runner-banner .fx-ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	height: 2px;
	background: #1d5c1d;
	box-shadow: 0 0 8px #33ff33;
}

#fx-runner-banner .fx-hud {
	position: absolute;
	top: 8px;
	left: 12px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 13px;
	letter-spacing: 2px;
	color: #33ff33;
	text-shadow: 0 0 6px #33ff33;
	user-select: none;
	white-space: nowrap;
}

#fx-runner-banner .fx-scanlines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.30) 0 2px,
		transparent 2px 4px
	);
	animation: fx-flicker 5s infinite;
}

#fx-runner-banner .fx-vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}

#fx-runner-banner .fx-runner {
	position: absolute;
	left: 0;
	bottom: 0;
	will-change: transform;
}

#fx-runner-banner .fx-sprite {
	background-repeat: no-repeat;
	image-rendering: pixelated;
	animation-name: fx-frames;
	animation-timing-function: steps(6);
	animation-iteration-count: infinite;
}

@keyframes fx-frames {
	from { background-position-x: 0; }
	to { background-position-x: var(--strip-w); }
}

@keyframes fx-flicker {
	0%, 100% { opacity: 1; }
	96% { opacity: 1; }
	97% { opacity: 0.86; }
	98% { opacity: 1; }
}

#fx-runner-banner .fx-bark {
	position: absolute;
	font-family: 'Share Tech Mono', monospace;
	font-size: 15px;
	letter-spacing: 1px;
	color: #8dff8d;
	text-shadow: 0 0 8px #33ff33;
	pointer-events: none;
	user-select: none;
	animation: fx-bark 0.9s ease-out forwards;
	white-space: nowrap;
}

@keyframes fx-bark {
	from { transform: translateY(0); opacity: 1; }
	to { transform: translateY(-48px); opacity: 0; }
}

@media (max-width: 640px) {
	#fx-runner-banner { height: 150px; }
	#fx-runner-banner .fx-ground { bottom: 22px; }
	#fx-runner-banner .fx-hud { font-size: 11px; }
}
