.mosaic-impact-wheel {
	--mosaic-max-width: 1200px;
	width: min(100%, var(--mosaic-max-width));
	margin-inline: auto;
}

.mosaic-impact-wheel,
.mosaic-impact-wheel * {
	box-sizing: border-box;
}

.mosaic-impact-wheel__actions--top {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .65rem;
	margin: 0 0 1rem;
}

.mosaic-impact-wheel__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: visible;
}

.mosaic-impact-wheel__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.mosaic-impact-wheel__image--modal {
	width: 100%;
	height: auto;
}

.mosaic-impact-wheel__stage-button {
	position: absolute;
	inset: 0;
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mosaic-impact-wheel--mode-rotate .mosaic-impact-wheel__stage-button {
	cursor: pointer;
}

.mosaic-impact-wheel--mode-zoom .mosaic-impact-wheel__stage-button {
	cursor: zoom-in;
}

.mosaic-impact-wheel__stage-button:focus-visible {
	outline: 4px solid rgba(240, 65, 49, .35);
	outline-offset: 4px;
}

.mosaic-impact-wheel__hint,
.mosaic-impact-wheel__current {
	margin: .85rem 0 0;
	text-align: center;
	font-size: clamp(.9rem, 1.35vw, 1rem);
	line-height: 1.45;
}

.mosaic-impact-wheel__current {
	margin-top: .65rem;
}

.mosaic-impact-wheel__controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .65rem;
	margin-top: 1rem;
}

.mosaic-impact-wheel__action-button,
.mosaic-impact-wheel__control,
.mosaic-impact-wheel__icon-button {
	appearance: none;
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: .62rem .96rem;
	background: #fff;
	color: #8e0b68;
	font: inherit;
	font-size: .92rem;
	font-weight: 650;
	line-height: 1.15;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.mosaic-impact-wheel__action-button:hover,
.mosaic-impact-wheel__control:hover,
.mosaic-impact-wheel__icon-button:hover {
	transform: translateY(-1px);
}

.mosaic-impact-wheel__action-button--accent,
.mosaic-impact-wheel__control[aria-pressed="true"] {
	background: #8e0b68;
	color: #fff;
}

.mosaic-impact-wheel__action-button:focus-visible,
.mosaic-impact-wheel__control:focus-visible,
.mosaic-impact-wheel__icon-button:focus-visible {
	outline: 3px solid rgba(142, 11, 104, .28);
	outline-offset: 3px;
}

.mosaic-impact-wheel__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	padding: clamp(10px, 2.1vw, 24px);
	background: rgba(7, 12, 18, .74);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mosaic-impact-wheel__modal[hidden] {
	display: none;
}

.mosaic-impact-wheel__modal-dialog {
	width: min(96vw, 1380px);
	max-height: calc(100vh - 2 * clamp(10px, 2.1vw, 24px));
	display: flex;
	flex-direction: column;
	gap: .9rem;
	padding: clamp(14px, 1.9vw, 24px);
	background: #ffffff;
	border-radius: 26px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.mosaic-impact-wheel__modal-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.mosaic-impact-wheel__modal-eyebrow {
	margin: 0 0 .15rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8e0b68;
}

.mosaic-impact-wheel__modal-title {
	margin: 0;
	font-size: clamp(1.05rem, 1.55vw, 1.35rem);
	line-height: 1.25;
}

.mosaic-impact-wheel__modal-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .55rem;
}

.mosaic-impact-wheel__icon-button--close {
	background: #f04131;
	border-color: #f04131;
	color: #fff;
}

.mosaic-impact-wheel__icon-button[disabled] {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.mosaic-impact-wheel__modal-viewport {
	position: relative;
	overflow: auto;
	background: #f4f6fb;
	border-radius: 20px;
	padding: clamp(10px, 1.6vw, 18px);
	min-height: min(70vh, 920px);
	touch-action: none;
	cursor: zoom-in;
	scrollbar-width: thin;
}

.mosaic-impact-wheel__modal-viewport.is-zoomed {
	cursor: grab;
}

.mosaic-impact-wheel__modal-viewport.is-dragging {
	cursor: grabbing;
}

.mosaic-impact-wheel__modal-canvas {
	position: relative;
	width: min(100%, 1240px);
	height: auto;
	margin: auto;
	flex: 0 0 auto;
}

.mosaic-impact-wheel__modal-help {
	margin: 0;
	font-size: .94rem;
	line-height: 1.45;
	color: #38404a;
}

.mosaic-impact-wheel__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.mosaic-impact-wheel-lock {
	overflow: hidden;
}

@media (max-width: 900px) {
	.mosaic-impact-wheel__modal-dialog {
		width: min(100vw - 14px, 1380px);
		max-height: calc(100vh - 14px);
		padding: 14px;
		border-radius: 20px;
	}

	.mosaic-impact-wheel__modal-viewport {
		min-height: 58vh;
	}
}

@media (max-width: 780px) {
	.mosaic-impact-wheel__action-button,
	.mosaic-impact-wheel__control,
	.mosaic-impact-wheel__icon-button {
		font-size: .84rem;
		padding: .56rem .84rem;
	}

	.mosaic-impact-wheel__modal-toolbar {
		align-items: stretch;
	}

	.mosaic-impact-wheel__modal-buttons {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.mosaic-impact-wheel__hint,
	.mosaic-impact-wheel__current {
		margin-top: .7rem;
	}

	.mosaic-impact-wheel__actions--top,
	.mosaic-impact-wheel__controls {
		gap: .45rem;
	}

	.mosaic-impact-wheel__modal {
		padding: 8px;
	}

	.mosaic-impact-wheel__modal-dialog {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
		padding: 12px;
		gap: .75rem;
	}

	.mosaic-impact-wheel__modal-help {
		font-size: .88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mosaic-impact-wheel__action-button,
	.mosaic-impact-wheel__control,
	.mosaic-impact-wheel__icon-button {
		transition: none;
	}
}
