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;
    margin-top: 47px;
    align-items: center;
    gap: 10px;
    color: #4a545b;
}

.loading-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #003888;
    animation: loading-pulse 1.1s ease-in-out infinite;
}

.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; }

@keyframes loading-pulse {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1); }
}

@media (prefers-color-scheme: dark) {
    .avalonia-splash {
        background: #20262b;
        color: #fff;
    }

    .loading-row { color: #bcc1c7; }
    .loading-indicator { background: #569ff7; }
    .browser-warning { background: #343026; color: #fedc70; border-color: #d6a849; }
    .splash-brand img { filter: brightness(0) invert(1); opacity: .94; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-indicator { animation: 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%);
}
