On the Subject of The Blue Button

This is a button. It is blue.

A < RA > R
B < Rswap
1 & 2
swap
2 & 3
B > Rswap
3 & 4
submit
Table 1
QP
blue♠♥♣
green♠♣♥
cyan♥♠♣
red♥♣♠
magenta♣♠♥
yellow♣♥♠
Table 2
0 1 2 3
Table 3
R Y L V O B P J Q C F I T H G D A N M U S K E W X Z
Table 4

Stage 1: Note the cyclic sequence C of polyominoes and their colors. Without rotating them, place them on a grid Z, 5 tiles wide and 4 tiles tall, such that same-color polyominoes do not touch orthogonally. The grid wraps around in both directions (it is toroidal). Tap the button.

Stage 2: Find three consecutive polyominoes J, K, L in C whose colors occur consecutively in this cyclic sequence of N colors. Tap the button when Q, the color after the one corresponding to L, is highlighted.

Stage 3: The absolute differences between each equation’s true result and the one shown are N, D, X, M (in that order). Tap the button M times.

Stage 4: Press the button four times, with time intervals R, A, B between presses, to perform an action (table 1). Swap the suits such that diamonds is at position D and the remaining suits are in order P (table 2). Then convert the fillings, left to right, to numbers E, F, G, H (table 3). Submit to proceed to the next stage.

Stage 5: Find S, the Xth tile in K in reading order, within Z, and T, U, V, W, the next 4 tiles going right from S. Move S, T, U and V down by E, F, G and H, respectively. Translate S, T, U, V, W to letters by noting which of their edges are edges of a polyomino (table 4). Use the underlined letter if a tile is part of a pentomino (a 5-tile polyomino). Enter the resulting word by tapping the button when the correct sections of the alphabet and individual letters are highlighted.

Hold the button to return to stage 1 at any time.