/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-htfkdnelq4],
.components-reconnect-repeated-attempt-visible[b-htfkdnelq4],
.components-reconnect-failed-visible[b-htfkdnelq4],
.components-pause-visible[b-htfkdnelq4],
.components-resume-failed-visible[b-htfkdnelq4] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-retrying[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-failed[b-htfkdnelq4],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-htfkdnelq4] {
    display: block;
}

#components-reconnect-modal[b-htfkdnelq4] {
    width: min(22rem, calc(100vw - 32px));
    margin: 16vh auto;
    padding: 12px 28px 28px;
    border: 1px solid var(--line2);
    border-radius: 18px;
    background: var(--s1);
    color: var(--text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: reconnect-fade-out-b-htfkdnelq4 0.5s both;
}

#components-reconnect-modal[open][b-htfkdnelq4] {
    animation: reconnect-rise-b-htfkdnelq4 1.2s cubic-bezier(0.05, 0.89, 0.25, 1.02) 0.3s, reconnect-fade-in-b-htfkdnelq4 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-htfkdnelq4]::backdrop {
    background: rgba(10, 11, 13, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: reconnect-fade-in-b-htfkdnelq4 0.5s ease-in-out;
}

@keyframes reconnect-rise-b-htfkdnelq4 {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: none; }
}

@keyframes reconnect-fade-in-b-htfkdnelq4 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes reconnect-fade-out-b-htfkdnelq4 {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container[b-htfkdnelq4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.reconnect-brain[b-htfkdnelq4] {
    position: relative;
    width: 190px;
    height: 190px;
}

/* The static brain until the canvas takes over (and if scripts fail). */
.reconnect-brain img[b-htfkdnelq4] {
    position: absolute;
    inset: 22%;
    width: 56%;
    height: 56%;
    opacity: 0.5;
}

.reconnect-brain canvas[b-htfkdnelq4] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reconnect-brain.live img[b-htfkdnelq4] {
    visibility: hidden;
}

.reconnect-text[b-htfkdnelq4] {
    text-align: center;
}

#components-reconnect-modal p[b-htfkdnelq4] {
    margin: 0;
}

.reconnect-head[b-htfkdnelq4] {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.reconnect-sub[b-htfkdnelq4] {
    margin-top: 4px !important;
    font-size: 13px;
    color: var(--muted);
}

#components-reconnect-modal button[b-htfkdnelq4] {
    margin-top: 4px;
    padding: 8px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

#components-reconnect-modal button:hover[b-htfkdnelq4] {
    background: var(--accent-hover);
}

#components-reconnect-modal button:focus-visible[b-htfkdnelq4] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 241, 105, 0.35);
}
