/* Public-site Christmas decorations. Loaded only while the setting is on. */
.ox-xm {
	position: fixed;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.ox-xm::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 28%, rgba(186, 230, 253, .22) 0%, rgba(15, 23, 42, .22) 52%, rgba(8, 15, 32, .42) 100%);
	box-shadow: inset 0 0 140px rgba(56, 189, 248, .16);
}

body.ox-christmas .ui.container,
body.ox-christmas .ox-ft {
	position: relative;
	z-index: 2;
}

body.ox-christmas .ui.stackable.container {
	z-index: 30;
}

.ox-xm-svg {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.ox-xm-star {
	position: absolute;
	top: 148px;
	right: 18px;
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 0 10px rgba(251, 191, 36, .8));
	animation: ox-xm-bob 5s ease-in-out infinite;
}

.ox-xm-flake {
	position: absolute;
	top: -40px;
	width: 22px;
	height: 22px;
	filter: drop-shadow(0 2px 2px rgba(15, 23, 42, .25));
	animation: ox-xm-fall linear infinite;
}

.ox-xm-flake-1 { left: 3%; animation-duration: 14s; animation-delay: -2s; }
.ox-xm-flake-2 { left: 8%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: -9s; }
.ox-xm-flake-3 { left: 92%; animation-duration: 16s; animation-delay: -5s; }
.ox-xm-flake-4 { left: 97%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -11s; }
.ox-xm-flake-5 { left: 5%; width: 12px; height: 12px; animation-duration: 20s; animation-delay: -14s; }
.ox-xm-flake-6 { left: 94%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: -7s; }

.ox-xm-bauble {
	position: absolute;
	width: 28px;
	height: 36px;
	filter: drop-shadow(0 6px 6px rgba(15, 23, 42, .28));
	animation: ox-xm-swing 3.4s ease-in-out infinite;
	transform-origin: top center;
}

.ox-xm-bauble-left { left: 18px; top: 32%; }
.ox-xm-bauble-right { right: 22px; top: 46%; animation-delay: -1.4s; }

.ox-xm-float {
	position: absolute;
	min-width: 0;
	filter: drop-shadow(0 14px 16px rgba(15, 23, 42, .28));
}

.ox-xm-float-flake {
	width: 130px;
	height: 130px;
	opacity: .85;
	animation: ox-xm-drift 16s ease-in-out infinite;
}

.ox-xm-float-flake-a { left: 1%; top: 16%; }
.ox-xm-float-flake-b { right: 1%; top: 42%; width: 96px; height: 96px; animation-duration: 19s; animation-delay: -7s; }

.ox-xm-float-tree {
	width: 120px;
	height: 150px;
	animation: ox-xm-drift 18s ease-in-out infinite;
}

.ox-xm-float-tree-a { left: 0; bottom: 8%; animation-delay: -3s; }
.ox-xm-float-tree-b { right: 0; bottom: 16%; width: 96px; height: 120px; animation-delay: -9s; }

.ox-xm-float-gift {
	width: 90px;
	height: 84px;
	animation: ox-xm-drift 13s ease-in-out infinite;
}

.ox-xm-float-gift-a { left: 6%; top: 58%; }
.ox-xm-float-gift-b { right: 7%; top: 22%; width: 72px; height: 68px; animation-delay: -5s; }

.ox-xm-float-bauble {
	width: 64px;
	height: 84px;
	animation: ox-xm-swing 6s ease-in-out infinite;
	transform-origin: top center;
}

.ox-xm-float-bauble-a { left: 10%; top: 8%; }
.ox-xm-float-bauble-b { right: 12%; top: 62%; animation-delay: -2.5s; }

.ox-xm-snowman {
	position: absolute;
	bottom: 22px;
	width: 52px;
	height: 86px;
	filter: drop-shadow(0 8px 8px rgba(15, 23, 42, .28));
	animation: ox-xm-bob 4.2s ease-in-out infinite;
}

.ox-xm-snowman-left { left: 16px; }
.ox-xm-snowman-right { right: 18px; bottom: 96px; animation-delay: -1.6s; }

.ox-xm-tree {
	position: absolute;
	bottom: 18px;
	width: 64px;
	height: 80px;
	filter: drop-shadow(0 8px 8px rgba(15, 23, 42, .28));
}

.ox-xm-tree-left { left: 78px; }
.ox-xm-tree-right { right: 82px; bottom: 110px; }

body.ox-christmas .ox-nav { margin-top: 26px; }

.ox-xm-garland {
	position: absolute;
	top: -20px;
	left: 16px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	height: 20px;
	overflow: hidden;
	pointer-events: none;
}

.ox-xm-garland .ox-xm-svg {
	width: 16px;
	height: 18px;
	min-width: 0;
	max-width: 16px;
	max-height: 18px;
	flex: 0 0 16px;
	filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .25));
}

.ox-xm-garland .ox-xm-svg:nth-child(4n) {
	width: 10px;
	height: 18px;
	max-width: 10px;
	max-height: 18px;
	flex-basis: 10px;
}

.ox-xm-ft-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	pointer-events: none;
	background:
		radial-gradient(circle at 8px 5px, #ef4444 2.5px, transparent 3px) 0 0 / 36px 10px repeat-x,
		radial-gradient(circle at 20px 5px, #22c55e 2.5px, transparent 3px) 0 0 / 36px 10px repeat-x,
		radial-gradient(circle at 32px 5px, #fbbf24 2.5px, transparent 3px) 0 0 / 36px 10px repeat-x;
	filter: drop-shadow(0 0 4px rgba(251, 191, 36, .55));
}

.ox-xm-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border: 1px solid rgba(220, 38, 38, .35);
	border-radius: 999px;
	background: rgba(220, 38, 38, .1);
	color: #fecaca;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2px;
}

.ox-xm-chip .ox-xm-svg {
	width: 14px;
	height: 16px;
	max-width: 14px;
	max-height: 16px;
	flex: 0 0 14px;
}

body.ox-christmas .ox-ft::before {
	background: linear-gradient(90deg, transparent, #dc2626 22%, #16a34a 50%, #fbbf24 78%, transparent);
}

@keyframes ox-xm-fall {
	0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
	12% { opacity: .95; }
	100% { transform: translate3d(18px, 108vh, 0) rotate(180deg); opacity: .45; }
}

@keyframes ox-xm-drift {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
	50% { transform: translate3d(18px, -36px, 0) rotate(6deg); }
}

@keyframes ox-xm-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@keyframes ox-xm-swing {
	0%, 100% { transform: rotate(-8deg); }
	50% { transform: rotate(8deg); }
}

@media (max-width: 1100px) {
	.ox-xm-flake,
	.ox-xm-star,
	.ox-xm-bauble,
	.ox-xm-snowman,
	.ox-xm-tree,
	.ox-xm-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ox-xm-flake,
	.ox-xm-star,
	.ox-xm-bauble,
	.ox-xm-snowman,
	.ox-xm-float { animation: none; }
	.ox-xm-flake { display: none; }
}
