/**
 * Valve Snowfall overlay.
 *
 * Covers the first screen of the document. Absolute (not fixed), so it
 * scrolls away with the page. Never interactive and never affects layout.
 *
 * Override the stacking level without editing this file, e.g. in
 * Customizer > Additional CSS:  :root { --valve-snowfall-z-index: 5; }
 */
.valve-snowfall {
	position: absolute;
	top: 0;
	left: 0;
	z-index: var(--valve-snowfall-z-index, 50);
	width: 100%;
	height: 100vh;
	overflow: hidden;
	pointer-events: none;
	contain: strict;
}

@supports (height: 100svh) {

	.valve-snowfall {
		height: 100svh;
	}
}

.valve-snowfall canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Pause / play button: small, bottom right of the first screen. */
.valve-snowfall__toggle {
	position: absolute;
	right: var(--valve-snowfall-toggle-offset, 16px);
	bottom: var(--valve-snowfall-toggle-offset, 16px);
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(15, 25, 45, 0.45);
	color: #fff;
	cursor: pointer;
	opacity: 0.7;
	pointer-events: auto;
	transition: opacity 0.2s;
}

.valve-snowfall__toggle:hover,
.valve-snowfall__toggle:focus-visible {
	opacity: 1;
}

.valve-snowfall__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.valve-snowfall__toggle[hidden] {
	display: none;
}

.valve-snowfall__toggle svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.valve-snowfall__toggle[data-paused="true"] .valve-snowfall__icon-pause,
.valve-snowfall__toggle[data-paused="false"] .valve-snowfall__icon-play {
	display: none;
}

.valve-snowfall__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
