/* Desktop presentation: the real app remains full-screen on phones. */
.balance-logo img,
.loading-logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.loading-logo-container {
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.22));
}

@media (min-width: 700px) {
    html {
        background:
            radial-gradient(circle at 50% 18%, rgba(70, 90, 125, 0.23), transparent 36%),
            linear-gradient(145deg, #11151c, #050608 62%, #10141a);
    }

    body {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: 18px;
        overflow: clip;
        background: transparent;
    }

    .iphone-shell {
        position: relative;
        width: 421px;
        height: 880px;
        padding: 14px;
        border-radius: 28px;
        background: #000;
        box-shadow:
            0 34px 80px rgba(0, 0, 0, 0.65),
            0 0 0 1px rgba(255,255,255,0.14);
        isolation: isolate;
        overflow: clip;
        display: block;
        zoom: var(--desktop-shell-scale, 1);
    }

    .iphone-shell::before {
        content: none;
    }

    .iphone-shell::after {
        content: none;
    }

    .iphone-screen {
        position: relative;
        width: 393px;
        height: 852px;
        overflow: hidden;
        border-radius: 24px;
        background: #000;
        transform: translateZ(0);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
    }

    .iphone-screen::after {
        content: none;
    }

    .iphone-screen > #bgAnimCanvas,
    .iphone-screen > .bg-artwork,
    .iphone-screen > .bg-grain,
    .iphone-screen > .bg-focus,
    .iphone-screen > .loading-overlay,
    .iphone-screen > .app-container,
    .iphone-screen > .tab-nav,
    .iphone-screen > .modal,
    .iphone-screen > .pattern-modal,
    .iphone-screen > .entropy-screen {
        position: absolute;
    }

    .iphone-screen > .app-container {
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .iphone-screen > .tab-nav {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .iphone-screen .main-content {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .iphone-screen .screen.active {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
    }

    .iphone-screen #settingsScreen > * {
        flex-shrink: 0;
    }

    .iphone-screen > #bgAnimCanvas {
        inset: 0;
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 699px) {
    .iphone-shell,
    .iphone-screen {
        display: contents;
    }
}
