.mmh-empty {
	background: #fff7d7;
	border: 2px solid #e5b84c;
	border-radius: 14px;
	color: #593018;
	margin: 24px auto;
	max-width: 760px;
	padding: 22px;
	text-align: center;
}

.mmh-toy {
	box-sizing: border-box;
	background: linear-gradient(180deg, #75c957 0%, #4f9b3d 100%);
	border: 4px solid #6b3b1d;
	border-radius: 28px;
	box-shadow: 0 18px 48px rgba(48, 43, 19, 0.28);
	color: #45230f;
	contain: content;
	font-family: Arial, Helvetica, sans-serif;
	margin: 12px auto;
	max-width: min(1180px, var(--mmh-fit-width, 1180px));
	overflow: hidden;
	position: relative;
	width: 100%;
}

.mmh-toy *,
.mmh-toy *::before,
.mmh-toy *::after {
	box-sizing: border-box;
}

.mmh-toy [hidden] {
	display: none !important;
}

.mmh-toy .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mmh-scene {
	aspect-ratio: 1448 / 1086;
	background: #2e7136;
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.mmh-scene-art {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: fill;
	pointer-events: none;
	position: absolute;
	user-select: none;
	width: 100%;
	z-index: 1;
}

.mmh-stage {
	align-items: stretch;
	background: #071c4d;
	border: 0;
	border-radius: 50% 50% 3% 3% / 16% 16% 3% 3%;
	display: flex;
	height: 13.45%;
	justify-content: stretch;
	left: 43.78%;
	overflow: hidden;
	position: absolute;
	top: 22.2%;
	width: 13%;
	z-index: 4;
}

.mmh-toy[data-mmh-toy] .mmh-scene .mmh-stage > img[data-mmh-stage-cover],
.mmh-toy[data-mmh-toy] .mmh-scene .mmh-stage > video[data-mmh-stage-video] {
	aspect-ratio: auto !important;
	border: 0 !important;
	display: block !important;
	height: 100% !important;
	inset: 0;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	min-height: 100% !important;
	min-width: 100% !important;
	object-fit: cover !important;
	object-position: center center;
	padding: 0 !important;
	position: absolute;
	width: 100% !important;
}

.mmh-window-layer {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 5;
}

.mmh-window {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 24%;
	cursor: pointer;
	left: calc(var(--mmh-x) - 1.5%);
	margin: 0;
	padding: 0;
	pointer-events: auto;
	position: absolute;
	top: calc(var(--mmh-y) - 2%);
	width: 11%;
	aspect-ratio: 1;
}

.mmh-window-slot {
	background: #071c4d;
	border-radius: 27% 27% 2% 2% / 14% 14% 2% 2%;
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
	height: var(--mmh-slot-height);
	left: var(--mmh-slot-left);
	overflow: hidden;
	position: absolute;
	top: var(--mmh-slot-top);
	width: var(--mmh-slot-width);
}

.mmh-window img {
	display: block !important;
	height: 100% !important;
	inset: 0;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: cover !important;
	position: absolute;
	width: 100% !important;
}

.mmh-curtains {
	background:
		radial-gradient(circle at 21% 18%, #de5550 0 2%, transparent 2.4%),
		radial-gradient(circle at 79% 18%, #de5550 0 2%, transparent 2.4%);
	display: none;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
}

.mmh-curtains::before,
.mmh-curtains::after {
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 8%, rgba(247, 225, 207, 0.92) 8% 13%),
		linear-gradient(180deg, #fffdf7, #f4dcd0);
	border-bottom: 3px dotted #d44845;
	content: "";
	height: 78%;
	position: absolute;
	top: -7%;
	width: 48%;
}

.mmh-curtains::before {
	clip-path: polygon(0 0, 100% 0, 70% 100%, 0 82%);
	left: -2%;
}

.mmh-curtains::after {
	clip-path: polygon(0 0, 100% 0, 100% 82%, 30% 100%);
	right: -2%;
}

.mmh-window.is-empty .mmh-curtains,
.mmh-stage.is-empty .mmh-curtains {
	display: block;
}

.mmh-curtains-large::before,
.mmh-curtains-large::after {
	height: 86%;
	width: 44%;
}

.mmh-window::after,
.mmh-hotspot::after {
	border: clamp(2px, 0.35vw, 5px) solid #fff3a0;
	border-radius: inherit;
	box-shadow: 0 0 0 3px rgba(181, 45, 35, 0.75), 0 0 18px 7px rgba(255, 237, 112, 0.78);
	content: "";
	inset: 6%;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 160ms ease;
}

.mmh-window:hover::after,
.mmh-window:focus-visible::after,
.mmh-window.is-current::after,
.mmh-window.is-in-train::after,
.mmh-hotspot:hover::after,
.mmh-hotspot:focus-visible::after,
.mmh-hotspot.is-active::after,
.mmh-toy.is-playing .mmh-play::after {
	opacity: 1;
}

.mmh-window.is-in-train::after {
	border-color: #70e8ff;
	box-shadow: 0 0 0 3px rgba(25, 100, 170, 0.8), 0 0 18px 7px rgba(94, 231, 255, 0.8);
}

.mmh-window:focus-visible,
.mmh-hotspot:focus-visible,
.mmh-wagon:focus-visible,
.mmh-help summary:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.mmh-hotspot {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 28%;
	cursor: pointer;
	margin: 0;
	padding: 0;
	position: absolute;
	z-index: 12;
}

.mmh-hotspot:disabled {
	cursor: default;
}

.mmh-hotspot:disabled::after {
	display: none;
}

.mmh-mode-house {
	border-radius: 42%;
	height: 20%;
	left: 13.2%;
	top: 79%;
	width: 13.5%;
}

.mmh-mode-train {
	border-radius: 38%;
	height: 20%;
	left: 78.2%;
	top: 79%;
	width: 17%;
}

/* Keep the original house geometry; overlay only the edited controls on grass. */
.mmh-controls-art {
 display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;
 pointer-events:none;z-index:2;clip-path:inset(84% 27% 0 27%);
}
.mmh-control-panel { display:contents; }
.mmh-control-panel .mmh-hotspot {
 background:transparent !important;border:0 !important;box-shadow:none;
 border-radius:28%;position:absolute;top:92%;width:10.5%;height:14%;
 min-width:44px;min-height:44px;padding:0 !important;margin:0;
 transform:translate(-50%,-50%);z-index:12;
}
.mmh-control-panel .mmh-play { left:35.3%; }
.mmh-control-panel .mmh-volume { left:50%; }
.mmh-control-panel .mmh-shuffle { left:66%; }
.mmh-control-panel svg { display:none; }
/* Two illustrations represent two actions. The opaque pause patch replaces
 * the original triangle completely, including the grass around it. */
.mmh-pause-art {
 display:none;position:absolute;left:27.62431%;top:83.60958%;
 width:14.50276% !important;height:16.39042% !important;max-width:none;
 margin:0;padding:0;object-fit:fill;pointer-events:none;z-index:3;
}
.mmh-toy.is-playing .mmh-pause-art { display:block; }
.mmh-train-mode-art {
 display:block;position:absolute;left:75.96685%;top:77.34807%;
 width:24.03315% !important;height:22.65193% !important;max-width:none;
 margin:0;padding:0;object-fit:fill;pointer-events:none;z-index:3;
}
/* The painted icon already has a gold edge; never draw a displaced hover box. */
.mmh-toy .mmh-play::after { display:none !important; }


.mmh-volume.is-muted::before {
	background: #d72f2f;
	border: 2px solid #fff;
	border-radius: 3px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
	content: "";
	height: 6%;
	left: 14%;
	position: absolute;
	top: 48%;
	transform: rotate(-42deg);
	width: 72%;
}

.mmh-train {
	animation: mmh-train-arrive 750ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
	aspect-ratio: 2137 / 450;
	left: 21%;
	pointer-events: none;
	position: absolute;
	top: 68.2%;
	transform-origin: 50% 100%;
	width: 58%;
	z-index: 10;
}

.mmh-train-art {
	display: block;
	height: 100% !important;
	inset: 0;
	max-width: none !important;
	object-fit: contain;
	pointer-events: none;
	position: absolute;
	width: 100% !important;
	z-index: 0;
}

.mmh-wagons {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.mmh-wagon {
	appearance: none;
	background: #071c4d;
	border: clamp(1px, 0.15vw, 3px) solid #f7c946;
	border-radius: 16% 16% 5% 5% / 18% 18% 5% 5%;
	box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	height: 41.3%;
	left: 37.67%;
	overflow: hidden;
	padding: 0;
	pointer-events: auto;
	position: absolute;
	top: 28.44%;
	width: 10.67%;
}

.mmh-wagon:nth-child(2) { left: 60.08%; }
.mmh-wagon:nth-child(3) { left: 82.83%; }

.mmh-wagon img {
	background: #071c4d;
	border: 0;
	display: block !important;
	height: 100% !important;
	inset: 0;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center;
	position: absolute;
	width: 100% !important;
}

.mmh-wagon > span {
	align-items: center;
	color: #ffe270;
	display: flex;
	font-size: clamp(13px, 1.8vw, 27px);
	inset: 0;
	justify-content: center;
	line-height: 1;
	position: absolute;
}

.mmh-wagon:disabled {
	cursor: default;
	opacity: 1;
}

.mmh-wagon.is-current {
	box-shadow: 0 0 0 clamp(2px, 0.25vw, 4px) #fff5a8, 0 0 18px 7px rgba(99, 226, 255, 0.94);
}

.mmh-toy.has-train-started .mmh-train {
	animation: mmh-train-travel 14s linear infinite;
	animation-delay: -7s;
	animation-play-state: paused;
	will-change: transform;
}

.mmh-toy.has-train-started.is-train-running .mmh-train {
	animation-play-state: running;
}

.mmh-help {
	background:
		radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.18) 0 2%, transparent 2.2%),
		linear-gradient(180deg, #66b34c, #418b37);
	border-top: 3px solid rgba(68, 55, 20, 0.38);
	padding: 10px 60px 14px;
	position: relative;
	text-align: center;
}

.mmh-help summary {
	background: linear-gradient(180deg, #fff5bd, #efb63d);
	border: 3px solid #a22f28;
	border-radius: 999px;
	box-shadow: 0 4px 0 #762718, 0 7px 12px rgba(51, 34, 13, 0.25);
	color: #662019;
	cursor: pointer;
	display: inline-flex;
	font-size: clamp(16px, 2.1vw, 23px);
	font-weight: 800;
	justify-content: center;
	list-style: none;
	min-height: 46px;
	min-width: 170px;
	padding: 9px 24px;
}

.mmh-help summary::-webkit-details-marker {
	display: none;
}

.mmh-help[open] summary {
	box-shadow: 0 2px 0 #762718, 0 4px 8px rgba(51, 34, 13, 0.25);
	transform: translateY(2px);
}

.mmh-help-card {
	background: #fff9dd;
	border: 3px solid #bc3a2e;
	border-radius: 18px;
	box-shadow: 0 9px 24px rgba(49, 36, 12, 0.24);
	font-size: clamp(15px, 1.8vw, 19px);
	margin: 14px auto 0;
	max-width: 820px;
	padding: 17px 22px;
	text-align: left;
}

.mmh-help-card ul {
	margin: 10px 0 0 1.2em;
	padding: 0;
}

.mmh-help-card li + li {
	margin-top: 7px;
}

.mmh-toy audio {
	display: none;
}

@keyframes mmh-train-arrive {
	from { opacity: 0; transform: translateX(28%); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes mmh-train-travel {
	from { transform: translate3d(142%, 0, 0); }
	to { transform: translate3d(-142%, 0, 0); }
}

@media (max-width: 640px) {
	.mmh-toy {
		border-width: 2px;
		border-radius: 18px;
		margin: 12px auto;
	}

	.mmh-stage {
		border-radius: 50% 50% 3% 3% / 16% 16% 3% 3%;
	}

	.mmh-window::after,
	.mmh-hotspot::after {
		box-shadow: 0 0 0 1px rgba(181, 45, 35, 0.8), 0 0 8px 3px rgba(255, 237, 112, 0.78);
		inset: 2%;
	}

	.mmh-train {
		left: 15%;
		top: 65%;
		width: 70%;
	}

	.mmh-help {
		padding: 10px 54px 14px;
	}
	.mmh-help summary {
		min-width: 140px;
		padding: 9px 14px;
	}

	.mmh-help-card {
		padding: 14px 15px;
	}
}

/* The complete scene and its controls fit the available viewport height. */
.mmh-footer { position: relative; }
.mmh-toy .mmh-expand {
	appearance: none;
	align-items: center;
	background: #fff5bd;
	border: 2px solid #a22f28;
	border-radius: 12px;
	top: 12px;
	color: #662019;
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	margin: 0;
	padding: 9px;
	position: absolute;
	right: 10px;
	width: 44px;
	z-index: 14;
}
.mmh-expand svg { display: block; height: 100%; width: 100%; }
.mmh-expand:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.mmh-expanded-open { overflow: hidden; }
.mmh-expanded-backdrop { background: #f0d3a7; inset: 0; position: fixed; z-index: 999998; }
.mmh-toy.is-expanded {
	contain: none;
	left: 50%;
	margin: 0;
	max-height: calc(100dvh - 24px);
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 24px);
	z-index: 999999;
	overscroll-behavior: contain;
	overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
	.mmh-train,
	.mmh-toy.has-train-started .mmh-train {
		animation: none;
	}

	.mmh-window::after,
	.mmh-hotspot::after {
		transition: none;
	}
}
