/* Ticker-band — Home page (groen), Karaoke page (roze). */

/* The band is 80px wider than the page; clip it sideways here (not only on body), or mobile browsers
   widen the viewport and the page scrolls horizontally. Vertical overflow stays visible for the tilt. */
.kantan-ticker-wrap {
	overflow-x: clip;
}

.kantan-ticker {
	--kantan-ticker-rotate: -1.5deg;
	--kantan-ticker-duration: 40s;
	display: flex;
	justify-content: flex-start; /* first word at the left edge, the repeat runs off the right — like the design */
	margin-inline: -40px;
	overflow: hidden;
	transform: rotate(var(--kantan-ticker-rotate));
	white-space: nowrap;
}

.kantan-ticker--groen {
	--kantan-ticker-gap: 28px;
	--kantan-ticker-sep: var(--kantan-pink);
	padding-block: 18px;
	background: var(--kantan-green);
	color: var(--kantan-rice);
	font-family: var(--kantan-font-heading);
	font-size: 26px;
	font-weight: 900;
	line-height: 1.3;
}

.kantan-ticker--roze {
	--kantan-ticker-gap: 30px;
	--kantan-ticker-sep: currentColor;
	padding-block: 20px;
	background: var(--kantan-pink);
	color: var(--kantan-night);
	font-family: var(--kantan-font-display);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: uppercase;
}

.kantan-ticker__track,
.kantan-ticker__group {
	display: flex;
	flex: none;
	gap: var(--kantan-ticker-gap);
}

.kantan-ticker__sep {
	color: var(--kantan-ticker-sep);
}

.kantan-ticker--animated .kantan-ticker__track {
	animation: kantan-ticker var(--kantan-ticker-duration) linear infinite;
}

/* Hold still while someone is reading it. */
.kantan-ticker--animated:hover .kantan-ticker__track {
	animation-play-state: paused;
}

@keyframes kantan-ticker {
	to {
		transform: translateX(calc(-50% - var(--kantan-ticker-gap) / 2));
	}
}

@media (max-width: 767px) {
	.kantan-ticker--groen {
		font-size: 20px;
	}

	.kantan-ticker--roze {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kantan-ticker--animated .kantan-ticker__track {
		animation: none;
	}
}
