/* Celebrations Overlay - front end */
#celebrations-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	display: block;
	pointer-events: none !important;
	user-select: none;
	-webkit-user-select: none;
	contain: strict;
}

/* Visitor pause / play control (WCAG 2.2.2: Pause, Stop, Hide) */
.celebrations-toggle {
	position: fixed;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(20, 24, 36, 0.82);
	color: #fff;
	line-height: 1;
	cursor: pointer;
	opacity: 0.78;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: opacity 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.celebrations-toggle:hover,
.celebrations-toggle:focus-visible {
	opacity: 1;
}
.celebrations-toggle:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}
.celebrations-toggle svg {
	display: block;
	pointer-events: none;
}
.celebrations-toggle.is-bottom-left  { left: max(16px, env(safe-area-inset-left));   bottom: max(16px, env(safe-area-inset-bottom)); }
.celebrations-toggle.is-bottom-right { right: max(16px, env(safe-area-inset-right));  bottom: max(16px, env(safe-area-inset-bottom)); }
.celebrations-toggle.is-top-left     { left: max(16px, env(safe-area-inset-left));    top: max(16px, env(safe-area-inset-top)); }
.celebrations-toggle.is-top-right    { right: max(16px, env(safe-area-inset-right));  top: max(16px, env(safe-area-inset-top)); }

/* One-pixel marker printed by the [celebrate] shortcode */
.celebrations-trigger {
	display: block;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.celebrations-toggle { transition: none; }
}

@media print {
	#celebrations-overlay,
	.celebrations-toggle {
		display: none !important;
	}
}
