/* The page behind the canvas, and the splash shown while the .NET runtime downloads. */
html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #FBF7EE;
    /* No pull-to-refresh or rubber-band scrolling: the pet page stays put under a swipe. */
    overscroll-behavior: none;
}

/*
   Fixed to the viewport's four edges rather than sized from the body: installed on an iPhone's home screen, the page
   can be laid out before the viewport has its final width, and the page then stopped short of the right edge.
*/
#out {
    position: fixed;
    inset: 0;
}

.splash {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #FBF7EE;
    color: #2E7D5B;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    pointer-events: none;
}

.splash h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.splash p {
    margin: 0;
    color: #2B2622;
    opacity: 0.8;
}

.splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}
