/* P6 Scroll Altimeter
 * Colors are driven by CSS custom properties set inline by the plugin,
 * with sensible fallbacks so the file works standalone too.
 */

.altimeter {
	position: fixed;
	left: 22px;
	bottom: 32px;
	z-index: 80;
	font-family: 'IBM Plex Mono', monospace;
	font-size: .66rem;
	letter-spacing: .14em;
	color: var(--p6sa-label, #9AA4AA);
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	transition: opacity .5s;
	pointer-events: none;
}

.altimeter.on {
	opacity: 1;
}

.alt-tape {
	width: 3px;
	height: 64px;
	background: rgba(255, 255, 255, .12);
	position: relative;
	overflow: hidden;
}

.alt-tape i {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	background: var(--p6sa-accent, #50FF00);
	height: 0%;
}

.alt-val {
	color: var(--p6sa-text, #F4F6F5);
}

.alt-val b {
	color: var(--p6sa-accent, #50FF00);
	font-weight: 500;
}

@media (max-width: 760px) {
	.altimeter {
		left: 14px;
		bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.altimeter {
		transition: none;
	}
}
