# 036 - Match Pile ## User Story As the operator, I want the waiting Match cards to lie behind the top card like a pile of playing cards, so that I see at a glance that more cards wait. ## Decisions (operator-confirmed 2026-11-25; do not re-litigate) 1. **Pile** (operator pick 2026-11-25): the next two waiting cards lie behind the top card at full card size, lifted by 8 and 16 px and drawn 2 % and 4 % smaller, tilted by โˆ’1.5ยฐ and +1ยฐ, dimmed; their colour band (the gradient top bar) peeks out above the top card. Rejected: a fan like a hand of cards, which needs room at the sides and covers neighbouring panels in widget mode. 2. **Inert**: the layers behind show nothing beyond their band, take no focus and no clicks. 3. **Count**: as many layers as further waiting cards, at most two; none behind the last card. 4. **Replaces** the 40 px slivers (`.match-behind`) of today. 5. **Reduced motion**: no animation when the pile reorders. 6. **Timing**: as 032. ## Approach ```mermaid flowchart TD subgraph P["๐Ÿงญ 0 ยท Preparation"] P1["๐Ÿ“‹ Write requirement"] --> P2{"โœ… Operator approves?"} P2 -- "โœ๏ธ corrections" --> P1 end P2 -- "๐Ÿค– yes" --> A1 subgraph A["๐Ÿƒ A ยท Pile"] A1["๐Ÿงฉ Full-size layers behind the top card"] --> A2["๐ŸŽจ Band of each layer peeks out"] A2 --> A3["โœ๏ธ E2E test written"] end A3 --> C1 subgraph C["๐Ÿงช C ยท All of 032 to 038"] C1["๐Ÿงช All tests once"] --> C2{"๐ŸŸข Green?"} C2 -- "๐Ÿ”ด no: fix" --> C1 C2 -- "๐ŸŸข yes" --> CF{"๐Ÿ’ฌ Operator feedback on screenshots?"} CF -- "โœ๏ธ changes" --> A1 end CF -- "๐Ÿ‘ fits" --> D1["๐Ÿ Review, commit with operator OK, hand-over"] ``` ## Acceptance Criteria ### Layers - [ ] With three or more waiting cards, two layers lie behind the top card, each the top card's size (within 2 px) with a lower z-index. - [ ] Each layer's band starts above the top card's top edge. - [ ] The layers have `pointer-events: none` and `aria-hidden="true"`. - [ ] With two waiting cards one layer shows; with one card none. ### Tests - [ ] Unit: n/a: layout only. - [ ] Integration: n/a: no server change. - [ ] E2E: layer count, size and band position for 3, 2 and 1 waiting cards at 1920, 1366 and 390; screenshots.