  /* Reconnect overlay (shown on any network failure — restart-triggered or not) */
  #reconnect-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(6,7,10,0.88);
    backdrop-filter: blur(3px);
    align-items: center; justify-content: center;
    z-index: 300;
    text-align: center;
  }
  #reconnect-overlay.visible { display: flex; }
  #reconnect-overlay .box { max-width: 320px; padding: 24px; }
  #reconnect-overlay .spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  #reconnect-overlay .msg { font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
  #reconnect-overlay .sub { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
  #reconnect-retry-btn {
    display: none;
    margin-top: 16px;
    background: var(--accent);
    border: none;
    color: #070605;
    font-weight: 700;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 12.5px;
    cursor: pointer;
  }

