/* Approved scenery and independent character masters; never stretch the artwork. */
body.dmw-site-landscape::before,
body.dmw-site-landscape.dmw-home-design::before {
	background-image: linear-gradient(#a9d9ee, #e4edce);
	background-size: cover;
	background-position: center;
}
.dmw-landscape-partners { display: none; }
.dmw-village-scene { display: none; pointer-events: none; }
body.dmw-site-landscape .dmw-village-scene {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 0;
}
.dmw-village-group {
	visibility: hidden;
	position: absolute;
	bottom: 3vh;
	width: calc((100vw - min(68vw, 1180px)) / 2 - 20px);
	height: clamp(340px, 40vh, 540px);
	container-type: inline-size;
}
.dmw-village-ready .dmw-village-group { visibility: visible; }
.dmw-village-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dmw-village-strip-scenery { display: none; }
.dmw-village-backdrop img, .dmw-village-strip-scenery img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.dmw-village-backdrop, .dmw-village-strip-scenery, .dmw-village-group {
	opacity: 1; transition: opacity 180ms ease-out;
}
.dmw-scene-loading .dmw-village-backdrop,
.dmw-scene-loading .dmw-village-strip-scenery,
.dmw-village-group { opacity: 0; }
.dmw-village-ready .dmw-village-group { opacity: 1; }
.dmw-village-character[data-image-unavailable] { visibility: hidden; }
.dmw-scene-seen .dmw-village-backdrop,
.dmw-scene-seen .dmw-village-strip-scenery,
.dmw-scene-seen .dmw-village-group { transition: none; }
@media (prefers-reduced-motion: reduce) {
	.dmw-village-backdrop, .dmw-village-strip-scenery, .dmw-village-group { transition: none; }
}
.dmw-village-group--left { left: 8px; }
.dmw-village-group--right { right: 8px; }
.dmw-village-character { position: absolute; isolation: isolate; }
.dmw-village-character img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	/* Keep the image on the ordinary paint path; no GPU colour filter. */
}
.dmw-village-elecmon {
	--character-mask: url("village-20261125/elecmon.webp");
	left: 12%; bottom: 44%; width: clamp(100px, 30cqw, 210px);
}
.dmw-village-koromon {
	--character-mask: url("village-20261125/koromon.webp");
	left: 4%; bottom: 3%; width: clamp(80px, 24cqw, 150px);
}
.dmw-village-patamon {
	--character-mask: url("village-20261125/patamon.webp");
	right: 4%; bottom: 16%; width: clamp(85px, 24cqw, 160px);
}
.dmw-village-agumon {
	--character-mask: url("village-20261125/agumon.webp");
	left: 7%; bottom: 19%; width: clamp(110px, 32cqw, 200px);
}
.dmw-village-tanemon {
	--character-mask: url("village-20261125/tanemon.webp");
	right: 4%; bottom: 53%; width: clamp(65px, 18cqw, 110px);
}
.dmw-village-tsunomon {
	--character-mask: url("village-20261125/tsunomon.webp");
	right: 6%; bottom: 7%; width: clamp(70px, 20cqw, 125px);
}
/* Small contact shadows meet feet; broad shadows join them to the floor. */
.dmw-ground-shadow, .dmw-contact-shadow {
	position: absolute;
	display: block;
	border-radius: 50%;
	background: #39461f;
	pointer-events: none;
}
.dmw-ground-shadow {
	left: 5%; top: 90%; width: 90%; height: 9%;
	opacity: .20; filter: blur(5px);
}
.dmw-contact-shadow {
	left: 12%; top: 94%; width: 35%; height: 3%;
	opacity: .6; filter: blur(1.5px);
}
.dmw-contact-shadow--two { left: 58%; top: 97%; }
.dmw-village-agumon .dmw-contact-shadow--one { top: 88%; }
.dmw-village-elecmon .dmw-ground-shadow { top: 77%; height: 14%; }
.dmw-village-elecmon .dmw-contact-shadow--one { left: 4%; top: 72%; }
.dmw-village-elecmon .dmw-contact-shadow--two { left: 42%; top: 96%; }
.dmw-village-koromon .dmw-contact-shadow,
.dmw-village-tsunomon .dmw-contact-shadow { left: 23%; top: 97%; width: 54%; }
.dmw-village-patamon .dmw-contact-shadow,
.dmw-village-koromon .dmw-contact-shadow--two,
.dmw-village-tsunomon .dmw-contact-shadow--two { display: none; }
.dmw-village-patamon .dmw-ground-shadow { top: 106%; width: 76%; left: 12%; }
.dmw-floor-bounce { display: none; }
/* Avoid masked blend layers: they can suppress image painting while leaving shadows visible. */
/* Laptop characters stay beside the content, never above it. */
@media (min-width: 1200px) and (max-width: 1599px) {
	.dmw-village-group { height: 360px; bottom: 16px; }
	.dmw-village-elecmon { left: 25%; bottom: 45%; }
	.dmw-village-patamon { right: 0; bottom: 7%; }
	.dmw-village-agumon { left: 0; bottom: 20%; }
	.dmw-village-tanemon { right: 0; bottom: 65%; }
}
/* Compact screens reserve a scene strip in normal document flow. */
@media (max-width: 1199px) {
	.dmw-village-strip-scenery { display: block; position: absolute; inset: 0; }
	body.dmw-home-design .main .container > nav::after { display: none; }
	body.dmw-site-landscape .dmw-village-scene {
		position: relative;
		inset: auto;
		z-index: 0;
		width: 100%;
		height: clamp(205px, 38vw, 340px);
		margin: 0 0 24px;
		overflow: hidden;
		border-radius: 12px;
		background: #d4e5c4;
	}
	.dmw-village-group { top: 0; bottom: 0; height: 100%; width: 48%; }
	.dmw-village-group--left { left: 1%; }
	.dmw-village-group--right { right: 1%; }
	.dmw-village-elecmon { left: 12%; bottom: 23%; width: 20cqw; }
	.dmw-village-koromon { left: 6%; bottom: 6%; width: 15cqw; }
	.dmw-village-patamon { right: 8%; bottom: 9%; width: 18cqw; }
	.dmw-village-agumon { left: 10%; bottom: 12%; width: 22cqw; }
	.dmw-village-tanemon { right: 25%; bottom: 22%; width: 14cqw; }
	.dmw-village-tsunomon { right: 5%; bottom: 4%; width: 14cqw; }
}

