What the test answers
Could the soil on this shoe or glove have come from that place? Places put different things on their ground: potash fertiliser adds potassium, vineyard sprays add copper, a limestone quarry adds calcium. A flame test reads some of the metal ions in a soil, so the evidence can be compared with soil from places linked to each suspect. Real soils carry many ions; the game models the main one of each place.
How it works
Each soil is shaken in dilute hydrochloric acid and left to settle, so its metal ions pass into a clear extract as chlorides. A clean nichrome loop is dipped in the extract and held at the edge of a hot blue flame. The heat lifts electrons in the metal atoms to higher energy levels; as they fall back they give out light of fixed wavelengths, so each metal colours the flame its own way. Sodium's light, at about 589 nm, is so bright that it tends to swamp the others.
What you see
Sodium gives a bright golden yellow, potassium lilac, calcium brick or orange red, copper blue-green. Sodium is in almost every soil, so most extracts flare yellow, and that yellow hides the pale lilac of potassium. Cobalt blue glass absorbs the yellow of sodium: through it, potassium shows as a pink-violet. That is why a soil that looks like plain sodium to the bare eye can turn out to carry potassium too.
The classic mistakes
A loop that is not cleaned carries the last sample's ions into the next reading, and into the next extract if you dip it. Clean it in concentrated hydrochloric acid and hold it in the flame until it adds no colour, then test. Reading only with the bare eye misses potassium under sodium. And a matching set of ions says the soils could share a source, not that they do.
Doing it in CLUEPATRA
In the 3D lab the flame test is played at the gas bench on the back wall, beside the fibre test. The soil extracts stand in a row, the evidence and one per suspect's place. You clean the loop, dip it in one extract, hold it in the burner flame and look with the bare eye and through the cobalt glass, save the ions you saw, then clean again before the next one. Last you mark the places whose soil carries the same ions as the evidence. A dirty loop in the evidence extract spoils a sample.