.character_feature_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.character_feature_popup_overlay.active {
    display: flex;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.character_feature_popup_card {
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.character_feature_popup_icon {
    width: 56px;
    height: 56px;
    background: #fbbf24;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.character_feature_popup_icon svg {
    width: 28px;
    height: 28px;
    color: #000;
}

.character_feature_popup_title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 16px;
}

.character_feature_popup_content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.character_feature_popup_content > p {
    margin: 0 0 20px;
}

.character_feature_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.character_feature_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.character_feature_item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.character_feature_item svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
}

.character_feature_item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.character_feature_warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    margin: 20px 0;
}

.character_feature_warning svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 2px;
}

.character_feature_warning p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.character_feature_warning strong {
    color: #fbbf24;
}

.character_feature_note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 16px 0 0 !important;
}

.character_feature_popup_buttons {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.character_feature_popup_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.character_feature_popup_btn svg {
    width: 18px;
    height: 18px;
}

.character_feature_popup_btn_primary {
    background: #fbbf24;
    color: #000;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.character_feature_popup_btn_primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.character_feature_popup_btn_primary:active {
    transform: translateY(-1px) scale(0.98);
}

.character_feature_popup_btn_secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.character_feature_popup_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.character_feature_popup_btn_secondary:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .character_feature_popup_card {
        padding: 24px;
    }
    
    .character_feature_popup_title {
        font-size: 20px;
    }
    
    .character_feature_popup_buttons {
        flex-direction: column;
    }
    
    .character_feature_popup_btn {
        width: 100%;
    }
}
