html,
body {
    margin: 0;
    padding: 0;
    /* A tap on a drifting rock is a click, never a scroll, a pinch or a
       double-tap zoom — the whole game is one canvas that never scrolls. */
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
}

/* `touch-action` is not inherited, and the rule above therefore stopped at
   `body`. Pixi sets it on the canvas itself, so a press that lands on the game
   was always safe — but `#app` is a flex box the canvas is centred in, and every
   point of it the canvas does not cover is a point where iOS Safari still owns
   the gesture. Two fast taps there are a double-tap, and a double-tap is a zoom:
   the page scales, `getBoundingClientRect` moves under both Pixi's own event
   mapping and `ClickMarks`, and the mark lands somewhere the finger was not.
   Slow taps never pair up, which is exactly the shape of the report. */
#app,
#pixi-container,
#app > canvas {
    touch-action: none;
}

#app {
    /* Pinned, so nothing can scroll or shift the game under a bar that slides in
       over the bottom of it. The height rule below is only half of that story —
       `glass.ts` is the other half, and it is the half that survives an installed
       fullscreen window being resized by the system navigation bar. */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* The *smallest* viewport — the height the screen has with every bit of
       browser chrome showing.

       `dvh` was wrong because it moves: it tracks the chrome, so every time a bar
       slid in or out the element shrank, the renderer resized, and the whole game
       was laid out again a few points further up. `lvh` was the first answer to
       that and it does not move, which is the property that matters — but it is
       the height with the chrome *hidden*, so the bottom of the game lives under
       the bar for as long as the bar is up. In a browser that bar is up almost
       always, and what is under it is the strip: the three gauges and the
       counters, gone.

       `svh` is the one of the three that is both constant and honest. It never
       moves, so nothing is ever laid out again; and the game is never drawn
       under the chrome, so the strip is on screen whatever the browser is doing.
       The trade is a band of unused black at the bottom while the toolbar is
       hidden, which is the cheaper half of the bargain. Installed — which is how
       this ships — there is no chrome and `svh`, `lvh` and `dvh` are the same
       number. */
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
