A teacher whose £12m winning Lotto ticket was mistakenly thrown away by a shop has secured the jackpot after an investigation lasting almost six months, supported by evidence of her longstanding playing habits.

Kath Main, 46, from Abercynon in Rhondda Cynon Taf, was confirmed as the rightful winner on Friday evening after a 180-day claim period allowed time for anyone else to come forward.

Her ticket for the 6 June draw matched all six numbers she had played for 20 years: 08, 10, 26, 30, 35 and 42. But it was wrongly judged to be a losing ticket when checked in a shop and was discarded before she could claim.

Main initially believed she had won nothing. A National Lottery publicity campaign about an unclaimed £12m prize in the area prompted her to realise it could be hers and contact operator Allwyn.

The investigation examined her National Lottery FastPay card, regular playing habits, where she bought the ticket and her purchasing history. Her mother Fiona, who runs a community cafe and had first checked the ticket, helped gather information supporting the claim.

The National Lottery said claims involving lost, stolen or destroyed tickets could be investigated in exceptional circumstances. Main’s case therefore depended on reconstructing evidence of her purchase, followed by the wait for the claim period to expire.

“It has been a long six months but hearing the words I am now a winner is extraordinary,” she said.

Main has spent 21 years teaching pupils with additional needs. She now plans to leave her job to concentrate on her family and ambitions she has long wanted to fulfil.

Those include a Caribbean cruise with her husband Marcus and their two teenage sons, and watching the British and Irish Lions play in New Zealand in 2029. She also wants to support her local rugby club, where she plays a significant role, and “make rugby accessible to everyone”.

Fiona described the process as an emotional journey and said the win would make a difference to the whole family. Allwyn’s senior winners’ adviser Andy Carter said his team had supported Main throughout the six-month process.

Her most immediate target is a new home before Christmas. One purchase has already made that deadline rather more pressing.

“I have to be in, I've bought a 10ft Christmas tree and it won't fit in my current house! Also my mum has always wanted a light up reindeer for the garden, so we've got her a herd,” she said.