/*
 * Marquee, LED counter, badges, toggle do cursor trail. Tudo aqui respeita
 * prefers-reduced-motion e evita <marquee>/<blink> reais (removidas do HTML).
 */

/* ---------- Marquee ---------- */

.retro-marquee {
	flex: 1 1 100%;
	min-width: 0;
	overflow: hidden;
	background: var(--mariombn-color-bg);
	border-top: 1px dashed var(--mariombn-color-accent-lime);
	padding: 0.4rem 0;
}

.retro-marquee__track {
	display: inline-flex;
	gap: 3rem;
	white-space: nowrap;
	margin: 0;
	font-family: var(--mariombn-font-pixel);
	font-size: 0.65rem;
	color: var(--mariombn-color-accent-lime);
	animation: mariombn-marquee 22s linear infinite;
}

.retro-marquee:hover .retro-marquee__track,
.retro-marquee:focus-within .retro-marquee__track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.retro-marquee {
		overflow: visible;
	}

	.retro-marquee__track {
		display: block;
		animation: none;
		transform: none;
		white-space: normal;
	}

	/* A 2ª cópia só existe pro loop visual do marquee — sem animação, é
	   texto duplicado à toa (e a original já não tem aria-hidden). */
	.retro-marquee__track span[aria-hidden='true'] {
		display: none;
	}
}

@keyframes mariombn-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ---------- Contador de visitas (display LED) ---------- */

.visit-counter .led-display {
	margin: 0;
	background: #000;
	border: 2px solid #1a0530;
	padding: 0.5rem 0.75rem;
	font-family: var(--mariombn-font-mono);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--mariombn-color-accent-lime);
	text-shadow: 0 0 6px var(--mariombn-color-accent-lime), 0 0 12px rgba(232, 255, 47, 0.5);
	text-align: center;
}

/* ---------- Badge "best viewed in" + toggle do cursor trail ---------- */

.badge-best-viewed__text {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
}

.cursor-trail-toggle {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	cursor: pointer;
}

/* ---------- Rastro do cursor (opcional, desktop-only) ---------- */

.mariombn-cursor-dot {
	position: fixed;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: var(--mariombn-color-accent-cyan);
	box-shadow: 0 0 6px var(--mariombn-color-accent-magenta);
	pointer-events: none;
	z-index: 9999;
	animation: mariombn-cursor-fade 0.5s ease-out forwards;
}

@keyframes mariombn-cursor-fade {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.3);
	}
}

/* ---------- Under construction (404) ---------- */

.under-construction-badge {
	margin: 0 auto;
}
