# Terminal Prompt

Build a retro-futuristic control-station shell inside a single `index.html`. The machine is an orbital relay named `K2-6` with a fake operating system called `ORBIT_OS v7.2`.

## Theme & Visuals
- CRT monitor feel with scanlines, subtle phosphor bloom, and a dark navy-to-black gradient.
- Accent colours: amber (`#ffb000`), cyan (`#00e5ff`), and red (`#ff3344`).
- Monospace UI font; UI chrome uses rounded panel borders with slight inner shadows.
- Responsive: desktop shows multi-pane layout; touch devices show bottom tap bar and larger hit targets while preserving the fiction.

## Interaction Model
- Keyboard-first command entry with Up/Down history and Tab command completion.
- Touch devices: bottom tap bar with command chips (LS, CAT, SCAN, DOCK, HELP, CLEAR) plus a text input.
- Enter commands at the prompt. Output renders inline in the main terminal pane.
- Commands must internally modify state (filesystem, ship status, scan progress) rather than returning static flavour.
- session data persisted to localStorage: command history and unlocked commands.

## Fake Filesystem (tree)
```
/sys
  core.cfg
  boot.log
  net.map
/ships
  aurora.log
  titan.log
  hermes.log
/stations
  alpha9.manifest
  deepcore2.manifest
  relay_v7.db
/ops
  scan_queue.dat
  route_table.json
```

## Commands (minimum 10 meaningful)
1. `help` — list commands with short descriptions.
2. `ls [path]` — list directory contents; respects working directory.
3. `cd [path]` — change directory.
4. `cat <file>` — show file contents with syntax hints.
5. `clear` — clear main terminal pane.
6. `scan [target]` — initiate a progressive scan with staged output; updates the telemetry pane.
7. `route <from> <to>` — calculate a route between stations; updates route table.
8. `dock <ship>` — lock a ship to the relay; affects ship status in the sidebar.
9. `repair <system>` — run a staged repair sequence with progress output.
10. `status` — show system-wide status and active alerts.
11. `log [filter]` — show last 10 log lines; filter by keyword.
12. `probe <sector>` — send a deep-space probe; adds narrative anomaly events that unlock hidden commands.
13. `top` — show fake process list with live intervals (only in main pane).

## Pane / Window Management
- **Main pane** — the terminal scrollback and prompt.
- **Telemetry pane** — live scan progress, route status, and system metrics.
- **Radar pane** — canvas-based starfield with a pulsing orbital ring; updates when scan/route/dock commands run.
- Mobile: telemetry collapses into a slide-up drawer; radar becomes a hero card above the terminal.

## Narrative Event Layer (Anomalies)
- After `probe sector-7` returns an anomaly, unlock hidden commands `decrypt` and `override`.
- Anomaly triggers a persistent amber alert banner in the telemetry pane.

## Rules
- No external images or assets; everything is CSS/Canvas.
- No backend calls; all state is local.
- Errors and help text must be useful to exploration.
- The shell should invite at least a few minutes of interaction.
- Do not fake depth with a static transcript.
