.mapcore-treasure-hunt {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.mapcore-treasure-hunt__progress {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 0.25rem;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 15%);
}

@media (min-width: 600px) {
	.mapcore-map-layout__canvas:has(> .mapcore-buildings-directory.is-open)
		.mapcore-treasure-hunt__progress {
		left: calc(min(340px, calc(100% - 48px)) + 0.75rem);
	}
}

@media (max-width: 599.98px) {
	.mapcore-map-layout__canvas:has(> .mapcore-buildings-directory.is-open)
		.mapcore-treasure-hunt__progress {
		visibility: hidden;
	}
}

.mapcore-treasure-hunt__completion {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgb(0 0 0 / 45%);
	pointer-events: auto;
}

.mapcore-treasure-hunt__completion-card {
	width: min(28rem, 100%);
	padding: 1.5rem;
	border-radius: 0.25rem;
	background: #fff;
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 25%);
	color: #212529;
	text-align: center;
}

.mapcore-treasure-hunt__found {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.75rem;
	padding: 0.5rem 0.625rem;
	border-radius: 0.25rem;
	background: #d1e7dd;
	color: #0a3622;
}

.mapcore-treasure-hunt__action {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border-radius: 0.25rem;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
}

.mapcore-treasure-hunt-marker--found {
	filter: saturate(0.75);
}

.mapcore-treasure-hunt-marker__check {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 4;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: #198754;
	box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 25%);
	color: #fff;
	padding: 0.2rem;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.place-map-anchor[data-marker-shape="pin"] .mapcore-treasure-hunt-marker__check {
	top: 15px;
	left: 15px;
}

.mapcore-treasure-hunt-building-check {
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #198754;
	box-shadow: 0 0.125rem 0.375rem rgb(0 0 0 / 35%);
	color: #fff;
	pointer-events: none;
}

.mapcore-treasure-hunt-building-check__icon {
	width: 1.25rem;
	height: 1.25rem;
}
