@font-face {
    font-family: vms;
    font-weight: normal;
    src: url("/webfonts/vms.ttf") format("truetype"), url("/webfonts/vms.eot?#iefix") format("eot"), url("/webfonts/vms.eot") format("embedded-opentype");
}
:root {
    --pwa-primary: #c92d40;
    --pwa-surface: #c92d40;
    --pwa-background: #c92d40;
    --pwa-text: #ffffff;
    --pwa-muted: rgba(255, 255, 255, 0.82);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    background: var(--pwa-surface);
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--pwa-background);
    color: var(--pwa-text);
    font-family: vms, serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.pwa-intro {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding:
        calc(32px + env(safe-area-inset-top))
        24px
        calc(24px + env(safe-area-inset-bottom));
    background: var(--pwa-background);
    isolation: isolate;
}

.pwa-intro__content {
    display: flex;
    width: min(100%, 420px);
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: pwa-intro-reveal 520ms ease both;
}

.pwa-intro__text {
    max-width: 340px;
}

.pwa-intro__logo {
    display: block;
    width: min(66%, 220px);
    height: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.pwa-intro__description {
    margin: 10px 0 0;
    color: var(--pwa-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.pwa-intro__loading {
    display: flex;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 34px;
    color: var(--pwa-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
}

.pwa-intro__track {
    position: relative;
    display: block;
    width: 82px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.pwa-intro__track i {
    position: absolute;
    top: 0;
    right: -42%;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    animation: pwa-intro-loading 1.05s ease-in-out infinite;
}

.pwa-intro__fallback {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.pwa-intro__footer {
    flex: 0 0 auto;
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

body.is-leaving .pwa-intro__content,
body.is-leaving .pwa-intro__footer {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes pwa-intro-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pwa-intro-loading {
    0% {
        right: -42%;
    }

    50% {
        right: 48%;
        width: 54%;
    }

    100% {
        right: 100%;
        width: 42%;
    }
}

@media (max-height: 600px) {
    .pwa-intro {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .pwa-intro__footer {
        padding-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
