# Hold & Win

> Coins stick where they land and the empty cells respin until the counter runs out or the board fills.

Source: https://pixi-reels.schmooky.dev/mechanics/hold-and-win/

Hold & Win, also sold as Lock & Respin or Hold & Spin, is a feature where
coins land, stick, and refill a respin counter until the board fills or the
respins run out. pixi-reels ships it as a built-in board:

```ts
import { HoldAndWinBuilder } from 'pixi-reels';
```

The demos above each show one technique. This part explains how the board
works as a whole and how a game client drives it.

## How the board is built

A Hold & Win board is a grid of cells that spin independently. The engine
spins in columns, each a `ReelSet`, but the mechanic works in cells. So each
cell is its own 1x1 reel set, and `HoldAndWinBuilder` lays out the grid and
runs the round across them.

The board does not know what a coin is worth. A coin is an opaque record:

```ts
{ cell: { reel, cell }, id: 'coin', data: /* anything you want */ }
```

The `id` picks the registered symbol art. The `data` belongs to you and can
hold values, jackpot tiers, multipliers or collector flags. The board never
reads it. Adders, doublers, collectors and flights to a meter are game logic
you write on top of the board, using these:

| API | What it gives you |
|---|---|
| `board.events` | each step of the round, with the coin payload |
| `board.symbolAt(cell)` | the live symbol instance, so you can call your own symbol's methods |
| `board.cellCenter(cell)` / `board.cellBounds(cell)` | exact pixel geometry for flights and trails |

With that split, a new Hold & Win variant is mostly game code and the board
stays the same.

## The round

The board is a three-state machine. `board.phase` reports where it is:
`'idle'`, `'active'` or `'spinning'`.

1. `enter(seed)` seeds the board with the trigger coins. They lock at once,
   without a spin, and the respin counter arms. The board goes from idle to
   active.
2. `respin(hits)` spins each free cell. The cells named in `hits` land their
   coins and the others land blank. The board goes from active to spinning
   and back. If a coin landed in this wave the counter resets to full. If
   nothing landed it goes down by one.
3. The feature ends when the board fills or the counter reaches zero, and
   the board returns to idle. Then you collect.

### Events in one respin

Events come in a fixed order. Cells land in stagger order, so the landing
and lock events arrive one at a time:

## Driving it from your game client

The board runs the animation of each round. You own the loop and the source
of results, which can be an RGS, a mock server or an RNG. The driver is
short:

```ts
const board = new HoldAndWinBuilder<{ value: number }>()
  .grid(5, 3)
  .cellSize(72, { gap: 4 })
  .symbols((r) => r.register('coin', CoinSymbol, COIN_OPTS))
  .weights({ coin: 1, empty: 4 })   // how often coins flash past during the spin
  .respins(3)
  .ticker(app.ticker)               // required: drives every cell's reel
  .build();

app.stage.addChild(board.container);

// React to the round however your game presents it: HUD, sounds, flights.
board.events.on('coin:locked', ({ coin, locked, capacity }) => {
  hud.total += coin.data?.value ?? 0;     // you own the value; the board does not
  hud.text = `${locked} / ${capacity}`;
});

// 1. trigger
board.enter(await server.triggerCoins());

// 2. the respin loop: one round per iteration, you pace it
while (true) {
  const round = await server.nextRound(board.freeCells);   // your result source
  const result = await board.respin(round.hits);           // the board animates the wave
  if (result.done) break;                                  // full or out of respins
  // anything between rounds (celebrate, delay, play a teaser) happens here
}

// 3. collect: release the coins and fly them wherever you like
for (const coin of board.lockedCoins) flyToMeter(board.cellCenter(coin.cell), coin.data?.value ?? 0);
board.release(board.lockedCoins.map((c) => c.cell));
```

`respin()` resolves only after the whole wave has landed and the counter has
been updated, so the loop reads top to bottom.

