html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

#out {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#out canvas {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

input.avalonia-input-element,
textarea.avalonia-input-element {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #eef1f6;
    font-family: "Segoe UI", Arial, "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    pointer-events: none;
}

.splash-card {
    position: relative;
    width: 560px;
    max-width: calc(100% - 32px);
    height: 400px;
    border-radius: 8px;
    background: #111111;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.splash-accent,
.splash-subtitle {
    display: none;
}

.splash-body {
    position: absolute;
    inset: 0;
}

.splash-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

html[dir="rtl"] .splash-subtitle {
    letter-spacing: 0;
}

.splash-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 28px 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

.splash-status {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
}

.splash-track {
    height: 2px;
    border-radius: 1px;
    background: #d0d7e2;
    overflow: hidden;
    position: relative;
}

.splash-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: #0f6cbd;
    border-radius: inherit;
    transform: translateX(-100%);
    animation: splash-slide 1.2s linear infinite;
    will-change: transform;
}

@keyframes splash-slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(350%); }
}

.avalonia-splash.splash-close {
    transition: opacity 200ms;
    opacity: 0;
    display: none;
}
