.mole-game {
	--game-accent: #d97706;
}

.mole-stage {
	display: grid;
	padding: clamp(12px, 2.5vw, 24px);
	place-items: center;
	background:
		radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
		linear-gradient(#8ed36f 0%, #58a84d 55%, #438d3e 100%);
}

.mole-board {
	display: grid;
	width: min(100%, 560px);
	height: min(100%, 420px);
	min-height: 260px;
	grid-template-columns: repeat(3, minmax(70px, 1fr));
	grid-template-rows: repeat(3, minmax(70px, 1fr));
	gap: clamp(7px, 2vw, 17px);
}

.mole-hole {
	position: relative;
	min-width: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-radius: 20px;
	cursor: pointer;
	isolation: isolate;
}

.mole-hole::before {
	position: absolute;
	z-index: 1;
	right: 6%;
	bottom: 8%;
	left: 6%;
	height: 33%;
	content: "";
	background: #362318;
	border: 7px solid #6f4428;
	border-radius: 50%;
	box-shadow: inset 0 8px 10px rgba(0, 0, 0, 0.5), 0 5px 0 rgba(46, 81, 35, 0.22);
}

.mole-hole::after {
	position: absolute;
	z-index: 3;
	right: 4%;
	bottom: 5%;
	left: 4%;
	height: 21%;
	content: "";
	background: #76502f;
	border-radius: 50%;
	box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.12);
}

.mole-hole:focus-visible {
	outline: 3px solid #fff7b2;
	outline-offset: 3px;
}

.mole-face {
	position: absolute;
	z-index: 2;
	bottom: 13%;
	left: 50%;
	display: grid;
	width: min(70%, 88px);
	aspect-ratio: 1;
	place-items: center;
	background: #c98549;
	border: 5px solid #8d552d;
	border-radius: 48% 48% 42% 42%;
	box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.18), 0 9px 15px rgba(42, 31, 20, 0.28);
	font-size: clamp(27px, 7vw, 53px);
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, 88%) scale(0.65);
	transition: transform 150ms ease-out, opacity 100ms ease-out;
}

.mole-hole.is-active .mole-face {
	opacity: 1;
	transform: translate(-50%, -1%) scale(1);
}

.mole-hole.is-golden .mole-face {
	background: #f5c542;
	border-color: #b87909;
	box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.32), 0 0 0 4px rgba(255, 238, 128, 0.35), 0 10px 19px rgba(42, 31, 20, 0.28);
}

.mole-hole.is-bomb .mole-face {
	background: #374151;
	border-color: #111827;
}

.mole-hole.is-hit .mole-face {
	transform: translate(-50%, 22%) scale(0.82);
}

@media (max-width: 480px) {
	.combo-stat {
		display: none;
	}

	.mole-stage {
		padding: 8px;
	}

	.mole-board {
		gap: 5px;
	}

	.mole-hole {
		border-radius: 12px;
	}

	.mole-hole::before {
		border-width: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mole-face {
		transition: none;
	}
}
