.connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.connection-overlay.active {
    opacity: 1;
    visibility: visible;
}

.connection-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

.connection-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.connection-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(232, 195, 124, 0.5));
    animation: logoPulse 2s ease-in-out infinite;
}

.connection-logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #e8c37c;
    border-radius: 50%;
    animation: ringRipple 2s linear infinite;
    opacity: 0;
}

.connection-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #e8c37c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.connection-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.connection-status-box {
    background: rgba(232, 195, 124, 0.1);
    border: 1px solid rgba(232, 195, 124, 0.2);
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #e8c37c;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.connection-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(232, 195, 124, 0.3);
    border-top-color: #e8c37c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.connection-btn-reload {
    background: #e8c37c;
    color: #1c0e07;
    border: none;
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(232, 195, 124, 0.2);
}

.connection-btn-reload:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(232, 195, 124, 0.4);
    background: #f8e5b6;
}

.connection-btn-reload:active {
    transform: translateY(-1px);
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(232, 195, 124, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 35px rgba(232, 195, 124, 0.8)); }
}

@keyframes ringRipple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

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

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
