/* RNG */

/* =========================
   COIN FLIP
   ========================= */

.coin-preview {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
	margin-top: 20px;
	perspective: 800px;
}

.coin {
	position: relative;
	width: 150px;
	height: 150px;
	transform-style: preserve-3d;
	transform: rotateY(0deg);
}

.coin-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

	.coin-face img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

.coin-front {
	transform: rotateY(0deg);
}

.coin-back {
	transform: rotateY(180deg);
}

.coin.flipping {
	animation: coinFlip 1s ease-in-out forwards;
}

@keyframes coinFlip {
	from {
		transform: rotateY(0deg);
	}

	to {
		transform: rotateY(1800deg);
	}
}
