html, body {
    height: 100%;
    margin: 0;
    background: #05050a;
    color: #e8e8ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overscroll-behavior: none;
}

#app { height: 100%; }

.boot {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.boot-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(140deg, #3b82f6, #8b5cf6);
    animation: boot-pulse 1.4s ease-in-out infinite;
}

.boot-text { font-size: 13px; opacity: .55; }

/* The progress track splash.js fills during the WASM download (data-blazor-progress) and
   from ISplashScreen.SetProgressAsync afterwards. */
.boot-track {
    width: 180px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.boot-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width .25s ease;
}

@keyframes boot-pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .boot-mark { animation: none; }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: #ffe6a8;
    color: #3a2c00;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, .3);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
}
