Hamilton goalkeeper Tomas Cerny puts his team's recent improvement down to the players' enjoyment of the game.
The Scottish Premier League basement side have made up nine points on St Mirren since just before the league split as they bid to avoid relegation.
They are now only three points behind the Buddies with two matches to play.
Cerny said: "I think it got to the point where we just thought, 'OK, we've got six games to go, let's go and enjoy the football and enjoy every game'."
Accies have won three and drawn one of their last four matches, and secured their first home win of the SPL campaign, against Hibernian on Saturday.
Billy Reid's team travel to Perth to play St Johnstone on Tuesday then finish their campaign at home to Inverness Caledonian Thistle on Saturday.
Reid has repeatedly stressed the importance of the return to fitness of his captain, the midfielder Alex Neil, but Cerny prefers to point to an attitudinal change as the key to the turnaround in results.
The Czech keeper said: "It has worked really well for us so I would like to take the same approach into the next two games - just enjoy the football and try to get good results.
"We now know we are able to win, having got 10 points from the last four, so going into the next game it gives you a bit of confidence that you can win another. So it might be important.
"There is belief we can stay up, I think there always has been.
"If we stay up it's going to be a bit of a miracle. We have to try to win both games but it's up to St Mirren."
Accies' run of good form has coincided with a wretched spell for St Mirren, who have won just one point from a possible 15.
"I can imagine it must be difficult because at some point they must have thought they were safe and could enjoy the rest of the season but our recent run has put them under pressure again," said the 26-year-old.
"We just need to keep the same approach: go to the next game, try to enjoy it as we did in recent games."
Hamilton will realistically have to better St Mirren's result at Aberdeen as they trail the Paisley side by eight in the goal difference stakes.
St Mirren finish their season with the visit of St Johnstone on Saturday.
Cerny could earn his first full cap in the summer after being named in a provisional squad for the Czech Republic's Kirin Cup campaign against Japan and Peru next month.
"I'm very happy to be recognised even though the season hasn't been the best," he said the 26-year-old.