.fm-background {
	background-image: url('../images/black-lozenge.png');
	background-repeat: repeat;
	background-size: auto;
	background-color: var(--background-color);
}

.fm-main-container {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.fm-img-container {
	width: 100%;
	cursor: zoom-in;
}

.fm-img-container img {
	display: block;
	width: 100%;
	height: auto;
}

.fm-item-answer {
	cursor: pointer;
}

.fm-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1100;
}

.fm-overlay.is-open {
	display: flex;
}

.fm-overlay__stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
}

.fm-overlay__pan {
	position: relative;
	will-change: transform;
}

.fm-overlay__transform {
	transform-origin: center center;
	will-change: transform;
}

.fm-overlay__img {
	display: block;
	max-width: none;
	max-height: none;
	user-select: none;
	pointer-events: none;
}

.fm-overlay__close {
	position: fixed;
	top: calc(12px + env(safe-area-inset-top));
	right: calc(12px + env(safe-area-inset-right));
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1101;
}

body.fm-overlay-open {
	overflow: hidden;
}

.fm-instructions-container {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 0.75rem;
	color: var(--text-color);
}

.fm-instructions-title {
	font-size: clamp(0.9rem, 4vw, 2.75rem);
	width: 100%;
	text-align: center;
}

.fm-instructions-list {
	padding: 0 1rem;
	margin: 0;
	gap: 0.75rem;
	font-size: clamp(0.8rem, 3.5vw, 2.5rem);
}
.fm-instructions-list li:not(:last-child) {
	margin-bottom: 0.75rem;
}

.fm-questions-container {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 2rem;
}

.fm-questions-title {
	font-size: clamp(0.9rem, 8vw, 2.75rem);
	width: 100%;
	text-align: center;
	color: var(--gr-rr-rules-tab-gold-border);
	text-transform: uppercase;
	font-weight: 600;
}

.fm-questions-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fm-questions-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.fm-qst {
	color: var(--gr-rr-rules-tab-gold-color);
	font-size: clamp(1.25rem, 5.5vw, 2.5rem);
}

.fm-ans {
	font-size: clamp(1rem, 5vw, 2.5rem);
	text-align: end;
	font-style: italic;
}
