:root {
	--bg-default:${rootCss.bgColor};
	--bg-ordinal:${rootCss.ordinalColor};
	--rendering:${rootCss.imageRendering};
	--active:${rootCss.ordinalColor};
	--coffin-shadow:${rootCss.coffinShadow};
	--translate:${rootCss.translate};
	--cursor: default;
	--perspective: ${$w.innerWidth / 2}px;
	--min-width: ${rootCss.minWidth}px;
	--min-height: ${rootCss.minHeight}px;
}

body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	margin: 0;
	padding: 0;
	background-color: #000;
	display: flex;
	justify-content: center;
	align-items: center;
	perspective: var(--perspective);
	perspective-origin: 50%;
	position: relative;
	container-type: size;
	container-name: wampire
}

::selection {
	color: unset;
	background: 0
}

::-moz-selection {
	color: unset;
	background: 0
}

.revealed,
.unrevealed {
	cursor: var(--cursor);
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background: var(--bg-default);
	transition: all 500ms ease-in-out;
	transform-style: preserve-3d;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	position: absolute;
	z-index: 10
}

#wampire {
	pointer-events: none;
	height: 100%;
	width: 100%;
	object-fit: contain;
	image-rendering: var(--rendering);
	transform: scale(1.005);
	transition: all 400ms ease-in-out;
	position: relative;
	z-index: 1
}

.unrevealed #wampire {
	filter: var(--moving-filter);
	position: relative;
	z-index: 10;
	animation-name: floating;
	animation-duration: 2s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out
}

#wampire-matrix-bg {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1
}

@keyframes floating {
	0% {
		transform: translate(0, 0);
		filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .5))
	}

	50% {
		transform: translate(0, 5px);
		filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0))
	}

	100% {
		transform: translate(0, -0);
		filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .5))
	}
}

@container (width >= ${rootCss.minWidth}px) and (height >= ${rootCss.minHeight}px) {

	.revealed:active,
	.unrevealed:active {
		background: var(--bg-ordinal);
		transform: rotateY(var(--rotation));
		border-radius: 10px
	}

	.revealed:active #wampire {
		filter: grayscale(1) contrast(1.1)
	}

	.revealed::after,
	.unrevealed::after {
		content: 'wampires.club';
		display: block;
		position: absolute;
		z-index: 10;
		bottom: 10px;
		right: 10px;
		padding: 5px 8px;
		font-size: 10px;
		color: #fff;
		background: rgba(0, 0, 0, .6);
		border-radius: 5px;
		font-family: Verdana, sans-serif;
		opacity: 0;
		transition: opacity 300ms ease-in-out
	}

	.revealed:hover::after,
	.unrevealed:hover::after {
		opacity: .25
	}

	.unrevealed {
		transform: rotateY(var(--rotation))
	}

	.unrevealed #wampire {
		transform: var(--moving-transform)
	}

	.unrevealed:active #wampire {
		transform: scale(1.04) translate(var(--translate));
		filter: grayscale(1) contrast(1.1) drop-shadow(var(--coffin-shadow))
	}

	.unrevealed:hover {
		border-radius: 10px
	}

	.unrevealed:hover #wampire {
		animation-name: unset
	}
}