/* El Duende mascot: stands left of the WhatsApp button (.ed-wa) and points at it.
   z-index above the button (90) so the hand is in front; below the header (100). */
.ed-mascot {
	--h: clamp(128px, 24vmin, 210px);
	position: fixed; right: 0; bottom: 0; z-index: 91;
	width: calc(var(--h) * 173 / 300); height: var(--h);
	background: url(duende-sprite-3.webp) 0 0 / 900% 900% no-repeat;
	cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
	transform-origin: 50% 8%;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
	will-change: transform;
}
.ed-mascot.is-carried { cursor: grabbing; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, .3)); }
.ed-mascot:focus-visible { outline: 2px solid var(--wp--preset--color--accent-1, #C9A04A); outline-offset: 4px; }
@media (max-width: 360px) { .ed-mascot { display: none; } }

/* He steps aside (script adds .is-aside) while a link or button is under him; "translate" is separate from his inline transform. */
.ed-mascot { transition: translate .45s cubic-bezier(.2, .7, .1, 1), opacity .35s; }
.ed-mascot.is-aside { translate: 90% 0; opacity: 0; pointer-events: none; }
/* The WhatsApp button steps aside the same way (theme style.css draws the button). */
.ed-wa { transition: background .4s, translate .45s cubic-bezier(.2, .7, .1, 1), opacity .35s; }
.ed-wa.is-aside { translate: 160% 0; opacity: 0; pointer-events: none; }
/* Phones: the mascot and the WhatsApp button stay in place; they never step aside. */
@media (max-width: 781px) {
	.ed-mascot.is-aside, .ed-wa.is-aside { translate: none; opacity: 1; pointer-events: auto; }
	.ed-mascot { --h: 98px; } /* smaller, so he covers less of the page */
}
