The beam obeys real optics — it reflects off mirrors and refracts through glass by Snell’s law, with total internal reflection past the critical angle. A level is solved when the traced beam actually touches the wick; the same engine is checked headless in lens-verify.mjs.