/* Public-site Halloween decorations. Loaded only while the setting is on. */
.ox-hw {
	position: fixed;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.ox-hw::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 32%, rgba(28, 10, 46, .34) 0%, rgba(8, 4, 18, .62) 56%, rgba(2, 1, 8, .8) 100%);
	box-shadow: inset 0 0 160px rgba(88, 28, 135, .28);
}

body.ox-halloween .ui.container,
body.ox-halloween .ox-ft {
	position: relative;
	z-index: 2;
}

body.ox-halloween .ui.stackable.container {
	z-index: 30;
}

.ox-hw-svg {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.ox-hw-web {
	position: absolute;
	top: 0;
	left: 0;
	width: 168px;
	height: 168px;
	opacity: .72;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}

.ox-hw-web-right {
	left: auto;
	right: 0;
	width: 140px;
	height: 140px;
	transform: scaleX(-1);
}

.ox-hw-moon {
	position: absolute;
	top: 154px;
	right: 18px;
	width: 58px;
	height: 58px;
	filter: drop-shadow(0 0 10px rgba(251, 191, 36, .75));
	animation: ox-hw-bob 5.2s ease-in-out infinite;
}

.ox-hw-ghost {
	position: absolute;
	width: 52px;
	height: 70px;
	opacity: .94;
	filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35));
	animation: ox-hw-bob 4.2s ease-in-out infinite;
}

.ox-hw-ghost-left { left: 10px; top: 34%; }
.ox-hw-ghost-right { right: 14px; top: 48%; animation-delay: -2s; }

.ox-hw-float {
	position: absolute;
	min-width: 0;
	filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .4));
}

.ox-hw-float-ghost {
	width: 150px;
	height: 200px;
	opacity: .9;
	animation: ox-hw-drift 15s ease-in-out infinite;
}

.ox-hw-float-ghost-a { left: 1%; top: 16%; }
.ox-hw-float-ghost-b { right: 1%; top: 46%; width: 118px; height: 158px; animation-duration: 18s; animation-delay: -7s; }

.ox-hw-float-bat { height: auto; }
.ox-hw-float-bat-a {
	top: 18%;
	width: 190px;
	height: 86px;
	animation: ox-hw-fly 22s linear infinite;
	animation-delay: -8s;
}
.ox-hw-float-bat-b {
	top: 58%;
	width: 150px;
	height: 68px;
	animation: ox-hw-fly-back 27s linear infinite;
	animation-delay: -12s;
}

.ox-hw-float-leaf {
	top: -48px;
	width: 46px;
	height: 46px;
	animation: ox-hw-fall 12s linear infinite;
}
.ox-hw-float-leaf-a { left: 11%; animation-delay: -4s; }
.ox-hw-float-leaf-b { left: 86%; animation-duration: 14s; animation-delay: -9s; }

.ox-hw-float-pumpkin {
	width: 108px;
	height: 122px;
	animation: ox-hw-drift 11s ease-in-out infinite;
}
.ox-hw-float-pumpkin-a { left: 4%; bottom: 18%; }
.ox-hw-float-pumpkin-b { right: 5%; bottom: 28%; animation-delay: -4s; }

.ox-hw-candle {
	position: absolute;
	bottom: 34px;
	width: 28px;
	height: 52px;
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35));
	animation: ox-hw-flicker 1.6s ease-in-out infinite;
}

.ox-hw-candle-left { left: 98px; }
.ox-hw-candle-right { right: 98px; bottom: 108px; animation-delay: -.8s; }

.ox-hw-bat {
	position: absolute;
	width: 68px;
	height: 32px;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
	animation: ox-hw-fly linear infinite;
}

.ox-hw-bat-1 { top: 8%; animation-duration: 23s; animation-delay: -6s; }
.ox-hw-bat-2 { top: 16%; width: 52px; height: 24px; animation-duration: 29s; animation-delay: -16s; }
.ox-hw-bat-3 { top: 26%; width: 44px; height: 20px; animation-duration: 19s; animation-delay: -11s; }
.ox-hw-bat-4 { top: 3%; width: 36px; height: 16px; animation-duration: 26s; animation-delay: -20s; }
.ox-hw-bat-5 { top: 21%; width: 32px; height: 14px; animation-duration: 21s; animation-delay: -9s; }

