* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    overflow: hidden;
    background: #050817;
    color: #f4f6ff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.splash {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.space-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: space-arrive 1.2s ease-out both;
}

.splash-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 35%, rgb(1 4 18 / 35%) 100%);
}

.redirect-message {
    position: absolute;
    right: 16px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 16px;
    margin: 0;
    color: rgb(244 246 255 / 85%);
    text-align: center;
    font-size: clamp(12px, 2.5vw, 15px);
    text-shadow: 0 1px 8px #000;
    animation: message-appear 0.8s ease-out 0.4s both;
}

@keyframes space-arrive {
    from {
        opacity: 0;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes message-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .space-background,
    .redirect-message {
        animation: none;
    }
}
