.spz-retro-threshold {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: var( --spz-retro-threshold-overlay, rgba( 0, 0, 0, 0.8 ) );
	background-image: var( --spz-retro-threshold-bg, none );
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
}

.spz-retro-threshold.spz-retro-threshold--visible {
	display: flex;
	opacity: 1;
}

.spz-retro-threshold.spz-retro-threshold--leaving {
	opacity: 0;
}

.spz-retro-threshold__inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding: 2.5rem 1.5rem;
	margin: 0 auto;
	text-align: center;
	color: #f5f0e8;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.6 );
}

.spz-retro-threshold__fog {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.spz-retro-threshold__fog-layer {
	position: absolute;
	inset: -5%;
	background-image: var( --spz-retro-fog-url, none );
	background-repeat: repeat;
	mix-blend-mode: screen;
	will-change: background-position;
}

.spz-retro-threshold__fog-layer--1 {
	background-size: 1400px 1400px;
	opacity: 0.35;
	animation: spz-retro-fog-drift-a 120s linear infinite;
}

.spz-retro-threshold__fog-layer--2 {
	background-size: 900px 900px;
	opacity: 0.28;
	animation: spz-retro-fog-drift-b 80s linear infinite;
}

.spz-retro-threshold__fog-layer--3 {
	background-size: 600px 600px;
	opacity: 0.18;
	animation: spz-retro-fog-drift-c 55s linear infinite;
}

@keyframes spz-retro-fog-drift-a {
	from { background-position: 0 0; }
	to   { background-position: 1400px 700px; }
}

@keyframes spz-retro-fog-drift-b {
	from { background-position: 0 0; }
	to   { background-position: -900px 450px; }
}

@keyframes spz-retro-fog-drift-c {
	from { background-position: 0 0; }
	to   { background-position: 600px -600px; }
}

.spz-retro-threshold__title {
	margin: 0 0 1rem;
	font-size: clamp( 1.8rem, 5vw, 3rem );
	letter-spacing: 0.3em;
	font-weight: 600;
	color: #c9a84c;
	text-transform: uppercase;
}

.spz-retro-threshold__subtitle {
	margin: 0 0 2rem;
	font-size: clamp( 1rem, 2.2vw, 1.2rem );
	line-height: 1.6;
	color: #f5f0e8;
}

.spz-retro-threshold__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
}

@media ( min-width: 480px ) {
	.spz-retro-threshold__actions {
		flex-direction: row;
		justify-content: center;
		gap: 1rem;
	}
}

.spz-retro-threshold__enter,
.spz-retro-threshold__exit {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #c9a84c;
	background: transparent;
	color: #c9a84c;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
	font-family: inherit;
	min-width: 180px;
	text-align: center;
}

.spz-retro-threshold__enter:hover,
.spz-retro-threshold__enter:focus {
	background-color: #c9a84c;
	color: #000000;
}

.spz-retro-threshold__exit {
	color: #f5f0e8;
	border-color: #f5f0e8;
}

.spz-retro-threshold__exit:hover,
.spz-retro-threshold__exit:focus {
	background-color: #f5f0e8;
	color: #000000;
}

.spz-retro-threshold--closed .spz-retro-threshold__subtitle {
	color: #d4a5a5;
}

.spz-retro-threshold--closed .spz-retro-threshold__title {
	opacity: 0.75;
}

html.spz-retro-threshold-lock,
body.spz-retro-threshold-lock {
	overflow: hidden !important;
}

.spz-retro-status {
	display: block;
	font-style: italic;
}
.spz-retro-status--open {
	color: #c9a84c;
}
.spz-retro-status--closed {
	color: #a66;
}

@media ( prefers-reduced-motion: reduce ) {
	.spz-retro-threshold {
		transition: none;
	}

	.spz-retro-threshold__fog-layer--1,
	.spz-retro-threshold__fog-layer--2,
	.spz-retro-threshold__fog-layer--3 {
		animation: none;
	}
}