For a [skip button](/mechanics/hold-and-win/#hold-and-win-skip), call
`board.skip()`. It slams each cell that is still spinning. The landing, lock
and feature-end events still fire, so the rest of your code does not change.
The quicken form, `board.skip({ mode: 'quicken' })`, lands the cells instead
of cutting them. Each spinning cell drops its minimum spin time, so the wave
lands together, and each cell still spins its symbol in and bounces. Add
`speed: 'turbo'` to land it on turbo, or make quicken the board's default
with `skipMode('quicken')` on the builder.

## Events

Each event carries your `TData` on its coins.

| Event | Payload | Fires when |
|---|---|---|
| `feature:enter` | `{ seed, respins }` | `enter()` seeds the board |
| `respin:start` | `{ round, respinsLeft, spinning }` | a wave begins |
| `cell:landed` | `{ cell, coin }` (`coin: null` on a miss) | each cell settles, in stagger order |
| `coin:locked` | `{ coin, locked, capacity }` | a hit cell locks |
| `cells:activated` | `{ cells, capacity }` | `activate()` woke dormant cells; `capacity` is the new full-board count |
| `speed:changed` | `{ name, previous }` | `setSpeed()` moved every cell to another profile |
| `respins:changed` | `{ value, reason }` | the counter changed (`seed`, `hit-reset` or `miss`) |
| `respin:end` | `{ round, hits, respinsLeft }` | the wave finishes |
| `board:full` | `{ coins }` | the last free cell locks |
| `feature:end` | `{ coins, rounds, full }` | the feature is over and the board is idle |
| `coin:released` | `{ coin, remaining }` | `release()` removed a coin (the collect moment) |
| `feature:reset` | `{ clearedCoins }` | `reset()` hard-cleared the board |
| `feature:skip` | `{ inFlight, mode, speed?, payload? }` | `skip()` freed the in-flight cells, placed (`'slam'`) or landing through their stop (`'quicken'`). `speed` and `payload` are the press's options as given |

`release()` means "collect this coin" and fires `coin:released` once per
coin. `reset()` is a hard clear back to idle and fires a single
`feature:reset`, so a HUD that counts down on collect does not tick on a
reset.

`setSymbolAt(cell, id, data)` rewrites a locked coin in place, for example
a coin becoming MINI and then MAJOR, and keeps the board's ledger correct.
It throws on a free cell. New tracked coins are placed only by `enter` and
`respin`.

## Other builder options

Production boards often need more than the square default. These builder
options cover cell shape, the lock animation and cells that start outside
the feature:

```ts
const board = new HoldAndWinBuilder()
  .grid(5, 3)
  // art is 202x170: a seam between columns, rows touching
  .cellSize({ width: 101, height: 85 }, { columnGap: 6, rowGap: 0 })
  // 'win' (default) plays playWin() on every lock; 'landing' plays the
  // symbol's playLanding() settle instead; 'none' plays nothing
  .lockAnimation('landing')
  // built, drawn as `sealed`, but outside the feature until activate()
  .inactive(row(0).concat(row(4)), 'sealed')
  ...
```

With `'landing'` or `'none'` the celebration is up to you.
`await board.playWin()` pulses each locked coin, and
`board.playWin(cells)` pulses a subset. Call it when the game decides, usually on `board:full` or after
`feature:end`.

Some coins start their own landing beat when they land, such as a Spine coin
with `autoPlayLanding` or a sprite that reports its settle through
`trackLanding`. They keep it. `'win'` waits for that beat before the
celebration, and `'landing'` does not play it a second time. The mode can
also be a function of the coin that locked, so a collector celebrates while
plain coins only settle:

```ts
.lockAnimation((coin) => coin.id === 'collector' ? 'win' : 'landing')
```

`board.activate(cells)` wakes dormant cells between waves. They show the
empty symbol, join the next respin and count toward `isFull` from then on.
`reset()` seals them again. The rectangular cells, landing only and growing
board demos above show each of these.

## Draw order between cells

Each cell is its own reel set, so a coin's `zIndex` only sorts it against
its own cell's buffers. Art that the engine lifts above a cell's mask at rest
(`unmask: true`) renders in one layer above all cells, in attach order,
which is column by column. As a result the next column covers the overflow
of a lower coin. `cellZIndex` makes that layer sortable, and the board asks
it for each cell's order on each place and landing:

```ts
.cellZIndex(({ cell, symbolId, cols }) =>
  (symbolId === 'grand' ? 1000 : 0) + cell.cell * cols + cell.reel)
```

`board.liftedLayer` is that layer, for an effect that has to sit between the
cells and their lifted art. `symbolZIndex(resolver)` is the per-symbol form
from `ReelSetBuilder`, applied inside each cell. See
[big symbols](/mechanics/big-symbols/#zindex-layering).

## Speeds

Each cell is its own reel set with its own `SpeedManager`. The board
registers speeds in all of them and switches all of them together:

```ts
const board = new HoldAndWinBuilder()
  .speeds({ normal: NORMAL, turbo: TURBO, superTurbo: SUPER_TURBO })
  ...
board.setSpeed('turbo');            // every cell, at once; fires speed:changed
board.addSpeed('cinematic', slow);  // one more, after build
```

Cells land in a diagonal wave, and the wave's step is the active profile's
`stopDelay`. On a reel set that value is the time between reels stopping. On
a board it is the time between steps of the wave. Each cell spins
`(reel + cell) * stopDelay` ms on top of the profile's `minimumSpinTime`, so
NORMAL's 140 ms steps the wave and TURBO's 0 lands all cells together.
`.stagger(fn)` replaces the shape of the wave. It receives the speed's name
and profile:

```ts
.stagger((reel, cell, speed, profile) => reel * profile.stopDelay) // column by column
.stagger((reel) => reel * 120)                                     // fixed, whatever the speed
```

The rule is the same as for `reelSet.setSpeed()`. A cell already in flight
finishes on the profile it started with, and the next wave runs on the new
one. To cut a wave in progress on a turbo press, call `board.skip()`. To
land it on turbo instead, call `board.skip({ mode: 'quicken', speed: 'turbo' })`.
Each speed name also gets a `name:tension` variant that the board uses for
an anticipating wave.

## When the board does not fit

pixi-reels ships boards in two layers:

- `BoardGrid` is the primitive. It is a grid of cells that each spin
  independently. It knows geometry, instances and spinning, and nothing about
  coins, locks, respins or value.
- `HoldAndWinBoard` is one board built entirely on the primitive's public
  API. It adds the rules for locking, respins and collecting.

If the built-in board does not do what your game needs, these are the
options, from least to most work:

1. Configure it. Stagger, respins, weights, anticipation and cell chrome are
   all builder options. Most games stop here.
2. Build on the primitive. If your feature is not lock and respin at all,
   for example pick and reveal, cluster collect or a scratch card, skip
   `HoldAndWinBuilder` and use `BoardGrid` directly. The
   [board grid reveal demo](/mechanics/layers/#board-grid-reveal) is a board
   on the primitive that is not Hold & Win.
3. Fork the board. For lock and respin with different rules, copy
   `HoldAndWinBoard` and `HoldAndWinState` into your project and point their
   imports at `pixi-reels`. Everything they use (`BoardGrid`, `EventEmitter`,
   the `Hw*` types, `cellKey`, `HwEffect`) is public API, so the copy stays
   on supported ground. Then rewrite the reducer. The rule that a hit resets
   the respins and the rule that a full board ends the feature both live in
   `HoldAndWinState`.

The board never reads your `data` and has no paytable. What a coin means is
decided in your code, and the board only moves the reels.

## Where to go next

- The [event trace](/mechanics/hold-and-win/#hold-and-win-trace) prints each event as it fires.
- The [respin round](/mechanics/hold-and-win/#hold-and-win) is the smallest board.
- A coin's value can live [in the coin's data](/mechanics/hold-and-win/#coin-value-data) or [in a symbol class](/mechanics/hold-and-win/#coin-value-symbol).
- For collecting, see the [collector with flights](/mechanics/hold-and-win/#hold-and-win-collector) and [fly to a meter](/mechanics/hold-and-win/#hold-and-win-meter).
- For tension on the last cell, see [anticipation](/mechanics/hold-and-win/#hold-and-win-anticipation).
- To go from the base game into the feature and back, see [from the base game](/mechanics/hold-and-win/#hold-and-win-base-to-feature).

## Demos

The demos start with the smallest board and add one idea at a time. The last sections cover draw order and dimming, which most boards only need once the art is in.

## The basic board

### Respin round

Coins lock where they land and the free cells respin until the grid fills or the respins run out. The board runs the round. The coin values belong to your game.

Live demo (hold-and-win): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win

### Event trace

A board plays a whole feature while each `board.events` event prints to a log as it fires. Use it to see the order of the round before you hook your HUD and sounds onto it.

Live demo (hold-and-win-trace): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-trace

### Sprite coins

The board built from TexturePacker sprites, with no Spine runtime. The numbers blur while they spin and each coin plays a 30-frame flip when it lands.

Live demo (hold-and-win-sprites): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-sprites

### Spine coins

The board with production Spine coins. MINI and MAJOR tiers reveal on lock, plaques sit beside the grid, and the collect flies the coins into a counter.

Jackpot coins (MINI and MAJOR) are placed by the server only. Their weight is 0, so they never come up on a random strip.

Live demo (hold-and-win-spine): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-spine

## Coin values

### Value in the symbol class

A `ReelSymbol` written from scratch that draws a coin with a number on it. The value is read back off the landed symbol. Start here if you have not written a symbol class before.

Live demo (coin-value-symbol): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#coin-value-symbol

### Value in the coin data

The same coin, with the number kept in `data` instead of the class. One generic coin then carries whatever value the server sends, and the number is painted from `coin:locked`.

Live demo (coin-value-data): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#coin-value-data

### Number on existing art

When the coin art already exists as a sprite, keep it and add the number on top as a second child of the symbol's view.

Live demo (coin-value-overlay): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#coin-value-overlay

### Coefficient values

Each coin carries a coefficient between x2 and x50 in `coin.data`. The board locks the hits and respins only the free cells. The total is summed from `board.lockedCoins`.

Live demo (value-coin-pin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#value-coin-pin

### Count-up coin

Each coin's amount counts up from 0.00 to its value as it settles. The coins start in reading order, so the count runs across the board as a wave.

Live demo (hold-and-win-countup-coin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-countup-coin

### Mystery value

Coins land blank. On lock, a strip of candidate amounts spins inside the coin face and slows down onto the real value.

Live demo (hold-and-win-mystery-coin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-mystery-coin

### Upgrade in place

A held coin steps up the value ladder (5, 10, 25, 50, 100) with a flip and a pop. Nothing respins and no cell moves.

Live demo (hold-and-win-upgrade-coin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-upgrade-coin

### Swap to a jackpot tier

`board.setSymbolAt(cell, id, data)` puts a different symbol in one cell and rewrites that cell's entry in the board's ledger. Here a coin turns into MINI, then MAJOR, and the neighbouring coins stay where they are.

Live demo (hold-and-win-tier-swap): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-tier-swap

### Badge that survives a swap

An x100 badge is stored in `coin.data` and attached as a child of the symbol's view. Because it is rebuilt from the data, it comes back after an in-place swap and travels with the coin on a collect flight.

Live demo (hold-and-win-sticky-overlay): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-sticky-overlay

## Collectors and special coins

### Collector

When the collector orb locks, the game walks `board.lockedCoins`, flies the values of the orb's neighbours into it and calls `release()` on those cells.

Live demo (collector-symbol-pin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#collector-symbol-pin

### Collector with flights

A collector orb lands and pulls a copy of each coin's value along a bezier arc, adding to its total as each one arrives.

Live demo (hold-and-win-collector): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-collector

### Collector with particles

The same collect, with a stream of particles trailing each value into the orb.

Live demo (hold-and-win-collector-particles): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-collector-particles

### Fly to a meter

On collect, each coin's value flies into a meter above the reels. The meter adds up the total and fills a bar toward a target.

Live demo (hold-and-win-meter): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-meter

### Payer coin

A payer orb lands and adds its value to each of the other coins. Changing one line turns it into a doubler.

The payer is placed by the server only. Its weight is 0, so it never comes up on a random strip.

Live demo (hold-and-win-payer-coin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-payer-coin

### Multiplier coin

A multiplier coin lands, a strike effect plays, an xN badge pops and each coin's value is multiplied.

Live demo (hold-and-win-multiplier): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-multiplier

### Row jackpot

When a coin completes a row, the row flashes coin by coin, the MINI plaque lights and the row total flies into it.

Live demo (hold-and-win-row-jackpot): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-row-jackpot

### Bonus cells

Some cells are marked as bonus cells from the start. A coin that lands on one lights the cell and doubles its value.

Live demo (hold-and-win-bonus-cell): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-bonus-cell

## Entering the feature

### From the base game

A normal 5x3 spin that drops into the Hold & Win board when 3 BONUS symbols land, in the same chain, and switches back on `feature:end`.

Live demo (hold-and-win-base-to-feature): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-base-to-feature

### Feature mode by middleware

This one does not use the board. It switches a plain `ReelSet` into a bonus mode at runtime by adding a frame middleware, and back by removing it, with no rebuild. In the bonus mode the middleware turns some visible cells into WILD.

Give your middleware a priority above 10, the priority of target placement, so it runs after the server's grid is placed and can react to it. The recipe uses 20.

Live demo (feature-mode-swap): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#feature-mode-swap

## Pacing the wave

### Last-cell anticipation

The `anticipateWhen` builder option slows the last spinning cell to a tension profile, for the moment when one more coin would fill the board.

Live demo (hold-and-win-anticipation): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-anticipation

### Skip

`board.skip()` puts each spinning cell at its landed position and fires `feature:skip`. `feature:end` is still the one event that says the feature is over.

Live demo (hold-and-win-skip): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-skip

### Quicken

`board.skip({ mode: 'quicken' })` lands each spinning cell through its stop instead of placing it. The board's stagger lives in each cell's minimum spin time, so dropping it lands the whole wave together, and each cell still spins its symbol in and bounces. Add `speed: 'turbo'` to land the wave on the turbo profile, or call `HoldAndWinBuilder.skipMode('quicken')` to make quicken the default. `feature:skip` reports the count and the mode, and the landing events fire as usual.

Live demo (hold-and-win-quicken): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-quicken

### One speed switch

`speeds(normal, turbo, superTurbo)` registers each profile in each cell's `SpeedManager`, and `board.setSpeed(name)` switches them all at once, the board's version of `reelSet.setSpeed()`. A wave already in flight finishes on its own profile, so a turbo press in the middle of a wave is `setSpeed` plus `skip()`. The landing wave steps by each profile's `stopDelay` (70, 25 and 0 ms here), so it tightens as the speed goes up and lands in one go on superTurbo, without a stagger function.

Live demo (hold-and-win-clover-speeds): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-speeds

### One cell at a time

`board.reelAt(cell)` returns the cell's own 1x1 `ReelSet`. You can start it, slam-stop it and read the symbol in it without touching the other cells. Use this when a feature needs a cell to move outside the normal wave.

Live demo (hold-and-win-cell-control): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-cell-control

## A clover game

These demos use the art of one real game, where the coins are clovers. Each clover is a Spine 4.2 skeleton.

### Base game into the feature

A fruit base game. Gold clovers show bet-scaled money as they spin past, and the collect, multi, mystery and super clovers carry no amount. Three or more clovers on the stop hand their cells to the Hold & Win board.

Live demo (hold-and-win-clover-base-game): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-base-game

### Bonus board

The feature on its own. Gold clovers lock with their amounts, the blank cells are the game's dark clover tile, and the 1 2 3 lamps below are the respin counter.

Live demo (hold-and-win-clover-bonus): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-bonus

### Respin counter

Three lamps driven by `respins:changed` alone. Its `reason` says whether the count changed on seed, hit-reset or miss, so the lamps light or dim without the game working the count out again.

Live demo (hold-and-win-clover-respin-counter): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-respin-counter

### Feature clovers

Clovers without an amount act on the held gold between waves. MULTI doubles each amount, MYSTERY becomes a gold clover with a revealed amount through `setSymbolAt`, and COLLECT adds the board up onto its own face.

Live demo (hold-and-win-clover-feature-clovers): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-feature-clovers

### Lightning collect

Held clovers idle until the feature ends. When COLLECT locks, lightning strikes from it to each gold clover's number and the collect face counts the values into its own. The gold clovers keep their values, and the spent collector turns grey and stays held.

Live demo (hold-and-win-clover-collect): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-collect

### Mystery jackpot capsule

The sealed capsule locks like a coin. Between waves the jackpot titles flick across its face through `setBadge` and stop on the tier the server sent. Then the plaque lights and the amount appears.

Live demo (hold-and-win-clover-mystery-capsule): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-mystery-capsule

## Lock animation

### Landing only

`lockAnimation('landing')` plays the landing settle on each lock and nothing more. `board.playWin()` is the single celebration, called when the game decides.

Live demo (hold-and-win-landing-only): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-landing-only

### Per coin

`lockAnimation` can be a function of the coin that locked. Here gold clovers settle with their landing only and COLLECT also celebrates. The celebration waits for the skeleton's own landing beat (`symbol.landing`) instead of replacing its track, so the landing plays first and the win follows. The HUD prints when each one finishes.

Live demo (hold-and-win-clover-lock-rule): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-lock-rule

## Board size and cell shape

### Rectangular cells

Hold & Win art is usually wider than it is tall. `cellSize` takes a width and a height, plus a `columnGap` and a `rowGap`, so the board lays out to the art's own rectangle and the game's grid shows through the gaps. The clovers are the Spine 4.2 skeletons from the clover game, with idle, landing, win and blur tracks that the engine plays through `SpineReelSymbol`.

Live demo (hold-and-win-rect-cells): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-rect-cells

### 5x5 board

The clover board with five rows, all cells live from the start.

Live demo (hold-and-win-clover-bonus-5x5): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-bonus-5x5

### Growing board

Built 5x5 with the top and bottom rows inactive behind a purple sealed tile. Holding enough clovers opens a row with `board.activate()`, and the next respin spins it too.

Live demo (hold-and-win-clover-growing): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-growing

### Background grid

Real gaps between the cells (`columnGap` and `rowGap`) and no cell chrome, so the background shows through. Behind the board is a gradient panel and one rounded frame per cell, drawn with plain `PIXI.Graphics` on each cell's exact bounds. A rounded cell mask cuts the tiles' corners to match.

Live demo (hold-and-win-clover-grid-bg): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-grid-bg

### Rounded outer corners

Each cell has its own mask. `cellMask` takes a function that is called once per cell with its column, its row and the board size, and returns that cell's mask strategy. Here the cells clip to a plain rectangle, except the four corner cells, which each round their one outer corner through `RoundedRectMaskStrategy({ radius, corners })`. With no gap, the fifteen masks read as one rounded window with the panel's radius. The info argument also carries `corners`, that same per-cell object worked out for you.

Live demo (hold-and-win-outer-corners): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-outer-corners

### Blur while spinning

Each skeleton has a blur animation that swaps its body to a motion-blur frame, and `SpineReelSymbol` plays it while the reel moves. The two rows are identical except that the second one opts out of the blur track.

Live demo (hold-and-win-clover-blur-strips): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-blur-strips

## Travel direction

### Sideways

The round on `.axis('horizontal')`. Each cell is its own 1x1 `ReelSet`, so the axis only decides which edge a coin scrolls in from. The board still lays out columns by rows, and a lock still claims one cell.

Don't build this on a plain `ReelSet` with `.orientation('horizontal')`. There a reel is a whole row, so the row moves as one strip across the gaps and past the cells that should be locked.

Live demo (hold-and-win-horizontal-lock): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-horizontal-lock

### Upward

The round on `.axis('vertical', 'reverse')`. It also shows the hold that goes with it. `respin()` spins `board.freeCells` and nothing else, and `respin:start` reports which cells are in flight.

On a `ReelSet` the equivalent is `spin({ holdReels })`, which holds a whole reel. A board has no `holdReels` because Hold & Win holds single cells.

Live demo (hold-and-win-reverse-respin): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-reverse-respin

## Draw order and dimming

### Cell draw order

Each cell is its own reel set, so the clovers the engine lifts above the cells at rest share one layer, drawn in attach order. That order is column by column, which lets the next column's clover cover a lower clover's glow. `cellZIndex` sorts the layer by whatever the board returns, here lower rows in front and the capsule above everything, and the board asks again on each place and landing.

Live demo (hold-and-win-clover-cell-order): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-cell-order

### Lift one cell

`cellZIndex` is the order at rest, and the board asks for it again on each place and landing. A clover that must stay on top while it upgrades can't get there by returning a bigger number, because the next landing overwrites it during the animation. `board.lift(cell)` raises the cell on a separate channel and returns a release function. The refresh keeps running underneath without touching the lifted cell, and the release puts the cell back without recomputing anything.

Live demo (hold-and-win-clover-lift): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-lift

### Lift and dim

`board.dim({ except })` goes with `lift()`. The dim draws above the clovers and below anything lifted, so a lifted cell stays in front of it whether or not it is in `except`. A dim covers cells, not symbol ids, so this collect works out which cells hold the gold clovers it is about to sweep and spares them. The money stays bright and the blanks go dark. The dim fades in and out over `fade` ms off the board's own ticker, and `fade: 0` cuts.

Live demo (hold-and-win-clover-lift-dim): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-lift-dim

### Dim the cell or the art

There are two ways to push a board back. `dim()` lays a rectangle over each cell, so the clover goes dark along with the tile it sits in. `dimSymbols()` tints each symbol towards black instead, so the art sinks and the board stays lit. The same sweep runs twice in the demo, once with each. `amount` sets the strength on both, and both fade over `fade`.

This is a board method rather than a few lines of `gsap.to` because a dimmed cell that swaps its symbol has to keep its dim, and the symbol that left has to lose its tint before the pool gives it to another cell.

Live demo (hold-and-win-clover-dim-symbols): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-dim-symbols

### Dimming one cell up close

One cell, scaled up, holding a fruit instead of a clover so the cell's background shows all around the symbol. The blue plate is drawn by `cellChrome()` on the board, not by a symbol, so `dimSymbols()` never touches it. `amount` steps through 0.3, 0.6 and 0.9 and the plate stays the same. Then the same 0.6 through `dim()` takes the whole cell down.

In the last step the cell is swapped to the empty id. There is no art left to dim, so `dimSymbols()` changes nothing, neither the symbol that has gone nor the plate.

Watch for this on a real board. If your blank tile is a registered symbol, as the dark tile is in the clover demos (the `empty` id), it is art and `dimSymbols()` dims it too. Draw anything that must stay lit in `cellChrome()`, or name its cell in `except`.

Live demo (hold-and-win-clover-dim-one-cell): https://pixi-reels.schmooky.dev/mechanics/hold-and-win/#hold-and-win-clover-dim-one-cell
