/* Shown immediately on full page load / refresh, before the Blazor Server
   circuit is interactive. Hidden by yeti.bootReady() from the editor shell. */

.yeti-boot {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, #2a2a30 0%, #141416 65%);
    color: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.yeti-boot.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.yeti-boot__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2rem 2.25rem;
    min-width: min(320px, 88vw);
    border-radius: 12px;
    background: rgba(30, 30, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.yeti-boot__brand {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    color: #f78c1d;
}

.yeti-boot__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #f78c1d;
    animation: yeti-boot-spin 0.75s linear infinite;
}

@keyframes yeti-boot-spin {
    to { transform: rotate(360deg); }
}

.yeti-boot__msg {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
}

.yeti-boot__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #9a9a9a;
    max-width: 22rem;
}

/* Blazor Server reconnect / resume (circuit drop) */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal .yeti-reconnect-card {
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 22rem;
    text-align: center;
}

#components-reconnect-modal .yeti-reconnect-card a {
    color: #f78c1d;
}
