/* Shared tap-to-react NPC (assets/npc-react.js). Moves match yard.css; never an upside-down spin. */
.npc-pal { position: relative; padding: 0; transform-origin: 50% 90%; -webkit-user-drag: none; }
.npc-pal.mv-hop { animation: npc-hop .6s cubic-bezier(.3, 1.4, .5, 1); }
.npc-pal.mv-wiggle { animation: npc-wiggle .7s ease-in-out; }
.npc-pal.mv-squish { animation: npc-squish .65s ease-out; }
.npc-pal.mv-flip { animation: npc-flip .8s ease-in-out; }
.npc-pal.mv-shake { animation: npc-shake .5s linear; }
.npc-pal.mv-dance { animation: npc-dance .8s ease-in-out; }
.npc-pal.mv-stretch { animation: npc-stretch .7s ease-out; }
.npc-pal.mv-float { animation: npc-float .9s ease-in-out; }
@keyframes npc-hop { 0% { transform: scale(1.12, .84); } 35% { transform: translateY(-30%) scale(.92, 1.1); } 70% { transform: translateY(0) scale(1.1, .88); } 100% { transform: none; } }
@keyframes npc-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }
@keyframes npc-squish { 0% { transform: scale(1); } 25% { transform: scale(1.25, .7); } 55% { transform: scale(.85, 1.2); } 80% { transform: scale(1.08, .95); } 100% { transform: scale(1); } }
@keyframes npc-flip { 0% { transform: perspective(400px) rotateY(0); } 50% { transform: perspective(400px) rotateY(180deg) translateY(-10%); } 100% { transform: perspective(400px) rotateY(360deg); } }
@keyframes npc-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-9%); } 35% { transform: translateX(8%); } 55% { transform: translateX(-6%); } 75% { transform: translateX(4%); } }
@keyframes npc-dance { 0%, 100% { transform: none; } 20% { transform: translate(-7%, -12%); } 40% { transform: translate(0, 0); } 60% { transform: translate(7%, -12%); } 80% { transform: translate(0, 0); } }
@keyframes npc-stretch { 0% { transform: none; } 30% { transform: scale(.88, 1.28); } 60% { transform: scale(1.08, .9); } 100% { transform: none; } }
@keyframes npc-float { 0% { transform: none; } 40% { transform: translateY(-26%) rotate(-8deg); } 70% { transform: translateY(-20%) rotate(8deg); } 100% { transform: none; } }
.npc-spark { position: absolute; z-index: 5; pointer-events: none; font-size: 18px; color: #ffd54a; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); animation: npc-spark .85s ease-out forwards; }
@keyframes npc-spark { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), -54px) scale(1.2); } }
.npc-say { position: absolute; z-index: 6; background: #1f2547; color: #fff; border: 3px solid #aab8ef; border-radius: 16px; padding: 22px 14px 12px; box-shadow: 0 5px 0 rgba(10, 15, 40, .35); cursor: pointer; text-align: left; }
.npc-say[hidden] { display: none; }
.npc-say .nm { position: absolute; top: -16px; left: 14px; background: #ffd54a; color: #3a2a00; font: 800 14px/28px "Mali"; padding: 0 12px; border-radius: 9px; }
.npc-say p { margin: 0; font: 600 17px/1.6 "Mali"; }
.npc-say .tail { position: absolute; bottom: -10px; left: calc(var(--tail) - 8px); width: 14px; height: 14px; background: #1f2547; border-right: 3px solid #aab8ef; border-bottom: 3px solid #aab8ef; transform: rotate(45deg); }
