@keyframes coinBounce { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-100px) scale(0.5); opacity: 0; } } .coin { position: absolute; width: 24px; height: 24px; background-color: gold; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 215, 0, 0.7); animation: coinBounce 0.8s forwards; pointer-events: none; } #character { user-select: none; -webkit-tap-highlight-color: transparent; } #character:active { transform: scale(0.95); }