/* Mascot placements (Sabrina, 2026-10-03).
   The page dog is placed by mascot-placements.js on a real edge. It sits
   below the site chrome and menu, never takes pointer events, and peeks in
   once when it scrolls into view. Nothing loops. */
.mbm-dog {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 120px;
  pointer-events: none;
  user-select: none;
}
.mbm-dog img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Top-edge dogs rise out from behind the edge; the part below the edge
     stays clipped until the end, so nothing shows through the section. */
  .mbm-dog--edge-top.is-waiting { opacity: 0; }
  .mbm-dog--edge-top.is-in { animation: mbmDogRise 640ms var(--ease-enter, cubic-bezier(0.22, 1, 0.36, 1)) both; }
  /* Card-edge dogs lean out from behind the card's left edge. */
  .mbm-dog--edge-left.is-waiting { opacity: 0; }
  .mbm-dog--edge-left.is-in { animation: mbmDogLean 640ms var(--ease-enter, cubic-bezier(0.22, 1, 0.36, 1)) both; }
}
/* Job K3 (2026-10-12): the entrance moves with transform, so a position and size set in the editor
   (the individual translate and scale properties) still apply during and after it. */
@keyframes mbmDogRise {
  from { opacity: 0; transform: translateY(28%); clip-path: inset(0 0 calc((1 - var(--mbm-dog-cut, 1) + 0.28) * 100%) 0); }
  30% { opacity: 1; }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes mbmDogLean {
  from { opacity: 0; transform: translateX(24%); clip-path: inset(0 calc((1 - var(--mbm-dog-cut, 1) + 0.24) * 100%) 0 0); }
  30% { opacity: 1; }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

/* ==========================================================================
   Job P (2026-10-12): the new dog poses on rentals (empty results), Info and the
   water slide pages. This file is the placement base above WITHOUT the phone
   footer/reviews block, which belongs only to Cake House, Princess and Service Areas.
   ========================================================================== */
/* Rentals empty results: dog-sniff, 84px (swapped in by mascot-placements.js). */
.plist__empty img { width: 84px; height: auto; }

/* Info page message box: the dog leans in around the right edge of the box (art cut edge on the left, on the box edge). */
.info-page .cform__dog {
  left: 100%;
  right: auto;
  bottom: auto;
  top: 3.6rem;
  width: 100px;
  transform: none;
}
