:root {   
    --bg-color: #121212; 
    --container-bg: #1e1e1e;
    --accent-color: #d4af37; 
    --text-secondary: #888888;
    --text-primary: #ffffff;
}

.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
}

.loading-container {
    text-align: center;
    width: 85%;
    max-width: 420px;
    padding: 50px 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.logo-wrapper {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.logo-wrapper img {
    width: 240px; 
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}


.loader {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.loader div {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}
.loader div:nth-child(1) { animation-delay: -0.32s; }
.loader div:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1.0); opacity: 1; }
}


.progress-container {
    width: 100%;
    height: 6px; 
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}


.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #b8860b, var(--accent-color));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}


.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 10px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    border-radius: 5px;
}

.status-text {
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    opacity: 0.8;
}

#percent {
    font-weight: 200; 
    color: var(--accent-color);
    margin-left: 5px;
}


#retry-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.2); 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    color: #fff; 
    font-family: sans-serif;
}

.retry-content {
    text-align: center;
    padding: 20px;
    background-color: #000;
    background: rgba(40, 40, 40, 0.8); 
    backdrop-filter: blur(8px);      
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 12px;
}