@media (min-width: 1200px) and (max-width: 1299px) {
	.dmw-village-agumon { width: 98px; }
	.dmw-village-tsunomon { right: 0; }
}

/* Gather phone characters on the central ground, with space for their larger silhouettes. */
@media (max-width: 599px) {
	.dmw-village-elecmon { left: 45%; bottom: 26%; }
	.dmw-village-koromon { left: 40%; }
	.dmw-village-patamon { right: 0; }
	.dmw-village-agumon { left: 4%; }
	.dmw-village-tanemon { right: 55%; bottom: 23%; }
	.dmw-village-tsunomon { right: 35%; }
}

/* Tablet characters should read as inhabitants, not oversized foreground mascots. */
@media (min-width: 600px) and (max-width: 1199px) {
	/* Keep a staggered group on the open ground, clear of both buildings. */
	.dmw-village-elecmon { left: 60%; bottom: 18%; width: 14cqw; }
	.dmw-village-koromon { left: 55%; width: 11cqw; }
	.dmw-village-patamon { right: 0; width: 12cqw; }
	.dmw-village-agumon { left: 4%; width: 15cqw; }
	.dmw-village-tanemon { right: 66%; bottom: 17%; width: 10cqw; }
	.dmw-village-tsunomon { right: 52%; width: 10cqw; }
}
