# Islet — a live-activity pill of obsidian liquid glass that morphs on springs between capsule, card and circle, and bends the wallpaper behind it
> Paste this whole prompt as one message into a new, empty project.
## 1. Role and goal
You are a senior creative developer and interface designer.
- Build **[BRAND]**, a reusable React component: a live-activity "island", a pill of thick obsidian glass that hangs at the top of a screen and morphs, on real springs, into whatever is live in an app: an incoming call, a timer, the song playing, a ride arriving, a file transfer, and a failed-transfer alert. Then build the one-page showcase that documents and sells it.
- It hangs at the top of a phone frame, under a desktop menu bar or over any app shell, and it never jumps: every edge follows a spring.
- The glass is real. One fixed WebGL canvas behind the page renders everything that sits behind glass (wallpapers, a lock screen, a desktop, ruled grids) into a mipmapped texture, then draws every pill as a rounded-rectangle signed-distance field that magnifies that texture, pulls it hard at the rim, splits it into colours at the edge, frosts it, tints it obsidian and lights its rim from the pointer. The pill's content (text, icons, waveform, rings, scrubber, a tiny map) is DOM that rides exactly on top of the glass.
- API: `<Islet activity="music" presentation="expanded" tint="obsidian" accent="#D4FF3F" scale={1} onPresentationChange={setPresentation} />` with `activity: "call" | "timer" | "music" | "ride" | "transfer" | null` (null is the empty island), `presentation: "rest" | "minimal" | "compact" | "expanded" | "alert"`, `tint: "obsidian" | "smoke"`, `accent` (hex; the edge light and the music colour), `scale` (px per point; 1 pt = `scale` px), `onPresentationChange(p)`. Clicking toggles rest → compact → expanded → compact (alert → transfer expanded); keys 1–5 pick an activity, E toggles expanded, M minimises, Escape returns to compact.
- Internally each island is a controller (`new Islet({ activity, pres })`, see 5.1) with `set()`, `press()`, `step(dt, time)` and `shape(ox, oy, time)`; the component subscribes with `useSyncExternalStore`, and a page-level director positions it and hands its shape to the canvas.
- Sizes in points (width × height, corner radius; all top-anchored and centred): dot 14 × 14 r 7 (intro only), rest 126 × 37 r 18.5, minimal 44 × 44 r 22 (a circle), compact 250 × 37 r 18.5, alert 371 × 84 r 38; expanded per activity: call 371 × 84 r 40, timer 371 × 116 r 42, music 371 × 176 r 46, ride 371 × 156 r 44, transfer 371 × 100 r 40.
- The showcase page, under 6 screens on desktop: navigation, 01 Stage (the island live on a phone lock screen), 02 States (seven states frozen on a pinned horizontal strip the hero pill flies into), 03 Variants (desktop and phone, three wallpapers, two tints, on a porcelain sheet the island finally swallows), 04 Motion (the spring curve, scrubbed by the scroll), 05 Anatomy (seven parts, eleven tokens, the API), footer.
- It must read like the documentation page of a premium design-system component: exact numbers, real names, no filler.