/* Labyrinthia AI - 增强版特效样式 */

/* 任务完成特效容器 */
.quest-completion-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
}

.quest-completion-content {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.95) 0%, rgba(156, 39, 176, 0.95) 100%);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quest-completion-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.quest-completion-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.quest-completion-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quest-completion-quest-name {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.quest-completion-reward {
    font-size: 20px;
    color: #4caf50;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.quest-completion-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quest-completion-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700 0%, #ff6b6b 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 淡出动画 */
.quest-completion-effect.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 怪物粉碎碎片 */
.monster-fragment {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 环境粒子容器 */
.environment-particles {
    mix-blend-mode: screen;
}

/* 落灰粒子 */
.particle-dust {
    filter: blur(1px);
}

/* 落叶粒子 */
.particle-leaves {
    filter: blur(0.5px);
    transform-origin: center;
}

/* 阳光粒子 */
.particle-sunlight {
    filter: blur(2px);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
}

/* 雨水粒子 */
.particle-rain {
    width: 2px !important;
    height: 20px !important;
    background: linear-gradient(to bottom, rgba(173, 216, 230, 0.8), transparent) !important;
    border-radius: 1px;
}

/* Boss 击败冲击波 */
.boss-shockwave {
    animation: shockwave 1s ease-out;
}

@keyframes shockwave {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quest-completion-content {
        padding: 30px 40px;
    }

    .quest-completion-icon {
        font-size: 60px;
    }

    .quest-completion-title {
        font-size: 28px;
    }

    .quest-completion-quest-name {
        font-size: 20px;
    }

    .quest-completion-reward {
        font-size: 18px;
    }
}

/* 性能优化 */
.quest-completion-effect,
.monster-fragment,
.environment-particles {
    will-change: transform, opacity;
}

/* 确保粒子不影响布局 */
.environment-particles * {
    position: absolute;
}


/* Emoji 粒子通用样式 */
.emoji-particle {
    position: absolute;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    transform-origin: center;
    will-change: transform, opacity;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    filter: drop-shadow(0 0 2px rgba(0,0,0,.25));
}

