UX and visual review: 21 tasks from desktop and iOS PWA playtest #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scratch: UX and visual review, written as tasks for a coding agent
Target: https://scratch.apps.underthere.xyz/
Reviewed 2026-11-09 by playing against bots.
How this was tested
Sizes quoted for mobile are measured from simulator screenshots, so treat them as accurate to about 2 pt.
Instructions for the implementing agent
:rootrather than adding new colours:--felt-1 #1c7a54,--felt-2 #0d4a30,--felt-edge #08301f,--ivory #fbf8ef,--ink #181820,--red #c22f3a,--gold #e8c877,--panel #10261d,--panel-2 #16352a,--text #f3efe4,--muted #a9b8ad,--accent #2fbf8f,--danger #e0654f,--card-w 72px..hand,.hand-card,.card.card-face(inline SVG, viewBox0 0 60 84), turn pills as[role=status]. Existing keyframes:flip-in,deal-in,trump-flip,crown-drop,card-to-center,trick-pop,scratch-slash,confetti-fall,pop-in.max-width: 480px) and noenv(safe-area-inset-*)usage. Several tasks below need both.prefers-reduced-motionhandling working for every new animation.What already works and should be kept: the felt-and-gold palette, the card-flies-to-centre and trick-sweeps-to-winner animations, greying out cards that are not legal to play, the bot personalities, the confetti, and the PWA icon and manifest.
A. Defects
A1. Mobile: the hand sits under the iOS home indicator
Observed: in the installed PWA the bottom edge of the hand is about 10 pt from the bottom of the screen. The home indicator zone is 34 pt, so tapping the lower half of a card competes with the system swipe-up gesture. The CSS contains no safe-area insets.
Change:
viewport-fit=coverto the viewport meta.env(safe-area-inset-top/right/bottom/left). The hand container needspadding-bottom: max(12px, env(safe-area-inset-bottom)).100dvh, not100vh.Accept: on an iPhone with a home indicator, no interactive element is inside the bottom 34 pt or under the status bar. Nothing changes on desktop.
A2. The bid panel resizes the table and makes elements collide
Observed (desktop, 1024x768): when it is my turn to bid, a bid panel is inserted between the table and the hand. The table shrinks from about 420 px to about 275 px tall, and the "Round 2 · 9 cards" pill and the trump card end up drawn on top of Aggressive Archie's seat panel.
Observed (mobile): the same insertion makes the round pill, trump card and my own seat jump upward by about 75 pt, then jump back after I commit.
Also observed: when the hand empties on the last trick, the table grows to fill the space, which is another jump.
Change: the table must keep a fixed size for the whole round. Render the bid control as an overlay inside the table's centre area (where tricks are played, which is empty during bidding), or reserve its space permanently. Do not let the hand's height depend on how many cards remain.
Accept: record the bounding box of the table, the round pill and the trump card at these moments: bots bidding, my bid, play, last trick. They are identical in all four. No element overlaps a seat panel at any tested viewport.
A3. Mobile: turn pills are clipped and overlap neighbours
Observed: with four opponents the seats form a 2x2 grid. The "Bidding" / "To play" pill on a top-row seat is cut off by the table's top edge. On a bottom-row seat it covers the "Scratches" line of the seat above.
Change: put the turn indicator inside the seat panel (for example a gold ring around the avatar plus a gold panel border, with the label inside the panel), or reserve a gap above every seat that is tall enough for the pill.
Accept: for every seat position with 2 to 5 players, the turn indicator is fully visible and covers no other text.
A4. Mobile: touch targets are too small
Measured: header buttons (Scoreboard, Help, Sound, Leave) about 25 pt tall. Sort about 24 pt tall. "Remove" on a seated bot about 24 pt tall. Bid
-and+about 39 pt. In a 10-card hand each card shows a strip about 24 pt wide.Change:
Accept: no tappable element has a hit area under 44x44 pt at 402 pt and 360 pt widths. A 10-card hand shows at least 32 pt of every card.
A5. Mobile: the scoreboard is cut off on the right
Observed: with 5 players the scoreboard table is wider than the modal. "Aggressive Archie" is cut mid-word and the fifth player's column is not visible. The round table and the totals table also use different column widths, so their columns do not line up.
Change: on narrow screens put players in rows and rounds in columns (one row per player: avatar, name, total scratches, then one cell per round, scrolling horizontally with the name column pinned). Merge the totals into that same table. On desktop keep one table with aligned columns.
Accept: at 360 pt wide with 5 players, every player's name and total scratches are visible without scrolling. Round cells scroll horizontally with a visible edge fade.
A6. iOS: the selected card's outline is a square box
Observed: after the first tap, the selected card gets a gold rectangular frame with square corners around a rounded card, and the frame is offset from the card.
Change: draw the selected state on the card itself (a 2 px
--goldstroke on the SVG rect or aborder-radius-matchedbox-shadow), and remove the default focus outline on.hand-cardin favour of a:focus-visiblestyle with matching radius.Accept: the selected highlight follows the card's rounded corners on iOS Safari and desktop Chromium.
A7. PWA launch flashes white
Observed: opening the site in Safari and launching the installed app both show a blank white screen before the dark UI paints.
Change: set
background: #06120donhtmlin an inline<style>in the document head, add<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">(only together with A1), and addapple-touch-startup-imagesplash images. Provide a separate maskable icon with safe-zone padding instead of reusingicon-512.pngfor bothanyandmaskable.Accept: no white frame appears between tapping the home-screen icon and the lobby.
B. Game clarity
B1. Label the bid and tricks numbers and show live status
Observed: every seat shows two numbers such as
2 / 1. Nothing says which is the bid and which is tricks won. A player who has already missed (Cautious Carl bid 0 and had taken 5) looks the same as a player who is on target, until the round ends.Change: show
Bid 2 · Won 1. Colour the seat's status by state during play:--accent--danger, with the seat marked as scratched for this round--dangerBefore a player has bid, show "Bid –" with no tricks figure.
Accept: a first-time player can tell from the seat alone who is on target and who has already scratched. State is never conveyed by colour alone (add an icon or word).
B2. Show total bids against tricks available
Observed: the sum of bids is not shown anywhere. In this game that number is the main input to a bidding decision.
Change: next to the round pill show
Bids 13 / 10 trickswith a short tag: "over by 3", "under by 2" or "even". Update it as each bid lands. When the dealer-restriction rule is on, show the forbidden number on the dealer's bid control.Accept: the figure is correct after every bid and remains visible during play on both platforms.
B3. Make trump unmistakable
Observed: trump is a small face-up card (smaller than the played cards) with a crown emoji under it. On mobile it is about 35 pt wide. Trump cards in my hand look like any other card.
Change:
Accept: with the page at arm's length on a phone, the trump suit can be read in under a second, and trump cards in the hand can be picked out without reading each index.
B4. Give each trick a readable ending
Observed: when the last card lands, the trick sits briefly and then all cards sweep to the winner's seat. Nothing shows which card won or why. The tally that results is a row of card-back icons about 4x6 pt, too small to count.
Change:
--dangerwhen over.Accept: a spectator who looks away during a trick can tell who won it and with what card. The trick tally is legible at 402 pt wide.
B5. Add a round-end summary
Observed: after the last trick of a round, the next round is dealt almost immediately. Scratches are shown only as a small red slash on the seat panels while the new deal is already animating. This is the main scoring moment of the game and it passes without a pause.
Change: show a round result panel over the table for about 2.5 s (tap or click to skip, and a "Next round" button): one row per player with bid, tricks won, and "Hit" or "Scratch". Play the existing
scratch-slashanimation here, on the rows, at a size people can see. Then deal the next round.Accept: every round ends with the summary. It never blocks longer than 3 s without input. The final round goes from the summary to the Winner screen.
B6. Replace the bid stepper with direct choice
Observed: bidding uses
-, a number,+, then "Commit N". It starts at 0, so a bid of 6 takes seven taps, and a stray tap on Commit locks in 0.Change: show one chip per legal bid (0 to hand size), wrapping onto two rows on mobile. Tapping a chip selects it, and a single "Bid 3" button confirms. Start with nothing selected and the confirm button disabled. Grey out the dealer's forbidden bid when that rule is on.
Accept: any bid takes two taps. It is impossible to commit without choosing a number.
B7. Explain the two-tap play
Observed: the first tap lifts a card and the second tap plays it. Nothing on screen says so. On a phone the lifted card also covers its neighbour's index.
Change: when a card is selected, show a "Play 2♦" button directly above the hand (also triggered by tapping the card again), and let a tap elsewhere deselect. Add an optional "tap once to play" setting. Support dragging a card onto the table to play it.
Accept: a new player completes their first play without guessing. The selected card's neighbours stay readable.
C. Look and feel
C1. Lay the table out as a table
Observed (desktop): all opponents sit in one row along the top edge, my own seat is a panel in the middle of the lower felt, and the hand lies on a near-black strip outside the table. At 1024 px the hand is tightly overlapped even though most of the width is empty.
Observed (mobile): opponents take a 2x2 grid at the top, and about 40% of the felt below them is empty.
Change:
Accept: on desktop, who played each card is readable from position alone. On mobile, played cards are at least 64 pt wide and no more than 15% of the felt is empty during play.
C2. Give the cards more character
Observed: every card is rank, small suit, and one centre pip. A 7 and a King have the same layout. Ranks use Georgia. In the fanned hand only the top-left index is visible, and it is small.
Change:
Accept: court cards can be told from number cards by shape alone. The index is legible at a 24 pt strip width.
C3. One typographic voice
Observed: the in-game header uses a script logo (Pacifico) with a heart. The lobby title "Scratch" is plain sans-serif. Card ranks are Georgia. Body text is
"Segoe UI", system-ui, which renders differently on every platform.Change: use the script logo on the lobby, waiting room and Winner screen. Pick one display face for headings and numerals (bids, round pill, scores) and one UI face, and self-host both. Use tabular numerals for all scores.
Accept: the lobby and game header show the same logo. Fonts render the same on macOS, Windows, iOS and Android.
C4. Lobby and waiting room
Observed:
Change:
navigator.sharewhere available). Keep "How to play" on one line.Accept: on a 402 pt screen the room code, all seats, and the Start button are visible together without scrolling when the room is full.
C5. Winner screen
Observed: the table disappears and a small panel shows "Winner!", the name, and a plain table in seat order. The winner's row is not highlighted, rows are not sorted, and the confetti is sparse. The primary button says "Accept rematch" even for the person who created the room.
Change: sort by rank and number the places. Show the winner's avatar large with a crown, and highlight their row in
--gold. Add one line of colour per player from the game data (for example "hit 5 of 10 bids", "longest streak 3"). Label the button "Rematch" for the host and "Accept rematch" only after a rematch has been offered. Keep the felt visible behind the panel.Accept: the winner and my own place can be found at a glance. Ties show as shared places.
C6. Header on mobile
Observed: four text buttons plus the logo fill the full width at 402 pt and would not fit at 360 pt. "Sound" uses an emoji that renders differently per platform.
Change: on narrow screens use icon buttons (scoreboard, help, sound on/off) with accessible labels, and move Leave into an overflow menu with a confirmation. Use SVG icons, not emoji. Show the round number in the header so it stays visible when the scoreboard is closed.
Accept: the header fits on one line at 360 pt with 44 pt targets.
C7. Pacing and life
Observed: a four-player trick took about 6 seconds, mostly waiting for bots one at a time, and the 10-round game took roughly 10 minutes. (My seat was played by a script for rounds 2 to 10, which added up to 2 seconds per trick, so treat these as upper bounds.) Bots have distinct avatars and descriptions but never react.
Change: add a game speed setting (Relaxed, Normal, Fast) that scales bot think time and animation length. Give bots short speech bubbles at key moments (Archie on a big bid, Carl on taking an unwanted trick, a groan on a scratch, a cheer on hitting a bid). Pulse my seat and hand when it becomes my turn. Add
navigator.vibrateon my turn where supported.Accept: on Fast, a four-player trick with three bots resolves in under 3 seconds. Reactions never delay play.
Outside the visual brief, worth knowing
Shipped in braid-testing/scratch-parallel-190#2, merged into
mainas153cff0b66.The OpenSpec change is archived as
2026-11-11-ux-and-visual-review-21-tasks-from-deskt-c51d6z.Braid run: http://openspecflow.internal.underthere.xyz/run/run_01M74NQPP7FZJQGQZ00JC51D6Z