html,
body,
#out {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.avalonia-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 32px;
    background: #f2f2f2;
    color: #2b3136;
    font: 500 15px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
    pointer-events: none;
}

.splash-brand {
    width: min(620px, 82vw);
}

.splash-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.loading-row {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    align-items: stretch;
    gap: 9px;
    color: #4a545b;
}

.loading-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #d7dce2;
}

.loading-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #003888;
    transition: width 180ms ease-out;
}

.loading-row > span {
    text-align: center;
    font-size: 13px;
}

.browser-warning {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 3px solid #a76300;
    border-radius: 4px;
    background: #fff4db;
    color: #714600;
    font-size: 14px;
    line-height: 1.5;
}

.browser-warning strong { font-weight: 600; }
.browser-warning p { margin: 5px 0 0; }

@media (prefers-reduced-motion: reduce) {
    .loading-progress span { transition: none; }
}

.avalonia-splash.splash-close {
    display: none;
    opacity: 0;
}

/* Hide the slogan while preserving the original ship and wordmark. */
.splash-brand img {
    clip-path: polygon(0 0, 100% 0, 100% 55.22%, 20.91% 55.22%, 20.91% 66.27%, 100% 66.27%, 100% 100%, 0 100%);
}
