html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #06070b;
    overscroll-behavior: none;
    touch-action: none;
}

#out {
    height: 100%;
}

/* Splash shown while the runtime downloads */
.avalonia-splash {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: radial-gradient(circle at 50% 42%, #141a2c 0%, #06070b 62%);
    color: #f2f4fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
}

.avalonia-splash h1 {
    margin: 14px 0 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.avalonia-splash p {
    margin: 0;
    font-size: 0.85rem;
    color: #8c93a8;
}

.splash-mark {
    position: relative;
    width: 46px;
    height: 46px;
}

.splash-mark span {
    position: absolute;
    width: 25px;
    height: 31px;
    border-radius: 6px;
    background: #fff;
    animation: splash-pulse 1.4s ease-in-out infinite;
}

.splash-mark span:nth-child(1) { left: 0; top: 0; opacity: 0.3; }
.splash-mark span:nth-child(2) { left: 10px; top: 7px; opacity: 0.6; animation-delay: 0.15s; }
.splash-mark span:nth-child(3) { left: 20px; top: 14px; animation-delay: 0.3s; }

@keyframes splash-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

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