/* streak-animation.css */

.streak-fire-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.streak-fire-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.streak-fire-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 241, 242, 0.9) 100%);
    border: 2px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px 50px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.streak-fire-overlay.show .streak-fire-card {
    transform: scale(1) translateY(0);
}

/* Big Glowing Flame Badge */
.streak-flame-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.streak-flame-icon {
    font-size: 5.5rem;
    line-height: 1;
    z-index: 2;
    animation: flameFloat 2s ease-in-out infinite;
}

.streak-flame-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.6) 0%, rgba(239, 68, 68, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 1.5s ease-in-out infinite alternate;
}

/* Text Content */
.streak-fire-title {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #e11d48;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(225, 29, 72, 0.08);
}

.streak-fire-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0;
}

/* Fire particles */
.streak-particle {
    position: absolute;
    bottom: -10px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #f97316 0%, rgba(239, 68, 68, 0) 80%);
    border-radius: 50%;
    opacity: 0.8;
    animation: particleRise 2s infinite linear;
    pointer-events: none;
}

/* Keyframes */
@keyframes flameFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.85; }
}

@keyframes particleRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-160px) translateX(var(--x-drift, 20px)) scale(0.2);
        opacity: 0;
    }
}

/* prefers-reduced-motion check */
@media (prefers-reduced-motion: reduce) {
    .streak-flame-icon {
        animation: none !important;
    }
    .streak-flame-glow {
        animation: none !important;
        opacity: 0.6;
    }
    .streak-particle {
        display: none !important;
    }
    .streak-fire-card {
        transition: none !important;
        transform: scale(1) translateY(0) !important;
    }
}
