/* Gamilu Christmas – the look of the season on the site. Colours come as CSS variables from the season's settings. */
body.gamilu-season-on .gamilu-card { position: relative; }

/* A garland along the top edge of the card */
body.gamilu-season-on .gamilu-card::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	top: -15px;
	height: 30px;
	background-repeat: repeat-x;
	background-size: 30px 30px;
	background-position: center top;
	pointer-events: none;
}

/* A picture on the top right corner, slightly tilted */
body.gamilu-season-on .gamilu-card::after {
	content: "";
	position: absolute;
	right: -16px;
	top: -30px;
	width: 62px;
	height: 62px;
	background: no-repeat center / contain;
	transform: rotate(16deg);
	pointer-events: none;
}

/* Earned badges wear the season's colours */
body.gamilu-season-on .gamilu-badge.is-earned { box-shadow: 3px 3px 0 var(--gs-c1, var(--gamilu-accent)), 0 0 0 3px var(--gs-c2, transparent); }

/* Falling layer */
.gamilu-season-fall {
	position: fixed;
	inset: 0;
	z-index: 99980;
	overflow: hidden;
	pointer-events: none;
}
.gamilu-season-fall i {
	position: absolute;
	top: -60px;
	display: block;
	animation: gamilu-season-fall linear infinite;
	will-change: transform;
}
.gamilu-season-fall b {
	display: block;
	animation: gamilu-season-sway ease-in-out infinite alternate;
	will-change: transform;
}
.gamilu-season-fall svg,
.gamilu-season-fall img { display: block; width: 100%; height: auto; }
@keyframes gamilu-season-fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--r, 180deg)); } }
@keyframes gamilu-season-sway { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .gamilu-season-fall { display: none; } }
@media print { .gamilu-season-fall { display: none; } }
