body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
    touch-action: none;      /* touch drives the joystick, not page scroll/zoom */
    user-select: none;
    -webkit-user-select: none;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phones held upright: the game is 16:9, so ask for landscape and cover it (main.ts also pauses the game). */
#rotate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font: 700 22px/1.3 Arial, sans-serif;
    color: #f8fafc;
    background: #0b1020;
}
@media (orientation: portrait) and (max-width: 900px) {
    #rotate { display: flex; }
}
