/* 맞춤법 퀴즈 진행도 */
#spelling-progress-container {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(
        135deg,
        var(--bg-light) 0%,
        var(--secondary) 100%
    );
    border-radius: 1rem;
    border: 2px solid var(--accent);
    box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#spelling-progress-container.progress-increase {
    animation: progressIncrease 0.4s ease-out;
}

#spelling-progress-text {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1rem;
}

#spelling-progress-bar {
    width: 100%;
    height: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.6rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
}

#spelling-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #ff6b7a 100%);
    border-radius: 0.6rem;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0.1rem 0.3rem rgba(233, 69, 96, 0.3);
}

#spelling-progress-fill.fill-animation {
    animation: fillPulse 0.6s ease-out;
}

#spelling-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%
    );
    border-radius: 0.6rem 0.6rem 0 0;
}

#spelling-completed-message {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--correct);
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(
        135deg,
        rgba(57, 255, 20, 0.1) 0%,
        rgba(46, 204, 64, 0.05) 100%
    );
    border-radius: 1.2rem;
    border: 2px solid var(--correct);
    box-shadow: 0 0.4rem 1.6rem rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(57, 255, 20, 0.1);
    word-break: keep-all;
}

@keyframes progressIncrease {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        border-color: var(--correct);
    }

    100% {
        transform: scale(1);
        border-color: var(--accent);
    }
}

@keyframes fillPulse {
    0% {
        box-shadow: 0 0.1rem 0.3rem rgba(233, 69, 96, 0.3);
    }

    50% {
        box-shadow: 0 0.1rem 0.3rem rgba(233, 69, 96, 0.5),
            0 0 1rem rgba(233, 69, 96, 0.3);
    }

    100% {
        box-shadow: 0 0.1rem 0.3rem rgba(233, 69, 96, 0.3);
    }
}

@media (max-width: 768px) {
    #spelling-progress-container {
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    #spelling-progress-text {
        font-size: 1.4rem;
        margin-bottom: var(--space-sm);
        text-align: center;
    }

    #spelling-progress-bar {
        height: 1rem;
        border-radius: 0.5rem;
    }
}
