> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ochrebound.ibrahimsultan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Browsers, phones and safety

> The Frame-0 gate that spares phones a useless download, the fallbacks that keep every desktop browser working, and the headers that lock the site down.

## The Frame-0 gate

Ochrebound is built for a keyboard and a large screen. A phone that started downloading it would spend hundreds of megabytes to show a game it cannot control. So the very first paint of the page decides, before any engine file is requested.

![The hand-drawn Desktop Edition card shown in portrait and landscape phone viewports.](https://mintcdn.com/ibrahim-sultan/ElgR_ikrUgz5hmmd/media/ui_mobile_gate.jpg?fit=max\&auto=format\&n=ElgR_ikrUgz5hmmd\&q=85\&s=e37c097135faa412de2c69b00437ee6d)

The Desktop Edition card, portrait and landscape.

The check is layered so that it catches phones and tablets without ever catching a laptop:

1. **The pointer.** A coarse pointer with no hover, and no fine pointer anywhere, is a touch-only device.
2. **The browser's own answer.** Browsers that report whether they are mobile are asked directly.
3. **The user agent.** Known phone and tablet signatures.
4. **iPads in disguise.** iPadOS asks for desktop pages by default and reports itself as a Mac, so a "Mac" with touch points is treated as a tablet.

A Windows laptop with a touch screen still has a trackpad, which counts as a fine pointer, so it passes straight through. On a phone, the card offers to copy or share the link for later, in both orientations, with nothing heavy downloaded. Developers can open `?force-desktop=1` to bypass the gate for testing; it works only from the address bar.

> [!NOTE]
>
> Twelve live checks across handheld viewports confirm the gate shows on the first frame and that no `.wasm` or `.data` file is requested.

## Every desktop browser, one way or another

| If the browser lacks | It gets |
| :- | :- |
| WebGL 2, WebAssembly SIMD or `DecompressionStream` | A clear message before anything downloads |
| Streaming WebAssembly compilation | A buffered compile of the same file |
| Media Source Extensions (Safari) | The opening film played directly from its MP4 |
| Storage access (private modes, strict settings) | A game that still runs, without the cache |

The tier classifier also never mistakes a missing reading for a weak machine: Firefox and Safari do not report device memory, and that is treated as unknown.

## Locked down at the edge

The site is static files on Cloudflare Workers, and the packager writes its security headers at build time.

* **A strict content security policy**, the browser's own list of what the page is allowed to run. Scripts may come only from the site itself, plus WebAssembly compilation and blob workers. Every inline script is allowed by its exact SHA-256 hash, computed when the site is packaged, so changing one byte of an inline script without rebuilding breaks it rather than running it.
* **No framing, no plugins.** `frame-ancestors 'none'`, `object-src 'none'`, `X-Frame-Options: DENY` and `X-Content-Type-Options: nosniff`.
* **Caching that matches the files.** The page is always revalidated; everything named by content hash (the build, the menu art, the film, the music) is immutable for a year.
* **No analytics beacons.** A live audit of every asset confirms nothing third-party is injected.
* **No private files.** Deploy tooling's own cache and config files are excluded from upload and verified to return 404 on the live site.
* **Fonts that cover every character.** The packager checks that every visible character on the page exists in the self-hosted title font, so no glyph ever falls back to a system face.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.