/* Temporary homepage cover. Keep the previous homepage hidden until relaunch. */
html {
    height: 100%;
    overflow: hidden;
    background: #000921;
}

body.home {
    height: 100%;
    overflow: hidden;
    background: #000921;
}

body.home > header,
body.home > .page-content,
body.home > noscript {
    display: none;
}

body.home #loading_screen {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.5rem, env(safe-area-inset-left));
}

body.home #loading_screen > div {
    /* Override the old inline min-content basis without shrinking tall content. */
    flex: none !important;
    width: 100%;
    max-width: 34.25rem;
    min-width: 0;
    margin: auto;
}

body.home #loading_screen img.pixelusion-logo {
    display: block;
    width: 100%;
    height: auto;
}

body.home #loading_screen .social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(.5rem, 2vw, 1rem);
    margin: clamp(2rem, 6vh, 4rem) 0 1rem;
    font-size: 1rem;
    line-height: 1;
}

body.home #loading_screen .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(2.75rem, 12vw, 6rem);
    height: clamp(2.75rem, 12vw, 6rem);
}

body.home #loading_screen .social-links img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    object-fit: contain;
}

body.home #loading_screen > div > br {
    display: none;
}

body.home #loading_screen > div > a {
    display: inline-block;
    max-width: 100%;
    line-height: 1.5;
}

body.home #loading_screen a:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body.home #loading_screen .dropdown_animation {
        animation: none;
    }
}
