:root {
    --egypt-gold: #d4af37;
    --egypt-gold-light: #f0d060;
    --egypt-gold-dark: #a67c00;
    --egypt-blue: #1a3a5c;
    --egypt-blue-light: #2c5f8a;
    --egypt-dark: #0d0d0d;
    --egypt-dark-lighter: #1a1a1a;
    --egypt-white: #f5f5f0;
    --egypt-sand: #c2a66b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--egypt-dark) 0%, #1a1410 50%, var(--egypt-dark) 100%);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px 0;
}

.loading-container {
    width: 90%;
    max-width: 600px;
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(26, 22, 16, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 2px solid var(--egypt-gold);
    border-radius: 16px;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 0 60px rgba(212, 175, 55, 0.05);
    position: relative;
    animation: containerFadeIn 0.8s ease-out;
}

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

.egypt-border-top,
.egypt-border-bottom {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--egypt-gold), transparent);
}

.egypt-border-top {
    top: 10px;
}

.egypt-border-bottom {
    bottom: 10px;
}

.language-section {
    margin-bottom: 30px;
    animation: quoteFadeIn 1s ease-out 0.2s both;
}

.language-label {
    font-size: 0.85rem;
    color: var(--egypt-gold);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.language-item {
    padding: 8px 6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: var(--egypt-white);
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--egypt-gold);
    transform: translateY(-1px);
}

.language-item.active {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--egypt-gold);
    color: var(--egypt-gold-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .language-item {
        font-size: 0.7rem;
        padding: 6px 4px;
    }
}

.quote-section {
    text-align: center;
    margin-bottom: 40px;
    animation: quoteFadeIn 1s ease-out 0.3s both;
}

@keyframes quoteFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quote-icon {
    font-size: 3rem;
    color: var(--egypt-gold);
    margin-bottom: 15px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.quote-text {
    font-size: 1.3rem;
    color: var(--egypt-white);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    min-height: 80px;
    transition: opacity 0.5s ease;
}

.quote-author {
    font-size: 1rem;
    color: var(--egypt-gold);
    font-weight: 500;
}

.progress-section {
    margin-bottom: 30px;
    animation: progressFadeIn 1s ease-out 0.6s both;
}

@keyframes progressFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.95rem;
    color: var(--egypt-sand);
}

.progress-percent {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--egypt-gold-light);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--egypt-gold-dark), var(--egypt-gold), var(--egypt-gold-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.loading-status {
    font-size: 0.85rem;
    color: rgba(245, 245, 240, 0.6);
    text-align: center;
    transition: opacity 0.3s ease;
}

.skip-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--egypt-gold);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: skipFadeIn 1s ease-out 1s both;
}

@keyframes skipFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.skip-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--egypt-gold);
    transform: translateY(-2px);
}

.skip-btn:active {
    transform: translateY(0);
}

.decorative-hieroglyphs {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.2);
    letter-spacing: 8px;
}

@media (max-width: 480px) {
    .loading-container {
        padding: 30px 20px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
    }
}
