/* SWOT in the browser only (the app never loads this file). On a phone the pages fill the screen as in the app; on a
   wide screen (a laptop opening an invite link) they sit in a phone-width column in the middle instead of stretching
   across it. The transform makes the column the box that the pages' fixed bars (bottom tabs, map buttons, toasts) are
   placed in, so they stay inside it. The recorder is outside #app and still fills the screen. */
@media (min-width: 700px) {
    html,
    body {
        background: var(--color-ink);
    }

    #app {
        position: relative;
        max-width: 480px;
        height: 100vh;
        height: 100dvh;
        margin: 0 auto;
        overflow: hidden;
        transform: translateZ(0);
        background: var(--color-bg);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -20px rgba(0, 0, 0, .6);
    }
}

/* index.html's "Update your browser" page, in the update screen's look (UpdateScreen.razor.css). */
.unsupported {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-4);
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--spacing-6);
    box-sizing: border-box;
    background: var(--color-bg);
    color: var(--color-ink);
    text-align: center;
}

.unsupported[hidden] {
    display: none;
}

.unsupported__title {
    margin: 0;
    font-size: var(--text-h1);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--leading-tight);
}

.unsupported__text {
    margin: 0;
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.unsupported__link {
    text-decoration: none;
}

/* index.html's "new version ready" banner: a new release took over while the player had a photo or video in hand. It
   sits at the top over the page (outside #app, so above its bars), in the app's colours, and leaves the page usable. */
.new-version {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--spacing-3));
    left: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    box-sizing: border-box;
    width: calc(100% - 2 * var(--spacing-4));
    max-width: 448px;
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-md);
    background: var(--color-ink);
    color: var(--color-white);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .5);
    transform: translateX(-50%);
}

.new-version[hidden] {
    display: none;
}

.new-version__text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.new-version__button {
    flex: none;
    min-height: 44px;
    padding-inline: var(--spacing-4);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    font: inherit;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    cursor: pointer;
}
