/* webpet.css - 독립형 웹펫 (그누보드5 뷰스킨용) */
.webpet{position:fixed;left:0;top:0;width:var(--wp-s,64px);height:var(--wp-s,64px);
  z-index:var(--wp-z,9990);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;will-change:transform;animation:wp-in .5s ease-out}
.webpet[data-action="drag"]{cursor:grabbing}
.wp-flip{width:100%;height:100%}
.webpet[data-dir="-1"] .wp-flip{transform:scaleX(-1)}
/* Climb sprites are already oriented for their wall; do not mirror them a second time. */
.webpet[data-action="climb"] .wp-flip{transform:none}
.wp-img{width:100%;height:100%;display:block;pointer-events:none;transform-origin:50% 100%}

.webpet[data-action="walk"] .wp-img{animation:wp-bob .25s ease-in-out infinite alternate}
.webpet[data-action="drag"] .wp-img{animation:wp-wiggle .2s ease-in-out infinite alternate}
.webpet[data-action="hang"] .wp-img{transform-origin:50% 0;animation:wp-swing 1s ease-in-out infinite alternate}
.webpet[data-action="umbrella"] .wp-img{animation:wp-sway 1.2s ease-in-out infinite alternate}
.webpet[data-action="land"] .wp-img{animation:wp-land .25s ease-out}

@keyframes wp-in{from{opacity:0}to{opacity:1}}
@keyframes wp-bob{from{transform:translateY(0)}to{transform:translateY(-2px)}}
@keyframes wp-wiggle{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}
@keyframes wp-swing{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
@keyframes wp-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes wp-land{0%{transform:scale(1.2,.75)}60%{transform:scale(.94,1.08)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.webpet,.wp-img{animation:none!important}}
