/* RPG Loading Screen Styles - WHITE THEME */
.rpg-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: #333333;
}

.rpg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(100, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 150, 100, 0.1) 0%, transparent 50%);
    opacity: 0.4;
}

.rpg-loading-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
}

.rpg-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Logo */
.rpg-logo {
    margin-bottom: 20px;
}

.rpg-logo img {
    max-width: 300px;
    height: auto;
}

/* Karakter */
.rpg-character {
    margin: 20px 0;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rpg-character img {
    height: 100%;
    width: auto;
    border-radius: 10px;
}

/* ⚡ PROGRESS BAR SECTION - YANG HILANG */
.rpg-progress-section {
    margin: 30px 0;
}

.progress-label {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555555;
    font-weight: 600;
}

.rpg-progress-container {
    position: relative;
    margin-bottom: 10px;
}

.rpg-progress-bar {
    width: 100%;
    height: 25px;
    background: linear-gradient(90deg, #e8e8e8 0%, #f0f0f0 50%, #e8e8e8 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(212, 175, 55, 0.2);
}

.rpg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #f4d03f 75%, #d4af37 100%);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.5s ease-out;
    animation: progressShine 2s infinite linear;
    position: relative;
}

.rpg-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: glowMove 3s infinite linear;
    opacity: 0;
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #555555;
    font-size: 14px;
}

/* Tips Section - EXTRA LARGE */
.rpg-tips-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 25px;
    background: rgba(245, 245, 245, 0.95);
    border: 2px solid #d4af37;
    border-radius: 12px;
    min-height: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tips-icon {
    font-size: 32px;
    margin-right: 25px;
    animation: pulse 2s infinite;
    color: #d4af37;
}

.rpg-tips {
    flex: 1;
    position: relative;
    height: 60px;
    overflow: hidden;
}

.tip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.tip.active {
    opacity: 1;
    transform: translateY(0);
    color: #d4af37;
    font-weight: 600;
}

/* Footer */
.rpg-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888888;
}

.rpg-company {
    font-style: italic;
}

.auto-entry {
    animation: blink 1.5s infinite;
    color: #d4af37;
    font-weight: 600;
}

/* Animations */
@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes glowMove {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Sparkle effects */
.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    animation: sparkleFloat 1s ease-out forwards;
    box-shadow: 0 0 10px #d4af37;
    pointer-events: none;
    z-index: 10;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rpg-loading-container {
        padding: 20px;
        margin: 20px;
    }
    
    .rpg-character {
        height: 80px;
    }
    
    .rpg-logo img {
        max-width: 200px;
    }
    
    .rpg-tips-container {
        padding: 15px;
        min-height: 60px;
    }
    
    .tips-icon {
        font-size: 24px;
        margin-right: 15px;
    }
    
    .tip {
        font-size: 16px;
    }
    
    .rpg-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rpg-tips-container {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        min-height: auto;
    }
    
    .tips-icon {
        font-size: 20px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .rpg-tips {
        height: 40px;
    }
    
    .tip {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .progress-label {
        font-size: 16px;
    }
    
    .rpg-progress-bar {
        height: 20px;
    }
    
    .progress-percentage {
        font-size: 12px;
    }
}