/*
 * reconnect.css — Reconnect overlay.
 *
 * Sits above all gameplay UI when the WS or PS connection is down. The
 * underlying state is preserved (BJState is untouched) so when the socket
 * reattaches the gameplay UI returns to its pre-disconnect appearance.
 */

#bj-reconnect-overlay {
    position: absolute;
    inset: 0;
    z-index: var(--z-reconnect);
    background: rgba(10, 10, 13, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 32px;
    text-align: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity var(--t-med) var(--ease-out-quint);
}

#bj-reconnect-overlay.is-open {
    opacity: 1;
}

.bj-reconnect-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    position: relative;
}

.bj-reconnect-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    animation: bj-spin 1.2s linear infinite;
}

@keyframes bj-spin {
    to { transform: rotate(360deg); }
}

.bj-reconnect-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
}

.bj-reconnect-sub {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.4;
}

.bj-reconnect-attempt {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    padding: 6px 14px;
}
