* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

/* Seam clip layer — wraps #pet-container so the multi-monitor seam
   clip-path is applied in screen space. #pet-container itself carries
   transform: scaleX(-1) in left-edge mini mode, which would mirror a
   clip-path applied directly to it; this outer layer is never flipped. */
#pet-clip {
  width: 100%;
  height: 100%;
}

#pet-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: relative;
  overflow: hidden;
}

#pet-container.dragging {
  cursor: grabbing;
}

#clawd {
  width: 190%;
  height: 130%;
  position: absolute;
  left: -45%;
  top: -25%;
  pointer-events: none;
}

#pet-container.mini-left {
  transform: scaleX(-1);
}

/* ── Roam walk animation ──
   When the pet is roaming (free-roam mode), add a subtle horizontal bob
   to simulate walking even if the theme doesn't have a dedicated roam SVG.
   The animation is a gentle sway that makes the idle pose look alive. */
#pet-container.roam-walk #clawd {
  animation: roam-walk-bob 0.4s ease-in-out infinite;
}

@keyframes roam-walk-bob {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}
