/*
 * Falling Icons Animation — decorative layer.
 * Loaded only while the feature is ON and matches the chosen Animation Area.
 * Icons are created by assets/js/falling-icons.js; every icon animates with
 * transform + opacity only (GPU friendly) and never receives pointer events.
 */
.gzfc-fi {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	contain: layout paint style;
	z-index: 50; /* default = front layer, see .gzfc-fi--front below */
}

.gzfc-fi--top {
	position: absolute; /* scrolls away with the top of the page */
}

/* FRONT: above the page's content panels (.gzf-content-area etc. use
   z-index 1-5 with opaque backgrounds, which used to hide the icons at the
   old z-index of 0), but below the header search dropdown (60), the category
   menu (9999) and popups (100000). pointer-events:none keeps every click
   going to the page underneath. */
.gzfc-fi--front {
	z-index: 50;
}

/* BEHIND: under the page content (icons only show where nothing opaque covers them). */
.gzfc-fi--behind {
	z-index: -1;
}

.gzfc-fi-i {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	opacity: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
	will-change: transform, opacity;
	animation-name: gzfc-fi-fall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-fill-mode: both;
}

.gzfc-fi.is-paused .gzfc-fi-i {
	animation-play-state: paused;
}

@keyframes gzfc-fi-fall {
	0% {
		opacity: 0;
		transform: translate3d(0, -90px, 0) rotate(var(--r0, 0deg));
	}
	8% {
		opacity: var(--o, 0.85);
	}
	90% {
		opacity: var(--o, 0.85);
	}
	100% {
		opacity: 0;
		transform: translate3d(var(--dx, 0px), var(--fall, 110vh), 0) rotate(var(--r1, 0deg));
	}
}

/* Visitors who asked their system for less motion: handled in
   assets/js/falling-icons.js — by default they get a calmer version (fewer,
   slower icons, no spinning); the Customizer option "Hide icons for visitors
   whose device asks for reduce motion" makes the script skip them entirely. */

@media print {
	.gzfc-fi {
		display: none !important;
	}
}

/* Uploaded icons recolored with a color: the image becomes a mask and the
   chosen color is painted through it (flat silhouette in that color). */
.gzfc-fi-i--mask {
	background-image: none !important;
	-webkit-mask: var(--m) center / contain no-repeat;
	mask: var(--m) center / contain no-repeat;
}
