Quantum potts gauge-matter systems at finite temperature