/* Impact Generation Overlay - Async storylet generation UI */

.impact-generation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-generation-overlay.active {
    opacity: 1;
}

.generation-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.generation-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: rgba(239, 68, 68, 0.6);
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: rgba(147, 197, 253, 0.4);
    animation-duration: 2.5s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generation-content h2 {
    font-family: 'RemiliaMincho', serif;
    font-size: 28px;
    color: #E5E7EB;
    margin: 0 0 15px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.generation-content p {
    font-family: 'RemiliaMincho', serif;
    font-size: 16px;
    color: #9CA3AF;
    margin: 0 0 30px;
}

.generation-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
        rgba(168, 85, 247, 0.8) 0%,
        rgba(239, 68, 68, 0.8) 50%,
        rgba(168, 85, 247, 0.8) 100%);
    background-size: 200% 100%;
    animation: progress-shimmer 2s ease-in-out infinite;
    width: 100%;
}

@keyframes progress-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
