Center vortex and confinement in Yang–Mills theory and QCD with anomaly-preserving compactifications | Synapse