The complete brief. Every model gets exactly this text.
Build a single-file interactive demo of a "live island": the pill-shaped area at the top of a phone screen that changes shape to show live activities (the pattern made popular by the iPhone's Dynamic Island).
Output ONE file named index.html — all CSS inline in <style>, all JS inline in <script>. No external dependencies, no frameworks, no remote images, fonts or audio. Plain HTML + CSS + vanilla JS.
## The scene
- A phone drawn in CSS, upright and centred, with a home screen you design (a clock, a few invented app icons — no real brand logos).
- At the top of the screen: the island. At rest it is a small black pill. It is ONE element that changes size and shape — never several ready-made shapes swapped by showing and hiding them.
- Outside the phone: a control panel that starts the activities below. On a narrow screen the panel moves under the phone.
## Activities — each one starts from the control panel
1. **Music** — a track "now playing" with an invented title and artist, cover art drawn in CSS, and an elapsed time that really advances once per second while playing. At least 3 invented tracks.
2. **Timer** — a countdown from 0:30 that really counts down, and ends by itself at 0:00 with a short "done" flourish before it leaves the island.
3. **Call** — an incoming call from an invented contact, with Accept and Decline. Accept turns it into an ongoing call with a running duration and an End control. Decline ends it.
Pressing a start button for an activity that is already live does nothing.
## Island states and the rules between them
- **idle** — nothing is live: the resting pill.
- **compact** — one activity is live: the pill widens to hold a small item on the left and one on the right (music: cover + moving equaliser bars; timer: icon + time remaining; call: icon + duration).
- **expanded** — the island grows into a large rounded card with the full controls for one activity (music: cover, title, artist, progress bar, previous / play-pause / next; timer: large time, pause, cancel; call: the name, and Accept + Decline or End).
- **split** — two activities are live: the main pill shows one in compact form, and a second, separate small circle next to it shows the other.
- Tap (click) the compact island → expanded. Tap anywhere outside it, or press Escape → back to compact or split. Expanded closes by itself after 6 seconds without interaction — except an unanswered incoming call, which stays until it is accepted or declined.
- An incoming call is urgent: it opens expanded at once, whatever was showing before.
- When an activity ends, the island falls back to whatever is still live (split → compact → idle).
- With two activities live, the one started most recently is the main pill and the other sits in the circle. Tapping the circle swaps them. If all three are live, an accepted call is the main pill, the more recent of the other two is in the circle, and the third stays live but hidden.
- Play/pause really pauses the elapsed time and the equaliser bars. Next and previous change the track and its title.
## Motion — the point of the exercise
- Every change of state animates the island's actual width, height and corner radius: one continuous morph with a springy feel that overshoots slightly and settles, lasting between 300 and 700 ms. No instant jumps, no crossfade between two separate boxes.
- The content inside fades or blurs across as the shape changes. Text never wraps or spills outside the island in the middle of a morph.
- The island keeps round corners in every frame.
- Respect `prefers-reduced-motion`: morphs become near-instant and everything still works.
## Hooks for automated checking — required, with these exact names
- The island: `id="island"`, with `data-state` kept in sync (`idle`, `compact`, `expanded` or `split`) and `data-activity` naming the activity it is showing (`none`, `music`, `timer` or `call`).
- The second circle of the split state: `id="island-secondary"`, with its own `data-activity`. It is not visible in any other state.
- Control panel buttons: `id="start-music"`, `id="start-timer"`, `id="start-call"`, `id="stop-all"` (ends everything and returns to idle).
- Controls inside the island: `data-action="play-pause"`, `"next"`, `"prev"`, `"timer-pause"`, `"timer-cancel"`, `"call-accept"`, `"call-decline"`, `"call-end"`.
- Readouts, text content only, formatted m:ss where they are times: `data-readout="music-elapsed"`, `data-readout="music-title"`, `data-readout="timer-remaining"`, `data-readout="call-duration"`. A readout may appear in more than one place; a script reads whichever one is visible.
## Layout and access
- Works at 1440×900 and at 390×844 with no horizontal page scrolling.
- The island and every control can be reached and used from the keyboard (Enter or Space on the island expands it), with a visible focus ring.
- Controls inside the expanded card are at least 44×44px.
## Style
The island itself is black, like the real one. Everything else — wallpaper, panel, type — is your call. It should feel like a piece of an operating system, not a web demo.
Write only index.html. No commentary, just create the file.