/**
 * Global Sports – animations (kept set).
 *
 * Loaded only when Theme Settings → General → Animations is on:
 * - App page phone floats gently (and tilts towards the mouse, see motion.js)
 * - "Coming up" chips pulse softly
 * - Header background eases in as the page scrolls (no shadow)
 * Visitors who ask their device for reduced motion get none of it.
 */

/* App page phone: gentle float + tilt towards the mouse. */
.gs-phone--hero {
	animation: gs-float 6s ease-in-out infinite;
	transform: perspective(1000px) rotateX(var(--gs-rx, 0deg)) rotateY(var(--gs-ry, 0deg));
	transition: transform .4s ease-out;
}
@keyframes gs-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -10px; }
}

/* "Coming up" chips: soft pulse. */
.gs-feature__top .gs-chip--amber,
.gs-stop--next .gs-chip,
.gs-tile--next .gs-chip {
	animation: gs-pulse 2.4s ease-out infinite;
}
@keyframes gs-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 176, 32, .55); }
	70%  { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

/* Header: background eases in as the page scrolls (no shadow). */
.gs-header { transition: background-color .3s ease; }
.gs-header.is-scrolled { background: rgba(244, 247, 245, .9); }

@media (prefers-reduced-motion: reduce) {
	.gs-phone--hero,
	.gs-feature__top .gs-chip--amber,
	.gs-stop--next .gs-chip,
	.gs-tile--next .gs-chip { animation: none; }
	.gs-phone--hero { transform: none; transition: none; }
	.gs-header { transition: none; }
}