.ox-hw-leaf {
	position: absolute;
	top: -36px;
	width: 22px;
	height: 22px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
	animation: ox-hw-fall linear infinite;
}

.ox-hw-leaf-1 { left: 2%; animation-duration: 15s; animation-delay: -3s; }
.ox-hw-leaf-2 { left: 6%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: -11s; }
.ox-hw-leaf-3 { left: 93%; animation-duration: 16s; animation-delay: -7s; }
.ox-hw-leaf-4 { left: 97%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: -5s; }
.ox-hw-leaf-5 { left: 4%; width: 14px; height: 14px; animation-duration: 20s; animation-delay: -15s; }
.ox-hw-leaf-6 { left: 95%; width: 20px; height: 20px; animation-duration: 17s; animation-delay: -8s; }

.ox-hw-pumpkin {
	position: absolute;
	bottom: 18px;
	width: 74px;
	height: 84px;
	filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35));
	animation: ox-hw-bob 3.6s ease-in-out infinite;
}

.ox-hw-pumpkin-left { left: 18px; }
.ox-hw-pumpkin-right { right: 16px; bottom: 92px; animation-delay: -1.4s; }

body.ox-halloween .ox-nav { margin-top: 26px; }

.ox-hw-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-hw-garland .ox-hw-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(0, 0, 0, .25));
}

.ox-hw-garland .ox-hw-svg:nth-child(4n + 3) {
	width: 26px;
	height: 12px;
	max-width: 26px;
	max-height: 12px;
	flex-basis: 26px;
}

.ox-hw-ft-lights {
	pointer-events: none;
	background:
		radial-gradient(circle at 8px 5px, #fb923c 2.5px, transparent 3px) 0 0 / 28px 10px repeat-x,
		radial-gradient(circle at 22px 5px, #c084fc 2.5px, transparent 3px) 0 0 / 28px 10px repeat-x;
	filter: drop-shadow(0 0 4px rgba(249, 115, 22, .65));
}

.ox-hw-ft-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
}

.ox-hw-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border: 1px solid rgba(249, 115, 22, .35);
	border-radius: 999px;
	background: rgba(249, 115, 22, .12);
	color: #fdba74;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2px;
}

.ox-hw-chip .ox-hw-svg {
	width: 14px;
	height: auto;
	flex: 0 0 auto;
}

body.ox-halloween .ox-ft::before {
	background: linear-gradient(90deg, transparent, #f97316 22%, #7c3aed 50%, #f97316 78%, transparent);
}

@keyframes ox-hw-fly {
	0% { transform: translate3d(-120px, 0, 0); }
	100% { transform: translate3d(calc(100vw + 120px), 22px, 0); }
}

@keyframes ox-hw-fly-back {
	0% { transform: translate3d(calc(100vw + 80px), 10px, 0) scaleX(-1); }
	100% { transform: translate3d(-160px, -16px, 0) scaleX(-1); }
}

@keyframes ox-hw-drift {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
	50% { transform: translate3d(22px, -48px, 0) rotate(7deg); }
}

@keyframes ox-hw-fall {
	0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
	12% { opacity: .95; }
	100% { transform: translate3d(24px, 108vh, 0) rotate(200deg); opacity: .4; }
}

@keyframes ox-hw-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@keyframes ox-hw-flicker {
	0%, 100% { opacity: 1; transform: scale(1); }
	45% { opacity: .82; transform: scale(.96); }
	70% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 1100px) {
	.ox-hw-bat,
	.ox-hw-leaf,
	.ox-hw-pumpkin,
	.ox-hw-web,
	.ox-hw-ghost,
	.ox-hw-moon,
	.ox-hw-candle,
	.ox-hw-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ox-hw-bat,
	.ox-hw-leaf,
	.ox-hw-pumpkin,
	.ox-hw-ghost,
	.ox-hw-moon,
	.ox-hw-candle,
	.ox-hw-float { animation: none; }
	.ox-hw-leaf { display: none; }
	.ox-hw-bat-1 { left: 4%; top: 12%; }
	.ox-hw-bat-2,
	.ox-hw-bat-3,
	.ox-hw-bat-4,
	.ox-hw-bat-5 { display: none; }
}
