COLLISION MODEL
Circle vs axis-aligned rect. ex = (w/2+r) − |cx−x|, ey = (h/2+r) − |cy−y|; the smaller overlap is the contact face, so ey < ex → flip dy, otherwise flip dx. Bricks are scanned by row (≤3 candidates) and the closest hit resolves — one per step.