/* Decorative overlays stay inside their chosen containers without clipping menus. */
.enigmatio-snow-host {
	--enigmatio-snow-ready: 1;
}

.enigmatio-snow-host > canvas.enigmatio-snow-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	box-shadow: none;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

.enigmatio-snow-host > button.enigmatio-snow-toggle {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	inset: auto 16px 16px auto;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 50%;
	background: rgb(17 24 39 / 78%);
	color: #fff;
	box-shadow: 0 1px 8px rgb(0 0 0 / 16%);
	font: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	pointer-events: auto;
}

.enigmatio-snow-host > button.enigmatio-snow-toggle:hover {
	background: rgb(17 24 39 / 95%);
	color: #fff;
}

.enigmatio-snow-host > button.enigmatio-snow-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.enigmatio-snow-host > button.enigmatio-snow-toggle::before,
.enigmatio-snow-host > button.enigmatio-snow-toggle::after {
	content: none;
	display: none;
}

.enigmatio-snow-toggle > svg {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

@media (max-width: 767px) {
	.enigmatio-snow-host > button.enigmatio-snow-toggle {
		right: 12px;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.enigmatio-snow-host > canvas.enigmatio-snow-canvas,
	.enigmatio-snow-host > button.enigmatio-snow-toggle {
		display: none;
	}
}
