The electron, positron, and photon acceleration in the first cycle of a laser-driven wakefield is investigated. Separatrices between different types of the particle motion (trapped, reflected by the wakefield and ponderomotive potential, and transient) are demonstrated. The ponderomotive acceleration of electrons can be largely compensated by the wakefield action, in contrast to positrons and positively charged mesons. The electron bunch energy spectrum is analyzed. The maximum upshift of an electromagnetic wave frequency during reflection from the wakefield is obtained.